[Rd] R 3.4 has broken C++11 support
Hi, This commit (I’m using the mirror to have a working link) broke C++11 compilation. Before (and still now, according to the comments in the configure script), it’s sufficient to just have “SystemRequirements: C++11” in the DESCRIPTION file. But now “R CMD install” fails with “C++11 standard requested but CXX11 is not defined”, which is, according to the documentation , a lie. I can’t even circumvent this, as setting “CXX11=$(CXX)” in the src/Makevars file fails with “CXX definition recursive”, and hardcoding “CXX11=g++” is a bad idea. Did I do sth. wrong or is the C++11 support in R just broken atm.? Best, Philipp PS: After addressing all points in the submission of my popular package “IRkernel”, I didn’t get any feedback, and the file just vanished from the incoming directory in CRAN. I asked about it multiple times but got no answer. What can I do now? Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R 3.4 has broken C++11 support
Whoops, sorry. The links are supposed to be: [This commit]: https://github.com/wch/r-source/commit/45899dba734cbd80a77432af9a3a7829a9ad48da [the documentation]: https://github.com/wch/r-source/blob/45899dba734cbd80a77432af9a3a7829a9ad48da/config.site#L264 - Ursprüngliche Mail - Von: "Angerer, Philipp" An: "r-devel" Gesendet: Dienstag, 18. April 2017 15:11:52 Betreff: R 3.4 has broken C++11 support Hi, [This commit] (I’m using the mirror to have a working link) broke C++11 compilation. Before (and still now, according to the comments in the configure script), it’s sufficient to just have “SystemRequirements: C++11” in the DESCRIPTION file. But now “R CMD install” fails with “C++11 standard requested but CXX11 is not defined”, which is, according to [the documentation], a lie. I can’t even circumvent this, as setting “CXX11=$(CXX)” in the src/Makevars file fails with “CXX definition recursive”, and hardcoding “CXX11=g++” is a bad idea. Did I do sth. wrong or is the C++11 support in R just broken atm.? Best, Philipp PS: After addressing all points in the submission of my popular package “IRkernel”, I didn’t get any feedback, and the file just vanished from the incoming directory in CRAN. I asked about it multiple times but got no answer. What can I do now? Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R 3.4 has broken C++11 support
Hi! Well, my linux distribution has very recent versions of everything, so a working C++11 compiler exists: $ gcc --version | head -n1 gcc (GCC) 6.3.1 20170306 Could wrong ./configure options be at fault here? See: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r-devel#n40 My sessionInfo(): $ R-devel --slave -e 'sessionInfo()' | head -n3 R Under development (unstable) (2017-04-18 r72542) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Arch Linux Thanks, Philipp Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R 3.4 has broken C++11 support
Hmm, doesn’t look like my R was configured incorrectly: R is now configured for x86_64-pc-linux-gnu Source directory: . Installation directory:/opt/r-devel C compiler:gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 Fortran 77 compiler: gfortran -g -O2 Default C++ compiler: g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 C++98 compiler:g++ -std=gnu++98 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 C++11 compiler:g++ -std=gnu++11 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 C++14 compiler:g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 C++17 compiler: Fortran 90/95 compiler:gfortran -g -O2 Obj-C compiler: Interfaces supported: X11, tcltk External libraries:readline, BLAS(generic), LAPACK(generic), curl Additional capabilities: PNG, JPEG, TIFF, NLS, cairo, ICU Options enabled: shared R library, R profiling Capabilities skipped: Options not enabled: shared BLAS, memory profiling Recommended packages: yes - Ursprüngliche Mail - Von: "Angerer, Philipp" An: "Martyn Plummer" CC: "r-devel" Gesendet: Mittwoch, 19. April 2017 12:42:33 Betreff: Re: [Rd] R 3.4 has broken C++11 support Hi! Well, my linux distribution has very recent versions of everything, so a working C++11 compiler exists: $ gcc --version | head -n1 gcc (GCC) 6.3.1 20170306 Could wrong ./configure options be at fault here? See: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r-devel#n40 My sessionInfo(): $ R-devel --slave -e 'sessionInfo()' | head -n3 R Under development (unstable) (2017-04-18 r72542) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Arch Linux Thanks, Philipp Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R 3.4 has broken C++11 support
Hi Dirk and Martyn, > That looks fine. Can you please give a reproducible example of a package > that compiles correctly on R 3.3.3 but not with R 3.4.0 or R-devel. here you go, it’s pretty much the simplest package possible that needs C++11: https://github.com/flying-sheep/cxx11test > Maybe you can share with us how you configure the build of R-devel? Sure, in the mail you quoted, I already linked exactly that: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r-devel#n40 > ./configure --prefix=/opt/r-devel \ > --libdir=/opt/r-devel/lib \ > --sysconfdir=/etc/R-devel \ > --datarootdir=/opt/r-devel/share \ > rsharedir=/opt/r-devel/share/R/ \ > rincludedir=/opt/r-devel/include/R/ \ > rdocdir=/opt/r-devel/share/doc/R/ \ > --with-x \ > --enable-R-shlib \ > --with-lapack \ > --with-blas \ > F77=gfortran \ > LIBnn=lib Thanks and cheers, Philipp Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R 3.4 has broken C++11 support
indeed. Makeconf isn’t in the right spot, so the correct vars aren’t set. thank you all and sorry for the noise! Von: "Ista Zahn" An: "Angerer, Philipp" CC: "Dirk Eddelbuettel" , "Martyn Plummer" , "r-devel" Gesendet: Mittwoch, 19. April 2017 19:10:20 Betreff: Re: [Rd] R 3.4 has broken C++11 support Hi Philipp, Fellow Archlinux user here. I think the problem is with the r-devel PKGBUILD file, rather than anything wrong in R itself. The PKGBUILD file does this: ln -s /etc/R/${i} ${i} when it should do ln -s /etc/R-devel/${i} ${i} You can fix your installed version with cd /opt/r-devel/lib/R/etc/ sudo rm ./* sudo ln -s /etc/R-devel/javaconf sudo ln -s /etc/R-devel/ldpaths sudo ln -s /etc/R-devel/Makeconf sudo ln -s /etc/R-devel/Renviron sudo ln -s /etc/R-devel/repositories Or (better) fix the PKGBUILD and makepkg/pacman -U Best, Ista On Wed, Apr 19, 2017 at 10:32 AM, Angerer, Philipp via R-devel wrote: > Hi Dirk and Martyn, > >> That looks fine. Can you please give a reproducible example of a package >> that compiles correctly on R 3.3.3 but not with R 3.4.0 or R-devel. > > here you go, it’s pretty much the simplest package possible that needs C++11: > > https://github.com/flying-sheep/cxx11test > >> Maybe you can share with us how you configure the build of R-devel? > > Sure, in the mail you quoted, I already linked exactly that: > > https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r-devel#n40 > >> ./configure --prefix=/opt/r-devel \ >> --libdir=/opt/r-devel/lib \ >> --sysconfdir=/etc/R-devel \ >> --datarootdir=/opt/r-devel/share \ >> rsharedir=/opt/r-devel/share/R/ \ >> rincludedir=/opt/r-devel/include/R/ \ >> rdocdir=/opt/r-devel/share/doc/R/ \ >> --with-x \ >> --enable-R-shlib \ >> --with-lapack \ >> --with-blas \ >> F77=gfortran \ >> LIBnn=lib > > > Thanks and cheers, > Philipp > > > Helmholtz Zentrum Muenchen > Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) > Ingolstaedter Landstr. 1 > 85764 Neuherberg > www.helmholtz-muenchen.de > Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe > Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons > Enhsen > Registergericht: Amtsgericht Muenchen HRB 6466 > USt-IdNr: DE 129521671 > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Heinrich Bassler, Dr. Alfons Enhsen Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel