[R-SIG-Mac] compilation failed for package Design

Christof Bigler christof.bigler at colorado.edu
Wed Mar 3 21:20:04 MET 2004


As recommended by Frank Harrell (see his reply below), I changed the  
following line in /Applications/StartR.app/RAqua.app/Contents/etc
from
FLIBS =  -L/usr/local/lib  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../.. -lfrtbegin  
-lg2c -lSystem
to
FLIBS =  -L/usr/local/lib  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../.. -lg2c  
-lSystem

I could install the package Design (as well as Hmisc), however, I got  
many warnings:

 > install.packages("Design")
...

* Installing *source* package 'Design' ...
** libs
g77   -fno-common  -g -O2 -c lrmfit.f -o lrmfit.o
g77   -fno-common  -g -O2 -c mlmats.f -o mlmats.o
g77   -fno-common  -g -O2 -c robcovf.f -o robcovf.o
gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o  
Design.so lrmfit.o mlmats.o robcovf.o  -L/usr/local/lib  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../.. -lg2c  
-lSystem -lcc_dynamic -L/Applications/StartR.app/RAqua.app/Contents/bin  
-lR
ld: warning -L: directory name  
(/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4) does not exist
ld: warning -L: directory name  
(/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../..) does not  
exist
ld: warning multiple definitions of symbol _xerbla_
/Applications/StartR.app/RAqua.app/Contents/bin/libR.dylib(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 _crc32
/Applications/StartR.app/RAqua.app/Contents/bin/libR.dylib(crc32.o)  
definition of _crc32
/usr/lib/libz.1.dylib(crc32.o) definition of _crc32
...

And a bunch of similar warnings appeared. Since the packages work for  
R, I didn't worry too much about this.

Christof

On 03.03.2004, at 10:32, Frank E Harrell Jr wrote:
> That's not a failure of the package but of the setup on your machine.   
> I
> had a similar problem on linux for which I got the following fix:
>
> It is pretty clearly a difference between the system used to build R  
> and
> that used to install the library.  I am pretty sure you can just delete
> -lfrtbegin from FLIBS in R_HOME/etc/Makeconf, but it is part of a  
> proper
> gcc/g77 installation and so should be there.

On 02.03.2004, at 19:16, Jan de Leeuw wrote:
> You need to ask Frank H. for his latest version.
>
> On Mar 2, 2004, at 17:10, Christof Bigler wrote:
>> When trying to install the Design package, I get compilation errors:
>> [installing from the X11/Darwin R 1.8.1 version]
>>
>> > install.packages("Design")
>> ...
>> * Installing *source* package 'Design' ...
>> ** libs
>> g77   -fno-common  -g -O2 -c lrmfit.f -o lrmfit.o
>> g77   -fno-common  -g -O2 -c mlmats.f -o mlmats.o
>> g77   -fno-common  -g -O2 -c robcovf.f -o robcovf.o
>> gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o  
>> Design.so lrmfit.o mlmats.o robcovf.o  -L/usr/local/lib  
>> -L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4  
>> -L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../.. -lfrtbegin  
>> -lg2c -lSystem -lcc_dynamic  
>> -L/Applications/StartR.app/RAqua.app/Contents/bin -lR
>> ld: warning -L: directory name  
>> (/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4) does not exist
>> ld: warning -L: directory name  
>> (/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../..) does not  
>> exist
>> ld: can't locate file for: -lfrtbegin
>> make: *** [Design.so] Error 1
>> ERROR: compilation failed for package 'Design'
>>
>> As it says, there is no directory  
>> /usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4, but I have one  
>> installed from fink: /sw/lib/gcc/powerpc-apple-darwin6.5/3.4

Christof Bigler, Ph.D.
Department of Geography
University of Colorado
Boulder, Colorado 80309
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3970 bytes
Desc: not available
Url : https://www.stat.math.ethz.ch/pipermail/r-sig-mac/attachments/20040303/d0df54d5/attachment.bin


More information about the R-SIG-Mac mailing list