On May 26, 2018, at 5:35 PM, Koenker, Roger W <rkoenker at 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 at xs4all.nl> wrote:
On 26 May 2018, at 15:17, Roger Koenker <rkoenker at 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