[R-SIG-Mac] Compiling 2.5.1 on OSX Panther
James Kyle
krunk7 at gmail.com
Fri Aug 10 00:04:24 CEST 2007
Hello all,
I'm attempting to compile R 2.5.1 on OSX Panther and have run into
some issues. First off, if anyone has a link to a binary build of
2.5.1 for Panther I have no issue going that route.
-) gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)
-) g77 version 3.4.2
-) ./configure --with-blas='-framework vecLib' --with-lapack
R_PAPERSIZE=letter F77=g77
When first seeing the build issues, I wanted to verify that I have
the necessary basic environment. I grabbed the 2.2.1 sources, which
are the latest version available with a binary for Panther, and they
compiled without a hitch.
The error appears in the lapack module when building
libRlapack.dylib. Error output is:
> make[4]: Entering directory `/opt/sandbox/R-2.5.1/src/modules/lapack'
> gcc -std=gnu99 -dynamiclib -L/sw/lib -L/usr/local/lib -o
> libRlapack.dylib dlamch.o dlapack0.o dlapack1.o dlapack2.o
> dlapack3.o dlapack4.o cmplx.o -install_name libRlapack.dylib -
> compatibility_version 2.5.0 -current_version 2.5.1 -
> headerpad_max_install_names -L/usr/local/lib/gcc/powerpc-apple-
> darwin6.8/3.4.2 -lg2c -L../../../lib -lR
> /usr/bin/libtool: internal link edit command failedld: warning
> multiple definitions of symbol _z_abs/usr/local/lib/libg2c.a
> (z_abs.o) definition of _z_abs in section (__TEXT,__text)../../../
> lib/libR.dylib(z_abs.o) definition of _z_absld: warning multiple
> definitions of symbol _f__cabs/usr/local/lib/libg2c.a(cabs.o)
> definition of _f__cabs in section (__TEXT,__text)../../../lib/
> libR.dylib(cabs.o) definition of _f__cabsld: common symbols not
> allowed with MH_DYLIB output format with the -multi_module option/
> usr/local/lib/libg2c.a(err.o) definition of common _f__cblank (size
> 4)/usr/local/lib/libg2c.a(fmt.o) definition of common _f__cnt (size
> 40)/usr/local/lib/libg2c.a(fmt.o) definition of common f(char, *)
> (size 4)/usr/local/lib/libg2c.a(err.o) definition of common f(char,
> long *, short __restrict) (size 4)/usr/local/lib/libg2c.a(err.o)
> definition of common _f__cursor (size 4)/usr/local/lib/libg2c.a
> (err.o) definition of common _f__doed (size 4)/usr/local/lib/
> libg2c.a(err.o) definition of common _f__doend (size 4)/usr/local/
> lib/libg2c.a(err.o) definition of common _f__doned (size 4)/usr/
> local/lib/libg2c.a(err.o) definition of common _f__dorevert (size
> 4)/usr/local/lib/libg2c.a(err.o) definition of common _f__elist
> (size 4)/usr/local/lib/libg2c.a(err.o) definition of common
> _f__fmtbuf (size 4)/usr/local/lib/libg2c.a(err.o) definition of
> common _f__fmtlen (size 4)/usr/local/lib/libg2c.a(err.o) definition
> of common _f__init (size 4)/usr/local/lib/libg2c.a(fmt.o)
> definition of common _f__nonl (size 4)/usr/local/lib/libg2c.a
> (fmt.o) definition of common _f__parenlvl (size 4)/usr/local/lib/
> libg2c.a(fmt.o) definition of common f(char *) (size 4)/usr/local/
> lib/libg2c.a(fmt.o) definition of common _f__ret (size 40)/usr/
> local/lib/libg2c.a(fmt.o) definition of common _f__revloc (size 4)/
> usr/local/lib/libg2c.a(fmt.o) definition of common f(long double,
> *) (size 4)/usr/local/lib/libg2c.a(err.o) definition of common
> _f__scale (size 4)/usr/local/lib/libg2c.a(fmt.o) definition of
> common _f__workdone (size 4)/usr/local/lib/libg2c.a(err.o)
> definition of common _f__units (size 4800)/usr/local/lib/libg2c.a
> (err.o) definition of common f(char, float) (size 4)/usr/local/lib/
> libg2c.a(err.o) definition of common _f__curunit (size 4)/usr/local/
> lib/libg2c.a(err.o) definition of common _f__donewrec (size 4)/usr/
> local/lib/libg2c.a(err.o) definition of common _f__external (size
> 4)/usr/local/lib/libg2c.a(err.o) definition of common _f__formatted
> (size 4)/usr/local/lib/libg2c.a(err.o) definition of common
> _f__hiwater (size 4)/usr/local/lib/libg2c.a(err.o) definition of
> common _f__putn (size 4)/usr/local/lib/libg2c.a(err.o) definition
> of common _f__reading (size 4)/usr/local/lib/libg2c.a(err.o)
> definition of common _f__recpos (size 4)/usr/local/lib/libg2c.a
> (err.o) definition of common _f__sequential (size 4)/usr/local/lib/
> libg2c.a(err.o) definition of common _f__getn (size 4)/usr/local/
> lib/libg2c.a(err.o) definition of common _f__icptr (size 4)/usr/
> local/lib/libg2c.a(err.o) definition of common f(short, void, int,
> char) (size 4)
> make[4]: *** [libRlapack.dylib] Error 1 make[4]: Leaving directory
> `/opt/sandbox/R-2.5.1/src/modules/lapack'make[3]: *** [R] Error
> 2make[3]: Leaving directory `/opt/sandbox/R-2.5.1/src/modules/
> lapack'make[2]: *** [R] Error 1make[2]: Leaving directory `/opt/
> sandbox/R-2.5.1/src/modules'make[1]: *** [R] Error 1make[1]:
> Leaving directory `/opt/sandbox/R-2.5.1/src'make: *** [R] Error 1
More information about the R-SIG-Mac
mailing list