[SciPy-user] build error for scipy-0.7.1 on CentOS 5 - oops sorry

Karl Young karl.young@ucsf....
Mon Jul 20 15:55:43 CDT 2009


Sorry for the noise - I found the problem re. this question; it's that I 
didn't notice that UFconfig/UFconfig.mk had multiple places for 
specifying CFLAGS and there was one below the one I modified which was 
uncommented and overrode  the one I set containing -fPIC.


> I get the following error when trying to build scipy-0.7.1 on 64 bit 
> CentOS 5 (Linux 2.6.18-128.2.1.el5 #1 SMP x86_64 GNU/Linux):
>
> ----------------------------------------------------------------------------------------------
>
> gcc -pthread -shared 
> build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scipy/sparse/linalg/dsolve/umfpack/_umfpack_wrap.o 
> -L/usr/local/lib -Lbuild/temp.linux-x86_64-2.5 -lumfpack -lamd 
> -lptf77blas -lptcblas -latlas -o 
> build/lib.linux-x86_64-2.5/scipy/sparse/linalg/dsolve/umfpack/__umfpack.so
> /usr/bin/ld: /usr/local/lib/libumfpack.a(umfpack_di_col_to_triplet.o): 
> relocation R_X86_64_32 against `a local symbol' can not be used when 
> making a shared object; recompile with -fPIC
> /usr/local/lib/libumfpack.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> ----------------------------------------------------------------------------------------------
>
> I built UMFPACK (version 5.4.0) as per David's instructions on 
> http://www.scipy.org/Installing_SciPy/Linux
> Specifically I checked that:
>
> CC = gcc
> CFLAGS = -O3 -fexceptions -m64 -fPIC
> F77 = gfortran
> F77FLAGS = -O -m64 -fPIC
>
> were set in UFconfig/UFconfig.mk.
>
> Has anybody seen this problem and know what to do about it ? Thanks,
>
> -- KY
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>   



More information about the SciPy-user mailing list