[R-SIG-Mac]compiling r-devel on Darwin

Jan de Leeuw deleeuw@stat.ucla.edu
Wed, 26 Feb 2003 08:46:32 -0800


I don't have this. What this says is that the modules in libg2c.a have  
not been
compiled with -fno-common., which indicates there is something wrong  
with
your g77 from fink. Make sure you have the latest OS 10.2 version. In  
any case
use the g77 from the unstable tree, and try "fink rebuild g77"

On Wednesday, Feb 26, 2003, at 04:34 US/Pacific, Jean Thioulouse wrote:

> Hello,
>
> I am trying to compile the latest r-devel under MacOS 10.2.4, and
> I get the following error :
>
> gcc -dynamiclib -install_name /usr/local/lib/R/bin/libRlapack.dylib  
> -L/sw/lib -L/usr/local/lib -o libRlapack.dylib dlapack0.lo dlapack1.lo  
> dlapack2.lo dlapack3.lo cmplx.lo  -lf77blas -latlas -L/sw/lib  
> -L/usr/local/lib -L/sw/lib/gcc-lib/powerpc-apple-darwin6.2/3.1  
> -L/sw/lib/gcc-lib/powerpc-apple-darwin6.2/3.1/../../.. -lfrtbegin  
> -lg2c -lSystem
> ld: common symbols not allowed with MH_DYLIB output format
> /usr/bin/libtool: internal link edit command failed
> /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)
> /sw/lib/libg2c.a(fmt.o) definition of common f(char,  *) (size 4)
> /sw/lib/libg2c.a(err.o) definition of common f(char, long *, short  
> __restrict) (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__cursor (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__doed (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__doend (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__doned (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__dorevert (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__elist (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__fmtbuf (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__fmtlen (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__init (size 4)
> /sw/lib/libg2c.a(fmt.o) definition of common _f__nonl (size 4)
> /sw/lib/libg2c.a(fmt.o) definition of common _f__parenlvl (size 4)
> /sw/lib/libg2c.a(fmt.o) definition of common f(char *) (size 4)
> /sw/lib/libg2c.a(fmt.o) definition of common _f__ret (size 40)
> /sw/lib/libg2c.a(fmt.o) definition of common _f__revloc (size 4)
> /sw/lib/libg2c.a(fmt.o) definition of common f(long double,  *) (size  
> 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__scale (size 4)
> /sw/lib/libg2c.a(fmt.o) definition of common _f__workdone (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__units (size 4800)
> /sw/lib/libg2c.a(err.o) definition of common f(char, float) (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__curunit (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__donewrec (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__external (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__formatted (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__hiwater (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__putn (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__reading (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__recpos (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__sequential (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__getn (size 4)
> /sw/lib/libg2c.a(err.o) definition of common _f__icptr (size 4)
> /sw/lib/libg2c.a(err.o) definition of common f(short, void, int, char)  
> (size 4)
> make[4]: *** [libRlapack.dylib] Error 1
> make[3]: *** [R] Error 2
> make[2]: *** [R] Error 1
> make[1]: *** [R] Error 1
> make: *** [R] Error 1
>
> I have no problem compiling 1.6.2. What should I do ?
>
> Thanks,
> Jean
>
> --  
> Jean Thioulouse - Equipe "Ecologie  Statistique" - UMR CNRS 5558
> Universite Lyon 1, Bat. Mendel, 69622 Villeurbanne Cedex, France
> Fax: (33) 4 78 89 27 19                  Tel: (33) 4 72 43 27 56
>           http://pbil.univ-lyon1.fr/JTHome.html
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@stat.math.ethz.ch
> http://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
>
>
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 9432 Boelter Hall, 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
   
------------------------------------------------------------------------ 
-------------------------