[R] Compilation error on mgcv_1.1-7 on OS X (10.3)

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Nov 1 18:12:52 CET 2004


I expect your version of R was not compiled on your own system, although 
you don't say (please see the posting guide).  (I also presume this is a 
Macintosh but you could have said.)

The solutions are simple:

1) Compile R yourself -- the best choice.
2) Download a pre-compiled binary of that package for your platform.
3) Install the same tools as used to build R in the same places.
4) (Perhaps) edit R_HOME/etc/Makeconf and replace the paths in FLIBS.


On Mon, 1 Nov 2004, Jon Egil Strand wrote:

> I run into a compilation error when updating to mgcv_1.1-7 in R 2.0.0 on 
> OS X 10.3. Note that other pacakges have compiled nicely. 

Packages containing Fortran source code?

> Some details are given below, but in short it looks like it's seeking for 
> 	
> 	/usr/local/lib/powerpc-apple-darwin6.8/3.4.2/
> 
> which I don't have. But I do have 
> 
> 	/usr/lib/gcc/darwin/3.3
> 
> i.e a lower version of GCC in a different directory. More details at end.
> 
> I am sorry if this is very easy to configure, but as long as I am unable 
> to do it I will be very grateful for any help.
> 
> All the best
> 
> Jon Egil Strand
> M.Sc
> 
> -----------------------------------
> 	Compilation details       
> -----------------------------------
> 
> gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include  -I/usr/local/include   -fno-common  -g -O2 -c qp.c -o qp.o
> gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include  -I/usr/local/include   -fno-common  -g -O2 -c tprs.c -o tprs.o
> gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o 
>   mgcv.so gcv.o magic.o mat.o matrix.o mgcv.o qp.o tprs.o  -framework 
>   vecLib -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 
>   -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2/../../.. -lfrtbegin 
>   -lg2c -lSystem -lcc_dynamic -framework R
> 
> ld: warning -L: directory name (/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2) does not exist
> ld: warning -L: directory name (/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2/../../..) does not exist
> ld: can't locate file for: -lfrtbegin
> 
> make: *** [mgcv.so] Error 1
> ERROR: compilation failed for package 'mgcv' 


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list