Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-18 Thread Bill Dunlap
Hi Paul, I think that changing the Fortran logicals to integers is the easiest way to fix this up. In the old days (1990's and maybe later), there were Fortran compilers that did not map .TRUE. to 1 and .FALSE. to 0, but I suspect that R's .Fortran does not cater to them. I avoid Fortran logical

Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-17 Thread Bill Dunlap
I suspect your problem is that, at least with the recent gnu compilers, the Fortran 'c_logical' maps to the C _Bool, not the C int. -Bill On Wed, Feb 17, 2021 at 11:38 AM Paul Schmidt-Walter wrote: > > Dear Team, > > My package 'LWFBrook90R' (https://github.com/pschmidtwalter/LWFBrook90R) > was

Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-17 Thread Gábor Csárdi
You can use this Docker container: https://hub.docker.com/repository/docker/rhub/debian-gcc-devel-lto It is somewhat old, but chances are that it will reproduce the LTO issues. I'll update it in a minute, anyway. Gabor On Wed, Feb 17, 2021 at 9:33 PM Ivan Krylov wrote: > > On Wed, 17 Feb 2021 2

Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-17 Thread Ivan Krylov
On Wed, 17 Feb 2021 20:04:34 +0100 Paul Schmidt-Walter wrote: > I simply don't know how to "build with configure --enable-lto" "R Installation and Administration" contains a detailed set of instructions on how to compile R, includin