[Paraview-developers] SuperBuild on Linux: Numpy fails to build with "(.text+0xa): undefined reference to `MAIN__'"
Peter Schmitt
pschmittml at gmail.com
Tue Feb 19 13:49:42 EST 2013
Hi,
I am building the ParaView SuperBuild on my Linux box. The build fails
while building Numpy:
/usr/bin/gfortran -Wall
-L/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/install/lib
build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o
build/temp.linux-x86_64-2.7/numpy/linalg/python_xerbla.o -L/usr/lib64
-L/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/install/lib
-Lbuild/temp.linux-x86_64-2.7 -llapack -lblas -lpython2.7 -lgfortran -o
build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgfortranbegin.a(fmain.o): In
function `main':
(.text+0xa): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall
-L/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/install/lib
build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o
build/temp.linux-x86_64-2.7/numpy/linalg/python_xerbla.o -L/usr/lib64
-L/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/install/lib
-Lbuild/temp.linux-x86_64-2.7 -llapack -lblas -lpython2.7 -lgfortran -o
build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so" failed with exit
status 1
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgfortranbegin.a(fmain.o): In
function `main':
(.text+0xa): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
CMake Error at
/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/pv-numpy-build.cmake:32
(message):
Failed!!!
gmake[2]: *** [numpy/src/numpy-stamp/numpy-build] Error 1
gmake[2]: Leaving directory
`/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64'
gmake[1]: *** [CMakeFiles/numpy.dir/all] Error 2
gmake[1]: Leaving directory
`/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64'
gmake: *** [all] Error 2
I found this same issue in the Numpy bug tracker:
http://projects.scipy.org/numpy/ticket/182 The fix on the Numpy bug
tracker: don't modify LDFLAGS prior to building Numpy.
However, pv-numpy-build.cmake does modify LDFLAGS accordingly:
LDFLAGS=-L/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/install/lib
Any idea of what I should do?
System details:
> uname -a
Linux tyr 2.6.18-308.16.1.el5 #1 SMP Tue Oct 2 22:01:43 EDT 2012 x86_64
x86_64 x86_64 GNU/Linux
> gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
> g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
> gfortran --version
GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Thanks,
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130219/1a2b20ce/attachment.htm>
More information about the Paraview-developers
mailing list