Skip to content

R-1.9.0 won't compile on OSX (PR#6848)

4 messages · Dan Kelley, Brian Ripley, Jan de Leeuw +1 more

#
Full_Name: Dan Kelley
Version: 1.9.0
OS: OSX (Darwin 7.3.0)
Submission from: (NULL) (129.173.23.36)


R-1.9.0 will not compile on Apple OSX (Darwin kernel 7.3.0).  The error msg
starts as follows, and has several more errors.

gcc -dynamiclib -L/sw/lib -L/usr/local/lib -install_name
/Library/Frameworks/R.f
ramework/Versions/1.9.0/Resources/bin/libRlapack.dylib -o libRlapack.dylib
dlapa
ck0.lo dlapack1.lo dlapack2.lo dlapack3.lo cmplx.lo  -lf77blas -latlas
-L/sw/lib
 -L/usr/local/lib -L/sw/lib/gcc/powerpc-apple-darwin7.2.0/3.4
-L/sw/lib/gcc/powe
rpc-apple-darwin7.2.0/3.4/../../.. -lfrtbegin -lg2c -lSystem
ld: common symbols not allowed with MH_DYLIB output format with the
-multi_modul
e option
/sw/lib/libg2c.a(err.o) definition of common _f__cblank (size 4)
/sw/lib/libg2c.a(fmt.o) definition of common _f__cnt (size 40)
#
I don't think this is a bug in *R*, especially as you appear to be using 
the unreleased gcc 3.4!

Hint: there needs to be a dynamic library for libg2c, not a static one. If
there is not, that's a g77 on MacOS X problem, which at one time (gcc 3.1)
we had to overcome by using vecLib.

See the R-admin manual which says

  ./configure --with-blas='-framework vecLib' --with-lapack --with-aqua 

  The first two options are strongly recommended. 

Did you actually follow that advice?  You appear to be trying to use 
atlas, and there is advice about needing a PIC version for that to work.
On Mon, 3 May 2004 Dan.Kelley@Dal.Ca wrote:

            

  
    
#
What can I say ? Do not use fink. Use -framework vecLib
instead of Atlas. See Stefano's page.
On May 3, 2004, at 5:29, Dan.Kelley@Dal.Ca wrote:

            
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw@stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
#
Please, at least tell us which configure options you used and tools' 
versions.
stefano
On May 3, 2004, at 2:52 PM, Prof Brian Ripley wrote: