Quantcast

R 3.4 has broken C++11 support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

R 3.4 has broken C++11 support

R devel mailing list


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]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

R devel mailing list
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" <[hidden email]>
An: "r-devel" <[hidden email]>
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Martyn Plummer-3
In reply to this post by R devel mailing list
A user with the email address [hidden email] 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]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

R devel mailing list
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Martyn Plummer-3
On Wed, 2017-04-19 at 12:42 +0200, Angerer, Philipp wrote:
> 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

I am on Fedora 25 which also uses gcc 6.3.1. The default standard for
6.3.1 is C++14. The output from configure should contain these lines:

  Default C++ compiler:      g++   
  C++98 compiler:            g++ -std=gnu++98 
  C++11 compiler:            g++ -std=gnu++11 
  C++14 compiler:            g++  
  C++17 compiler:              

Please check.

Martyn

> 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
>
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Dirk Eddelbuettel
In reply to this post by R devel mailing list

On 19 April 2017 at 12:42, Angerer, Philipp via R-devel wrote:
| 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

Maybe you can share with us how you configure the build of R-devel?  I tend
to locally build every week or so and I have the following on Ubuntu 16.10:

  CXX = ccache g++
  CXXCPP = $(CXX) -E
  CXXFLAGS = -ggdb -pipe -Wall -pedantic $(LTO)
  CXXPICFLAGS = -fpic
  CXX98 = ccache g++
  CXX98FLAGS = -ggdb -pipe -Wall -pedantic
  CXX98PICFLAGS = -fpic
  CXX98STD = -std=gnu++98
  CXX11 = ccache g++
  CXX11FLAGS = -ggdb -pipe -Wall -pedantic
  CXX11PICFLAGS = -fpic
  CXX11STD = -std=gnu++11
  CXX14 = ccache g++
  CXX14FLAGS = -ggdb -pipe -Wall -pedantic
  CXX14PICFLAGS = -fpic
  CXX14STD =
  CXX17 =
  CXX17FLAGS =
  CXX17PICFLAGS =
  CXX17STD =

I call configure in build shell script (which has not changed in years) with

  R_PAPERSIZE=letter \
  R_BATCHSAVE="--no-save --no-restore" \
  R_BROWSER=xdg-open \
  PAGER=/usr/bin/pager \
  PERL=/usr/bin/perl \
  R_UNZIPCMD=/usr/bin/unzip \
  R_ZIPCMD=/usr/bin/zip \
  R_PRINTCMD=/usr/bin/lpr \
  LIBnn=lib \
  AWK=/usr/bin/awk                              \
  CC="ccache gcc" \
  CFLAGS="-ggdb -pipe -std=gnu99 -Wall -pedantic" \
  CXX="ccache g++" \
  CXXFLAGS="-ggdb -pipe -Wall -pedantic" \
  FC="ccache gfortran"   \
  F77="ccache gfortran" \
  MAKE="make -j4" \
  ./configure \
      --prefix=/usr/local/lib/R-devel \
      --enable-R-shlib \
      --without-blas \
      --without-lapack \
      --without-recommended-packages

Works here ...

Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

R devel mailing list
In reply to this post by R devel mailing list
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" <[hidden email]>
An: "Martyn Plummer" <[hidden email]>
CC: "r-devel" <[hidden email]>
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Martyn Plummer-3
On Wed, 2017-04-19 at 13:17 +0200, Angerer, Philipp wrote:
> Hmm, doesn’t look like my R was configured incorrectly:

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.

Martyn

>
>
> 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" <[hidden email]>
> An: "Martyn Plummer" <[hidden email]>
> CC: "r-devel" <[hidden email]>
> 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
>
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

R devel mailing list
In reply to this post by Dirk Eddelbuettel
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Martyn Plummer-3
On Wed, 2017-04-19 at 16:32 +0200, Angerer, Philipp 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

This works for me (See below). Make sure you are not overwriting some
key variables in a personal Makevars file or a site-wide Makevars.site
file.

[plummerm@D-160182 temp]$ ~/R-devel/r-devel/build/bin/R CMD INSTALL cxx11test_1.0.tar.gz 
* installing to library ‘/home/plummerm/R-devel/r-devel/build/library’
* installing *source* package ‘cxx11test’ ...
** libs
g++ -std=gnu++11 -I/home/plummerm/R-devel/r-devel/build/include -DNDEBUG  -I"/home/plummerm/R-devel/r-devel/build/library/Rcpp/include" -I/usr/local/include   -fpic  -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I/home/plummerm/R-devel/r-devel/build/include -DNDEBUG  -I"/home/plummerm/R-devel/r-devel/build/library/Rcpp/include" -I/usr/local/include   -fpic  -g -O2 -c test.cpp -o test.o
g++ -std=gnu++11 -shared -L/usr/local/lib64 -o cxx11test.so RcppExports.o test.o
installing to /home/plummerm/R-devel/r-devel/build/library/cxx11test/libs
** R
** preparing package for lazy loading
** help
No man pages found in package  ‘cxx11test’ 
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (cxx11test)

Martyn

> > 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
>
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Dirk Eddelbuettel

FWIW works for me too, with or without my ~/.R/Makevars

edd@max:~/git$ git clone https://github.com/flying-sheep/cxx11test
Cloning into 'cxx11test'...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 13 (delta 0), reused 13 (delta 0), pack-reused 0
Unpacking objects: 100% (13/13), done.
Checking connectivity... done.
edd@max:~/git$ cd cxx11test/
edd@max:~/git/cxx11test(master)$ RD CMD INSTALL .
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘cxx11test’ ...
** libs
ccache g++ -std=gnu++11 -I/usr/local/lib/R-devel/lib/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include   -fpic
-ggdb -pipe -Wall -pedantic -c RcppExports.cpp -o RcppExports.o
ccache g++ -std=gnu++11 -I/usr/local/lib/R-devel/lib/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include   -fpic
-ggdb -pipe -Wall -pedantic -c test.cpp -o test.o
ccache g++ -std=gnu++11 -shared -L/usr/local/lib/R-devel/lib/R/lib
-L/usr/local/lib -o cxx11test.so RcppExports.o test.o
-L/usr/local/lib/R-devel/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/cxx11test/libs
** R
** preparing package for lazy loading
** help
No man pages found in package  ‘cxx11test’
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (cxx11test)
edd@max:~/git/cxx11test(master)$

Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | [hidden email]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

Ista Zahn
In reply to this post by R devel mailing list
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
<[hidden email]> 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
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R 3.4 has broken C++11 support

R devel mailing list
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" <[hidden email]>
An: "Angerer, Philipp" <[hidden email]>
CC: "Dirk Eddelbuettel" <[hidden email]>, "Martyn Plummer" <[hidden email]>, "r-devel" <[hidden email]>
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
<[hidden email]> 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
>
> ______________________________________________
> [hidden email] 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]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Loading...