FS#16836 - [python-scipy] unbuildable with current makepkg.conf defaults
Attached to Project:
Community Packages
Opened by Adrian Benson (abenson) - Sunday, 25 October 2009, 12:01 GMT
Last edited by Dan Griffiths (Ghost1227) - Saturday, 07 November 2009, 07:04 GMT
Opened by Adrian Benson (abenson) - Sunday, 25 October 2009, 12:01 GMT
Last edited by Dan Griffiths (Ghost1227) - Saturday, 07 November 2009, 07:04 GMT
|
Details
python-scipy 0.7.1-1 (NB also python-numpy 1.3.0-2 (x86_64)
(1) Cannot build due to a linking error with gfortan libraries (see below). The problem is LDFLAGS set in /etc/makepkg.conf. Including 'unset LDFLAGS' in PKGBUILD fixes the error. This is a new error as I have recompiled scipy numerous times before ( against a custom blas) and never had a problem. Methinks the latest gcc/binutils package has changed behaviour somehow. This type of error is known with numpy & scipy e.g. http://projects.scipy.org/numpy/ticket/182 (2) Another potential gotcha bug is the use of a custom FFLAG variable as I had. This causes the the scipy build scripts to miss setting -fPIC on an x86_64 system resulting the usual symbol errors. e.g. http://mail.scipy.org/pipermail/scipy-dev/2008-April/008869.html Adding either unset FFLAGS or FFLAGS="$FFLAGS -fPIC" to the pkgbuild fixes this issue. Again, I never had any issue with this before. compilation fails at following ================================== /usr/bin/gfortran -Wall -Wl,--hash-style=gnu -Wl,--as-needed build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o -L/usr/lib -Lbuild/temp.linux-x86_64-2.6 -ldfftpack -lpython2.6 -lgfortran -o build/lib.linux-x86_64-2.6/scipy/fftpack/_fftpack.so /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgfortranbegin.a(fmain.o): In function `main': (.text+0x26): undefined reference to `MAIN__' collect2: ld returned 1 exit status /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgfortranbegin.a(fmain.o): In function `main': (.text+0x26): undefined reference to `MAIN__' collect2: ld returned 1 exit status error: Command "/usr/bin/gfortran -Wall -Wl,--hash-style=gnu -Wl,--as-needed build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.6/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o -L/usr/lib -Lbuild/temp.linux-x86_64-2.6 -ldfftpack -lpython2.6 -lgfortran -o build/lib.linux-x86_64-2.6/scipy/fftpack/_fftpack.so" failed with exit status 1 |
This task depends upon