Skip to content

problem compiling R 1.7.0 on OS 10.2.6

2 messages · Stephen Eglen

#
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)
Did anyone else get this, and resolve it?  I followed the advice from
Jan in response to Jean's email:
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@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
#
> 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@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)
 > 


Just to follow up on this:  Jan suggested using the following config
flags:

  --with-blas="-framework vecLib" --with-lapack

which solved the problem.  Thanks Jan.