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

Roger Koenker rkoenker @ending from illinoi@@edu
Sun May 27 14:32:01 CEST 2018


Apologies to all,  finally resolved this by the simple, apparently overlooked:

	xcode-select --install

> On May 27, 2018, at 11:15 AM, Koenker, Roger W <rkoenker using illinois.edu> wrote:
> 
> Maybe this would provide a little more explicit information about what is going wrong:
> 
> /usr/local/clang6/bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/clang6/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
> 
> 
>> On May 26, 2018, at 5:35 PM, Koenker, Roger W <rkoenker using illinois.edu> wrote:
>> 
>> Humm…  without the F77 and FLIBS lines I get lots of complaints about:
>> 
>> 	… error: unsupported directive '.stabs’
>> 
>> that some from using the old version of gfortran that still exists in /usr/local/bin
>> With them the gfortran runs nicely, but the first occurrence  of a C routine produces
>> the error detailed below.  Obviously, there is something fishy with my setup, but 
>> I thought that fresh R and the two tools packages should have all fitted together.
>> Thanks again for your suggestions.
>> 
>> 
>>> On May 26, 2018, at 4:20 PM, Berend Hasselman <bhh using xs4all.nl> wrote:
>>> 
>>>> 
>>>> 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.
>>> 
>>> Berend
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list