<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 1:00 PM, Neal Becker <span dir="ltr"><<a href="mailto:ndbecker2@gmail.com" target="_blank">ndbecker2@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Failed building on fedora 19 x86_64 using atlas:<br>
<br>
creating build/temp.linux-x86_64-2.7/numpy/linalg<br>
creating build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite<br>
compile options: '-DATLAS_INFO="\"3.8.4\"" -I/usr/include -Inumpy/core/include -<br>
Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -<br>
Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -<br>
Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -<br>
Inumpy/core/include -I/usr/include/python2.7 -c'<br>
gcc: numpy/linalg/lapack_litemodule.c<br>
gcc: numpy/linalg/lapack_lite/python_xerbla.c<br>
/usr/bin/gfortran -Wall -Wl,-rpath=/opt/intel/mkl/lib/intel64 build/temp.linux-<br>
x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-<br>
x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o -L/usr/lib64/atlas -<br>
L/usr/lib64 -Lbuild/temp.linux-x86_64-2.7 -llapack -lptf77blas -lptcblas -latlas<br>
-lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so<br>
/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../lib64/crt1.o: In function<br>
`_start':<br>
(.text+0x20): undefined reference to `main'<br>
collect2: error: ld returned 1 exit status<br>
/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../lib64/crt1.o: In function<br>
`_start':<br>
(.text+0x20): undefined reference to `main'<br>
collect2: error: ld returned 1 exit status<br>
<br>
Build command was:<br>
env ATLAS=/usr/lib64 FFTW=/usr/lib64 BLAS=/usr/lib64     LAPACK=/usr/lib64<br>
CFLAGS="-mtune=native -march=native -O3" LDFLAGS="-Wl,-<br>
rpath=/opt/intel/mkl/lib/intel64" python setup.py build<br></blockquote><div><br></div><div>This command never worked: you need to add the -shared flag to LDFLAGS (and you may want to remove rpath to MKL if you use ATLAS).</div>
<div><br></div><div>David </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
attached site.cfg<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br></div></div>