[R-SIG-Mac] Compiling 2.5.1 on OSX Panther (James Kyle)

Jari Oksanen jarioksa at sun3.oulu.fi
Mon Nov 5 22:16:40 CET 2007


On 5 Nov 2007, at 16:30, Simon Urbanek wrote:

>> I tried to build R-2.6.0 for MacOS 10.3.9 on the weekend, but failed
>> miserably. It seems that the location of the failure is exactly the 
>> same
>> as in this thread that I found in the August archive of R-SIG-Mac. I
>> didn't find any continuation to this. Does this mean that the issue is
>> unresolved? I get a bit different messages depending on config 
>> switches
>> and when configuring and building in Terminal.app or in Xterm. The 
>> place
>> is the same: lapack.
>>
>
> Unfortunately I have no Panther box anymore (therefore there are not 
> CRAN builds and I can't test it), but here are some pointers:
>
> 1) disable fink - it's known to cause many, many problems. At least 
> for the config/compilation rename /sw to something else
> 2) when using --with-blas, you must use --with-lapack, otherwise it 
> won't work. Either use vecLib for both or not at all.
> 3) --enable-BLAS-shlib is not intended to work on Panther, as 10.3 
> doesn't support dynamic lookup
>
> Please let me know how it goes.
>

Howdy,

I already had down points 2 and 3, and now I did 1 (disable fink). I 
tried with several versions of R, and the break was at 2.4.0: versions 
2.3.0 and 2.3.1 built OK, but 2.4.0 and later (I tried 2.4.1, 2.5.0 and 
2.6.0) all failed.

This was my build command

./configure --with-blas='-framework vecLib' --with-lapack 
--disable-R-framework --disable-R-shlib --with-tcltk 
--prefix=/usr/local/bin

The essential difference was that 2.3.0 and 2.3.1 honoured this and 
didn't try to build blas or lapack, but 2.4.0 and onwards tried to 
build it and failed. With fink they already failed at blas (early), and 
without fink they failed at lapack (late). According to NEWS file in 
the sources, there were big changes in build in MacOS at 2.4.0, and it 
seems that my dear old iBook failed to follow time here.

Here is the end of the failed lapack step:

making Lapack.d from Lapack.c
g77 -fPIC -fno-common  -g -O2 -ffloat-store -c dlamc.f -o dlamc.o
g77  -fPIC -fno-common  -g -O2 -c dlapack0.f -o dlapack0.o
g77  -fPIC -fno-common  -g -O2 -c dlapack1.f -o dlapack1.o
g77  -fPIC -fno-common  -g -O2 -c dlapack2.f -o dlapack2.o
g77  -fPIC -fno-common  -g -O2 -c dlapack3.f -o dlapack3.o
g77  -fPIC -fno-common  -g -O2 -c cmplx.f -o cmplx.o
gcc -dynamiclib -L/usr/local/lib -o libRlapack.dylib dlamc.o dlapack0.o 
dlapack1.o dlapack2.o dlapack3.o cmplx.o  
-L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c -lSystem
ld: Undefined symbols:
_lsame_
_dasum_
_daxpy_
_dcopy_
_ddot_
_dgemm_
_dgemv_
_dger_
_dnrm2_
_drot_
_dscal_
_dswap_
_dsymv_
_dsyrk_
_dtbsv_
_dtpsv_
_dtrmm_
_dtrmv_
_dtrsv_
_idamax_
_xerbla_
_dtpmv_
_dtrsm_
_dgbmv_
_dsbmv_
_dspmv_
_dspr2_
_dspr_
_dsymm_
_dsyr2_
_dsyr2k_
_dsyr_
_dtbmv_
_dzasum_
_dznrm2_
_izamax_
_zaxpy_
_zcopy_
_zdotc_
_zdotu_
_zdrot_
_zdscal_
_zgemm_
_zgemv_
_zgerc_
_zgeru_
_zhemv_
_zher2_
_zher2k_
_zscal_
_zswap_
_ztrmm_
_ztrmv_
_ztrsm_
_ztrsv_
/usr/bin/libtool: internal link edit command failed
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



More information about the R-SIG-Mac mailing list