compilation failed for package Design
As a point of comparison only, I have R installed from source code on an OS X Mac (10.2.8), namely
version
_ platform powerpc-apple-darwin6.8.5 arch powerpc os darwin6.8.5 system powerpc, darwin6.8.5 status Patched major 1 minor 8.1 year 2004 month 01 day 12 language R
my configure arguments were
--enable-R-shlib --with-blas=-framework vecLib --with-lapack
With that configuration, Design did install without the error
Christof reported, albeit with warnings from ld.
Removing "-lfrtbegin" (what it's for I don't know) was not necessary.
install.packages('Design')
<-snip->
* 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/sw/lib -o
Design.so lrmfit.o mlmats.o robcovf.o -L/sw/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/Users/macq/darwin.apps/R/R-1.8.1/build/bin -lR
ld: warning multiple definitions of symbol _xerbla_
/Users/macq/darwin.apps/R/R-1.8.1/build/bin/libR.dylib(print.lo)
definition of _xerbla_
/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib(ProjectBuilderMasterObjectFile.o)
definition of _xerbla_
ld: warning multiple definitions of symbol _BC
/sw/lib/libreadline.4.dylib(terminal.so) definition of _BC
/sw/lib/libncurses.5.dylib(lib_termcap.lo) definition of _BC
ld: warning multiple definitions of symbol _UP
/sw/lib/libreadline.4.dylib(terminal.so) definition of _UP
/sw/lib/libncurses.5.dylib(lib_termcap.lo) definition of _UP
ld: warning multiple definitions of symbol _PC
/sw/lib/libreadline.4.dylib(terminal.so) definition of _PC
/sw/lib/libncurses.5.dylib(lib_tputs.lo) definition of _PC
** R
** help
>>> Building/Updating help pages for package 'Design'
Formats: text html latex example
<-snip->
-Don
At 1:20 PM -0700 3/3/04, Christof Bigler wrote:
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
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
-------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA