[Numpy-discussion] Numeric and ATLAS

Stephen Walton stephen.walton at csun.edu
Wed Mar 9 09:18:16 EST 2005


Hi, Cindy,

Well, I'm still reading this forum.

> /usr/bin/ld: 
> /usr/local/atlas/lib/Linux_HAMMER64SSE2_2/liblapack.a(dgesv.o): 
> relocation R_X86_64_32 can not be used when making a shared object; 
> recompile with -fPIC

Unfortunately I'm not on a 64 bit architecture, and this problem may be 
peculiar to it.  I guess to be of more help I'd have to see some outputs 
from your compilation of both lapack and atlas.  Are you using g77?  
After hassles with Absoft, and finding that g77 was actually better in 
most instances as measured by the LAPACK timing tests, I used g77 
throughout for my LAPACK and ATLAS compiles.  For LAPACK, I used the 
supplied make.inc.LINUX file as make.inc, with the exception that I 
removed the '-fno-f2c' switch.  A simple 'make config' then worked fine 
for me with ATLAS.   The LAPACK compile doesn't seem to use -fPIC, which 
shouldn't be needed anyway;  neither LAPACK nor ATLAS can easily be 
installed as shared libraries anyway, which is why Fernando Perez has 
his scripts to build separate versions of Numeric/numarray/scipy/etc. 
statically linked against various hardware-specific versions of ATLAS.

This is a bit of a ramble;  hope some of it helps.

Stephen





More information about the NumPy-Discussion mailing list