[R-SIG-Mac] Tools Update for R3.5?

Berend Hasselman bhh @ending from x@4@ll@nl
Sat May 26 17:20:52 CEST 2018

> On 26 May 2018, at 15:17, Roger Koenker <rkoenker using illinois.edu> wrote:
> Thanks Berend  that helps considerably,  I added something for gfortran as follows:
> CC=/usr/local/clang6/bin/clang
> CXX=/usr/local/clang6/bin/clang++
> LDFLAGS =-L/usr/local/clang6/lib
> F77=/usr/local/gfortran/bin/gfortran
> FLIBS=-L/usr/local/gfortran/lib -lgfortran
> and now the gfortran seems to be happy, but I’m still seeing problems with some C:
> /usr/local/clang6/bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c init.c -o init.o
> In file included from init.c:1:
> /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:34:11: fatal error: 'string.h' file not
>      found
> # include <string.h>            /* for memcpy, memset */
>          ^~~~~~~~~~
> 1 error generated.
> make: *** [init.o] Error 1
> ERROR: compilation failed for package ‘quantreg’
> presumably I’m still missing some LDFLGS for clang6?

LDFLAGS I presume?
I don't quite understand what is going wrong exactly.

Have you installed MacOs commandlinetools? I do have them installed.
See the first few lines of section C.3 in the R Administration and Installation manual.
And see item 2 and item 4 in the README.html in the gfortran-6.1-ElCapitan.dmg.

But you are defining too many lines in your Makevars.
I do not have F77 and FLIBS in mine. All taken care of by R's Makeconf (see /Library/Frameworks/R.framework/Versions/3.5/Resources/etc/Makeconf)
There is a symlink in /usr/local/bin/gfortran to the actual gfortran (the gfortran installer takes care of that).

I have run R CMD check on quantreg_5.35 and all is ok. No errors.


More information about the R-SIG-Mac mailing list