Skip to content

mgcv

3 messages · Denis Chabot, Simon Urbanek

#
Hi,

Do you know why package mgcv, installed automatically with R (mgcv  
1.3-1 is installed with R 2.1.1) does not show up at all when looking  
for Mac binaries on CRAN? Shouldn't we see v1.3-1 there, at least?
When looking at sources on CRAN, one sees that 1.3-7 is available.  
Because 1.3-1 was compiled successfully for Mac, I tried to compile  
1.3-7 from within R-gui (1816) and failed. Do you know if a Mac  
binary will be available soon or else how I can fix the errors  
indicated below?

Thanks in advance,

Denis Chabot




essai de l'URL 'http://probability.ca/cran/src/contrib/ 
mgcv_1.3-7.tar.gz'
Content type 'application/x-tar' length 244885 bytes
URL ouverte
==================================================
downloaded 239Kb

* Installing *source* package 'mgcv' ...
** libs
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c gcv.c -o gcv.o
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c magic.c -o  
magic.o
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c mat.c -o mat.o
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c matrix.c -o  
matrix.o
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c mgcv.c -o mgcv.o
gcc-3.3 -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-3.3 -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-3.3 -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/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c - 
lSystem  -framework R
ld: warning
The downloaded packages are in
     /private/tmp/Rtmp8owdFh/downloaded_packages
multiple definitions of symbol _xerbla_
/Library/Frameworks/R.framework/R(print.lo) definition of _xerbla_
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
vecLib.framework/Versions/A/libBLAS.dylib(single module) definition  
of _xerbla_
ld: warning multiple definitions of symbol _signgam
/Library/Frameworks/R.framework/R(lgamma.lo) definition of _signgam
/usr/lib/libSystem.dylib(gamma9.o) definition of _signgam
ld: gcv.o has external relocation entries in non-writable section  
(__TEXT,__text) for symbols:
restFP
saveFP
make: *** [mgcv.so] Error 1
ERROR: compilation failed for package 'mgcv'
essai de l'URL 'http://probability.ca/cran/bin/macosx/2.1/PACKAGES'
Content type 'text/plain; charset=iso-8859-1' length 27756 bytes
URL ouverte
12 days later
#
Hi,

I got no reply to my previous message: the latest version of mgcv is  
not available as a Mac binary on CRAN, and I get an error trying to  
compile it myself. Yet this extract from an answer to a question I  
posted on the general r list shows that I need the newest version,  
1.3-7:

...
Which version of mgcv do you use? The confusion probably stems from  
earlier versions of mgcv (< 1.3-5): the summary and anova methods  
used to have a column denoted Chi.sq even when the displayed  
statistic was computed as F. Recent versions of mgcv has
...

Hoping someone can explain the compiling error below,

Denis

D?but du message r?exp?di? :
#
Denis,
On Sep 29, 2005, at 8:36 AM, Denis Chabot wrote:

            
Check the archives, this has been discussed here many times - you  
need to add -lcc_dynamic to your LDFLAGS. There is no most recent  
binary, because R 2.2 will be released next week, so we're building  
for 2.2 now.

Cheers,
Simon