[Numpy-discussion] SOLVED Re: Building numpy 1.0.3-2 on Linux 2.6.8 i686 (Debian 3.1)

Michael Hoffman b3i4old02@sneakemail....
Sat Sep 15 10:20:49 CDT 2007


Michael Hoffman wrote:

I have finally solved this problem.

> """
> $ CFLAGS= LDFLAGS= 
> LD_LIBRARY_PATH=/nfs/acari/mh5/arch/Linux-x86_64/opt/python-2.5.1/lib 
> /nfs/acari/mh5/arch/Linux-x86_64/opt/python-2.5.1/bin/python setup.py -v 
> build

"LDFLAGS= python setup.py" is not sufficient. This sets LDFLAGS to an 
empty string. It is instead necessary to run "unset LDFLAGS" on a 
previous command line.

 > [...]
 >
> g77 build/temp.linux-x86_64-2.5/numpy/core/blasdot/_dotblas.o -L/usr/lib 
> -L/nfs/acari/mh5/arch/Linux-x86_64/opt/python-2.5.1/lib -lblas 
> -lpython2.5 -lg2c-pic -o build/lib.linux-x86_64-2.5/numpy/core/_dotblas.so
> /usr/lib/libfrtbegin.a(frtbegin.o)(.text+0x1e): In function `main':
> : undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
> /usr/lib/libfrtbegin.a(frtbegin.o)(.text+0x1e): In function `main':
> : undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
> error: Command "g77 
> build/temp.linux-x86_64-2.5/numpy/core/blasdot/_dotblas.o -L/usr/lib 
> -L/nfs/acari/mh5/arch/Linux-x86_64/opt/python-2.5.1/lib -lblas 
> -lpython2.5 -lg2c-pic -o 
> build/lib.linux-x86_64-2.5/numpy/core/_dotblas.so" failed with exit status 1
> """



More information about the Numpy-discussion mailing list