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]]
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" <philipp.angerer at helmholtz-muenchen.de> An: "r-devel" <r-devel at r-project.org> 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
A user with the email address flying-sheep at web.de has submitted a bug report on this topic.? https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17260 Assuming that you are the same person, I will address the issue here first. If you get the message ?C++11 standard requested but CXX11 is not defined? then this means that there is no available C++11 compiler on your computer. The presence or absence of a working C++11 compiler is determined at configure time when R is built. The tests used by R's configure script to determine C++11 support are more stringent in R 3.4.0 than in previous versions. However, if you are using gcc you should be protected against this change. For versions of gcc prior to 4.8 (which have only partial C++11 support) the same tests as in R 3.3.x are used. This maintains the current behaviour on long-term service Linux distributions that are stuck with old gcc versions. It would be help if you could share more information about your platform - i.e. the output of sessionInfo() - and specify the compiler version you are using. Martyn On Tue, 2017-04-18 at 15:11 +0200, Angerer, Philipp via R-devel wrote:> > 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
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