Hi,<div><br></div><div>I am building the ParaView SuperBuild on my Linux box. The build fails while building Numpy:</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div>/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</div>
<div>/usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgfortranbegin.a(fmain.o): In function `main':</div><div>(.text+0xa): undefined reference to `MAIN__'</div><div>collect2: ld returned 1 exit status</div><div>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</div>
<div>/usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgfortranbegin.a(fmain.o): In function `main':</div><div>(.text+0xa): undefined reference to `MAIN__'</div><div>collect2: ld returned 1 exit status</div><div>CMake Error at /hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/pv-numpy-build.cmake:32 (message):</div>
<div> Failed!!!</div><div><br></div><div><br></div><div>gmake[2]: *** [numpy/src/numpy-stamp/numpy-build] Error 1</div><div>gmake[2]: Leaving directory `/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64'</div>
<div>gmake[1]: *** [CMakeFiles/numpy.dir/all] Error 2</div><div>gmake[1]: Leaving directory `/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64'</div><div>gmake: *** [all] Error 2</div></blockquote><div><br></div>
</div><div>I found this same issue in the Numpy bug tracker: <a href="http://projects.scipy.org/numpy/ticket/182">http://projects.scipy.org/numpy/ticket/182</a> The fix on the Numpy bug tracker: don't modify LDFLAGS prior to building Numpy. However, pv-numpy-build.cmake does modify LDFLAGS accordingly:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div> LDFLAGS=-L/hao/tyr1/schmitt/paraview/opt/ParaView-3.98.1-Linux-x86_64/install/lib</div><div><br></div></blockquote>Any idea of what I should do?<div>
<br></div><div>System details:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>> uname -a</div></div><div><div>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</div>
</div><div><div>> gcc --version</div></div><div><div>gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)</div></div><div><div>> g++ --version</div></div><div><div>g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)</div></div><div>
> gfortran --version</div><div><div>GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)</div></div></blockquote><div><br></div><div>Thanks,</div><div>Pete</div><div><br></div>