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?

> On May 26, 2018, at 1:26 PM, Berend Hasselman <b...@xs4all.nl> wrote:
> 
> 
>> On 26 May 2018, at 14:19, Berend Hasselman <b...@xs4all.nl> wrote:
>> 
>> 
>>> On 26 May 2018, at 13:36, Roger Koenker <rkoen...@illinois.edu> wrote:
>>> 
>>> I’ve just installed R3.5 and clang6 and fortran 6.1 and now realize that 
>>> the compiler packages install in
>>> /usr/local/clang6 and /usr/local/gfortran  respectively.  I expected that 
>>> there would also be some automatic
>>> symbolic links to /usr/local/bin  etc.  however when I tried to compile 
>>> packages from source the old versions
>>> of the compilers are invoked.  I realize that this is probably quite 
>>> elementary, but I would appreciate some
>>> advice on how to complete the installation so the new compilers are 
>>> accessed.
>>> 
>> 
>> I added these two lines to  my ~/.profile
>> 
>> # clang6 for R 3.5.0
>> export PATH=/usr/local/clang6/bin:$PATH
>> 
>> and that seems to do the job.
>> 
> 
> Might not do the job.
> 
> But I also added this to my ~/.R/Makevars
> 
> # for R 3.5.0
> # https://cran.r-project.org/bin/macosx/tools/
> 
> CC=/usr/local/clang6/bin/clang
> CXX=/usr/local/clang6/bin/clang++
> LDFLAGS =-L/usr/local/clang6/lib
> 
> and that really does it.
> 
> Berend
> 
>> Berend
>> 
>>> Many thanks,
>>> Roger
>>> 
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to