Sorry if I posted this twice.

I wonder if anyone can suggest me how to fix this error which I find
during numpy build:

.........
creating build/temp.linux-i686-2.6/numpy/linalg
compile options: '-DNO_ATLAS_INFO=1 -Inumpy/core/include
-Ibuild/src.linux-i686-2.6/numpy/core/include/numpy -Inumpy/core/src
-Inumpy/core/include -I/home/gaprea/usr/local/include/python2.6 -c'
gcc: numpy/linalg/lapack_litemodule.c
gcc: numpy/linalg/python_xerbla.c
/usr/bin/gfortran -Wall -L/home/gaprea/usr/local/lib
build/temp.linux-i686-2.6/numpy/linalg/lapack_litemodule.o
build/temp.linux-i686-2.6/numpy/linalg/python_xerbla.o
-L/home/gaprea/usr/local/lib -L/usr/lib -L/home/gaprea/usr/local/lib
-Lbuild/temp.linux-i686-2.6 -llapack -lblas -lpython2.6 -lgfortran -o
build/lib.linux-i686-2.6/numpy/linalg/lapack_lite.so
/usr/lib/gcc/i486-linux-gnu/4.2.4/libgfortranbegin.a(fmain.o): In
function `main':
(.text+0x23): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
/usr/lib/gcc/i486-linux-gnu/4.2.4/libgfortranbegin.a(fmain.o): In
function `main':
(.text+0x23): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -L/home/gaprea/usr/local/lib
build/temp.linux-i686-2.6/numpy/linalg/lapack_litemodule.o
build/temp.linux-i686-2.6/numpy/linalg/python_xerbla.o
-L/home/gaprea/usr/local/lib -L/usr/lib -L/home/gaprea/usr/local/lib
-Lbuild/temp.linux-i686-2.6 -llapack -lblas -lpython2.6 -lgfortran -o
build/lib.linux-i686-2.6/numpy/linalg/lapack_lite.so" failed with exit
status 1

It seems that the installation program is using gfortran to link while
it should have used gcc.
I am using Kubuntu 8.04 and I have the following version of gfortran and gcc:

$ gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

does anybody have a suggestion?

thanks

giuseppe
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to