-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh CRAN issue on recent clang++ version #9
Comments
Can confirm that a) under root@37586cbd9d9d:/work# ./cleanup
root@37586cbd9d9d:/work# R CMD INSTALL .
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RcppFastAD’ ...
** using staged installation
** libs
using C++ compiler: ‘Debian clang version 18.1.8 (9)’
using C++20
clang++-18 -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppEigen/include' -fpic -O2 -Wall -pipe -pedantic -Wno-unused-but-set-variable -fdiagnostics-color=always -Wformat -c RcppExports.cpp -o RcppExports.o
clang++-18 -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppEigen/include' -fpic -O2 -Wall -pipe -pedantic -Wno-unused-but-set-variable -fdiagnostics-color=always -Wformat -c black_scholes.cpp -o black_scholes.o
clang++-18 -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppEigen/include' -fpic -O2 -Wall -pipe -pedantic -Wno-unused-but-set-variable -fdiagnostics-color=always -Wformat -c linear_regression.cpp -o linear_regression.o
clang++-18 -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppEigen/include' -fpic -O2 -Wall -pipe -pedantic -Wno-unused-but-set-variable -fdiagnostics-color=always -Wformat -c quadratic_expression.cpp -o quadratic_expression.o
clang++-18 -std=gnu++20 -Wl,-S -shared -L/usr/lib/R/lib -Wl,-z,relro -o RcppFastAD.so RcppExports.o black_scholes.o linear_regression.o quadratic_expression.o -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-work/00new/RcppFastAD/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppFastAD)
root@37586cbd9d9d:/work# (This also adds |
I am planning to make a new CRAN release, simply setting C++20 as the compilation standard. That forward path code is nifty and reasonably complex so best to leave it as is for now. |
Thanks for resolving this issue! Sorry I've been away on vacation. |
No problem. It's not 'really resolved' more circumvented. If you need a little puzzle take a look at if / how we could make it C++17 compliant. Otherwise C++20 is an easy-ish way out. (And I proceeded because of the deadline, the change to C++20 is of course not meant to be final or definitive.) |
Grr this is annoying. I have a quick fix (though not as elegant as I would like). I'll submit a PR and link it. |
Via two emails from CRAN:
and
I will try to reproduce on the weekend and look into what may need fixing. @JamesYang007 if you have moment, take a peek too. We should be able to get clang18 in Ubuntu 25.04 containers (see here) and likely in Debian unstable. (Yup,
clang-18
at version 18.1.8 in Debian unstable, easily accessible viar-base
Rocker container.)The text was updated successfully, but these errors were encountered: