[SciPy-User] [SciPy-Dev] 1.8.0rc1

Jack Howarth howarth at bromo.med.uc.edu
Tue Oct 1 12:02:21 EDT 2013


On Tue, Oct 01, 2013 at 04:52:06PM +0100, Robert Kern wrote:
> On Tue, Oct 1, 2013 at 4:41 PM, Pauli Virtanen <pav at iki.fi> wrote:
> >
> > Hi,
> >
> > 01.10.2013 16:28, Jack Howarth kirjoitti:
> > [clip]
> > > /sw/bin/python2.7 setup.py build
> > >
> > > which fails at...
> > >
> > > /sw/bin/gfortran -Wall -L/sw/lib
> build/temp.macosx-10.6-x86_64-2.7/numpy/linalg/lapack_litemodule.o
> build/temp.macosx-10.6-x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o
> -L/sw/lib -L/sw/lib/gcc4.8/lib/gcc/x86_64-apple-darwin10.8.0/4.8.1
> -Lbuild/temp.macosx-10.6-x86_64-2.7 -llapack -lptf77blas -lptcblas -latlas
> -lgfortran -o build/lib.macosx-10.6-x86_64-2.7/numpy/linalg/lapack_lite.so
> > > Undefined symbols for architecture x86_64:
> > >   "_main", referenced from:
> > >       start in crt1.10.6.o
> > [clip]
> >
> > Something is screwed up in your build environment: the `-shared` flag is
> > missing from the link command.
> >
> > Perhaps you have set one of the the environment variables FFLAGS,
> > CFLAGS, LDFLAGS?
> 
> Also the `-undefined dynamic_lookup` flag.

The consensus of the fink developers is that you are introducing a bug in both
scipy and numpy. The build should be able to pass additional flags on these
variables and the scipy/numpy build should be able to append any additional
flags required. In particular, both MacPorts and fink will want to be able to
pass -L/opt/local/lib or -L/sw/lib via LDFLAGS. The changes added to scipy and
numpy have broken this and now require that these additional flags be manually
patched into the Makefiles of numpy and scipy rather than just passing them
on LDFLAGS as has always worked in the past.
         Jack

> 
> --
> Robert Kern

> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev




More information about the SciPy-User mailing list