[R-SIG-Mac] problem compiling R 1.7.0 on OS 10.2.6

Stephen Eglen stephen at inf.ed.ac.uk
Mon May 19 18:11:02 MEST 2003


Hi,

I'm having problems compiling R 1.7.0 on my mac (OS 10.2.6; fink
updated).  I get the same error that Jean Thioulouse reported two
months ago:
(Taken from
https://stat.ethz.ch/pipermail/r-sig-mac/2003-February.txt)

> From: Jean.Thioulouse at biomserv.univ-lyon1.fr (Jean Thioulouse)
> Date: Wed, 26 Feb 2003 13:34:01 +0100
> Subject: [R-SIG-Mac]compiling r-devel on Darwin
> Message-ID: <p05200f00ba824814685a@[134.214.34.24]>

> 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)

Did anyone else get this, and resolve it?  I followed the advice from
Jan in response to Jean's email:

> 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"

I tried the "fink rebuild g77", but no joy.  Did anyone else get a
solution to this?  Also, like Jean, I compiled 1.6.2 on the mac
without problems.

here is what fink currently reports for g77, and the gcc info:

% fink info g77
Information about 2462 packages read in 1 seconds.
g77-3.1-20020420-5: GNU FORTRAN77 compiler
 .
 Web site: http://gcc.gnu.org/
 .
 Maintainer: Jeffrey Whitaker <jsw at cdc.noaa.gov>

% gcc -v
  Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
  Thread model: posix
  Apple Computer, Inc. GCC version 1151, based on gcc version 3.1
   20020420 (prerelease)

Best wishes,
Stephen



More information about the R-SIG-Mac mailing list