[SciPy-user] how to compile UMFPACK ?

Xavier Gnata xavier.gnata@gmail....
Thu May 15 16:09:31 CDT 2008


Robert Kern wrote:
> On Thu, May 15, 2008 at 10:48 AM, Xavier Gnata <xavier.gnata@gmail.com> wrote:
>   
>> Hi,
>>
>> I have followed this tutorial :
>> http://www.scipy.org/Installing_SciPy/Linux#head-1c4018a51422706809ee96a4db03ca0669f5f6d1
>>
>> and it is fine for atlas but not for UMFPACK :
>>
>> On ubuntu hardy using gcc-4.3 and gfortran-4.3 (and not g77),I get this
>> error :
>>
>> gcc -O3  -I../Include -I../../AMD/Include -I../../UFconfig -o
>> umfpack_di_demo umfpack_di_demo.c ../Lib/libumfpack.a
>> ../../AMD/Lib/libamd.a -L/usr/lib/gcc/x86_64-linux-gnu/4.3.1
>> -L/usr/local/lib/scipy/lib -llapack -lf77blas -lcblas -latlas
>> -lgfortran  -lm
>> /usr/bin/ld: umfpack_di_demo: hidden symbol `__powidf2' in
>> /usr/lib/gcc/x86_64-linux-gnu/4.3.1/libgcc.a(_powidf2.o) is referenced
>> by DSO
>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>> collect2: ld returned 1 exit status
>> make[1]: *** [umfpack_di_demo] Error 1
>>
>> I have no real clue where the problem is (could it be a bug in libgcc.a).
>>     
>
> Where did this flag come from: -L/usr/lib/gcc/x86_64-linux-gnu/4.3.1 ?
>
> It looks like a flag that was explicitly added; if you are using gcc
> 4.3.1, that should be hidden from you. Can you doublecheck the
> versions of gcc gfortran that you are actually executing? I.e. gcc
> --version?
>   

well it comes from the tutorial but I have removed it :

gcc -O3  -I../Include -I../../AMD/Include -I../../UFconfig -o 
umfpack_di_demo umfpack_di_demo.c ../Lib/libumfpack.a 
../../AMD/Lib/libamd.a -L/usr/local/lib/scipy/lib -llapack -lf77blas 
-lcblas -latlas -lgfortran  -lm
/usr/bin/ld: umfpack_di_demo: hidden symbol `__powidf2' in 
/usr/lib/gcc/x86_64-linux-gnu/4.3.0/libgcc.a(_powidf2.o) is referenced 
by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [umfpack_di_demo] Error 1
make[1]: Leaving directory `/usr/local/src/UMFPACK/Demo'
make: *** [library] Error 2

gcc version 4.3.0 (Ubuntu 4.3.0-1ubuntu1)

Xavier



More information about the SciPy-user mailing list