Closed Antonov548 closed 1 year ago
Thanks. What does the C stack overflow on macOS mean?
It's seems known problem, I will take a look. The same problem on Mac was with
cpp11
.
I've been testing this PR and it works well
also, it solves https://github.com/r-dbi/RPostgres/issues/400
Thanks. We need to fix the stack overflow on macOS.
@Antonov548 I tested locally and it works. The CI shows a problem with CRAN links, I googled and I found this https://github.com/r-lib/actions/issues/697. Lmk how can I help to fix this.
@Antonov548 it seems to be ok now https://github.com/r-lib/actions/issues/697#issuecomment-1420383340
all the checks here are passing
so far, I am using this PR wih my usual data analysis and it works
@krlmlr Fixed π
@krlmlr @Antonov548 I pulled the last changes. It works well with Ubuntu 20.04.
Here's the full check
> check()
βΉ Updating RPostgres documentation
βΉ Loading RPostgres
βΉ 26 functions decorated with [[cpp11::register]]
β generated file cpp11.R
β generated file cpp11.cpp
βΉ Re-compiling RPostgres (debug build)
ββ R CMD INSTALL βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β installing *source* package βRPostgresβ ...
** using staged installation
Found pkg-config cflags and libs (libpq 15.1)!
Using PKG_CFLAGS=-I/usr/include/postgresql
Using PKG_LIBS=-lpq
Using PKG_PLOGR=
** libs
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/postgresql -Ivendor -DRCPP_DEFAULT_INCLUDE_CALL=false -DRCPP_USING_UTF8_ERROR_STRING -DBOOST_NO_AUTO_PTR -I'/usr/lib/R/site-library/cpp11/include' -I'/usr/lib/R/site-library/plogr/include' -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-a3XuZ5/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -UNDEBUG -Wall -pedantic -g -O0 -fdiagnostics-color=always -c connection.cpp -o connection.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/postgresql -Ivendor -DRCPP_DEFAULT_INCLUDE_CALL=false -DRCPP_USING_UTF8_ERROR_STRING -DBOOST_NO_AUTO_PTR -I'/usr/lib/R/site-library/cpp11/include' -I'/usr/lib/R/site-library/plogr/include' -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-a3XuZ5/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -UNDEBUG -Wall -pedantic -g -O0 -fdiagnostics-color=always -c cpp11.cpp -o cpp11.o
g++ -std=gnu++14 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RPostgres.so DbColumn.o DbColumnDataSource.o DbColumnDataSourceFactory.o DbColumnStorage.o DbConnection.o DbDataFrame.o DbResult.o PqColumnDataSource.o PqColumnDataSourceFactory.o PqDataFrame.o PqResult.o PqResultImpl.o PqResultSource.o PqUtils.o RPostgres-init.o connection.o cpp11.o encode.o encrypt.o logging.o result.o -lpq -L/usr/lib/R/lib -lR
installing to /tmp/RtmpkE2Ned/devtools_install_1be4a5bff7354/00LOCK-RPostgres/00new/RPostgres/libs
** checking absolute paths in shared objects and dynamic libraries
β DONE (RPostgres)
ββ Building βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ RPostgres ββ
Setting env vars:
β’ CFLAGS : -Wall -pedantic -fdiagnostics-color=always
β’ CXXFLAGS : -Wall -pedantic -fdiagnostics-color=always
β’ CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
β’ CXX14FLAGS: -Wall -pedantic -fdiagnostics-color=always
β’ CXX17FLAGS: -Wall -pedantic -fdiagnostics-color=always
β’ CXX20FLAGS: -Wall -pedantic -fdiagnostics-color=always
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββ R CMD build βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β checking for file β/home/pacha/github/RPostgres/DESCRIPTIONβ ...
β preparing βRPostgresβ:
β checking DESCRIPTION meta-information ...
β cleaning src
β installing the package to build vignettes
β creating vignettes (19.6s)
β cleaning src
β checking for LF line-endings in source and make files and shell scripts
β checking for empty or unneeded directories
β building βRPostgres_1.4.5.9003.tar.gzβ
ββ Checking βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ RPostgres ββ
Setting env vars:
β’ _R_CHECK_CRAN_INCOMING_USE_ASPELL_: TRUE
β’ _R_CHECK_CRAN_INCOMING_REMOTE_ : FALSE
β’ _R_CHECK_CRAN_INCOMING_ : FALSE
β’ _R_CHECK_FORCE_SUGGESTS_ : FALSE
β’ NOT_CRAN : true
ββ R CMD check βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β using log directory β/tmp/RtmpkE2Ned/RPostgres.Rcheckβ
β using R version 4.2.2 Patched (2022-11-10 r83330)
β using platform: x86_64-pc-linux-gnu (64-bit)
β using session charset: UTF-8
β using options β--no-manual --as-cranβ (842ms)
β checking for file βRPostgres/DESCRIPTIONβ
β this is package βRPostgresβ version β1.4.5.9003β
β package encoding: UTF-8
β checking package namespace information
β checking package dependencies (989ms)
β checking if this is a source package ...
β checking if there is a namespace
β checking for executable files (1.5s)
β checking for hidden files and directories ...
β checking for portable file names ...
β checking for sufficient/correct file permissions ...
β checking serialization versions
β checking whether package βRPostgresβ can be installed ... [25s/25s] OK (25s)
N checking installed package size ...
installed size is 5.8Mb
sub-directories of 1Mb or more:
libs 5.3Mb
β checking package directory
β checking for future file timestamps ...
β checking βbuildβ directory ...
β checking DESCRIPTION meta-information ...
N checking top-level files ...
possible bashism in configure line 21 ('command' with option other than -p):
if [ `uname` = "Darwin" ] && [ `command -v pkg-config` ]; then
possible bashism in configure line 38 ('command' with option other than -p):
if [ -z "$FORCE_AUTOBREW" ] && [ `command -v pkg-config` ]; then
possible bashism in configure line 58 ('command' with option other than -p):
if [ -z "$FORCE_AUTOBREW" ] && [ `command -v pg_config` ]; then
β checking for left-over files ...
β checking index information ...
β checking package subdirectories ...
β checking R files for non-ASCII characters ...
β checking R files for syntax errors ...
β checking whether the package can be loaded (396ms)
β checking whether the package can be loaded with stated dependencies ...
β checking whether the package can be unloaded cleanly ...
β checking whether the namespace can be loaded with stated dependencies ...
β checking whether the namespace can be unloaded cleanly (413ms)
β checking loading without being on the library search path (405ms)
β checking dependencies in R code (588ms)
β checking S3 generic/method consistency (741ms)
β checking replacement functions (352ms)
β checking foreign function calls (422ms)
β checking R code for possible problems (3.9s)
β checking Rd files ...
β checking Rd metadata ...
β checking Rd line widths ...
β checking Rd cross-references ...
β checking for missing documentation entries (431ms)
β checking for code/documentation mismatches (1.2s)
β checking Rd \usage sections (893ms)
β checking Rd contents ...
β checking for unstated dependencies in examples ...
β checking line endings in shell scripts
β checking line endings in C/C++/Fortran sources/headers ...
β checking line endings in Makefiles
β checking compilation flags in Makevars ...
β checking for GNU extensions in Makefiles ...
β checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS)
β checking use of PKG_*FLAGS in Makefiles ...
β checking use of SHLIB_OPENMP_*FLAGS in Makefiles ...
β checking pragmas in C/C++ headers and code ...
β checking compilation flags used ...
β checking compiled code ...
β checking installed files from βinst/docβ ...
β checking files in βvignettesβ
β checking examples (991ms)
β checking for unstated dependencies in βtestsβ ...
β checking tests ...
β Running βtestthat.Rβ (1.2s)
β checking for unstated dependencies in vignettes ...
β checking package vignettes in βinst/docβ ...
β checking re-building of vignette outputs (1s)
β checking for non-standard things in the check directory ...
β checking for detritus in the temp directory
See
β/tmp/RtmpkE2Ned/RPostgres.Rcheck/00check.logβ
for details.
ββ R CMD check results βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ RPostgres 1.4.5.9003 ββββ
Duration: 46.5s
β― checking installed package size ... NOTE
installed size is 5.8Mb
sub-directories of 1Mb or more:
libs 5.3Mb
β― checking top-level files ... NOTE
possible bashism in configure line 21 ('command' with option other than -p):
if [ `uname` = "Darwin" ] && [ `command -v pkg-config` ]; then
possible bashism in configure line 38 ('command' with option other than -p):
if [ -z "$FORCE_AUTOBREW" ] && [ `command -v pkg-config` ]; then
possible bashism in configure line 58 ('command' with option other than -p):
if [ -z "$FORCE_AUTOBREW" ] && [ `command -v pg_config` ]; then
0 errors β | 0 warnings β | 2 notes β
@krlmlr @Antonov548 I send a PR to fix the notes about bashisms
Thanks!
It's seems known problem, I will take a look. The same problem on Mac was with
cpp11
.