python packages struggling with GCC 4.7

William Grzybowski william88 at gmail.com
Wed Dec 4 14:59:23 UTC 2013


On Wed, Dec 4, 2013 at 11:13 AM, Gerald Pfeifer <gerald at pfeifer.com> wrote:

> On Wed, 4 Dec 2013, William Grzybowski wrote:
> > The main reason foe the python failures, if not all, is math/p-numpy.
> > It is compiling just fine, but the package is not working:
> >
> > ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
> > /usr/local/lib/gcc47/libgfortran.so.3 not found
> >
> > Looks like it is linking to /lib/libgcc_s.so.1 and should use
> > /usr/local/lib/gcc47/libgcc_s.so.1, am I right?
>
> #1, you rock.
>
> #2, you are right.  Is it possible that math/p-numpy fails to use LDFLAGS
> which would have added -Wl,rpath=/usr/local/lib/gcc47/libgcc_s.so.1 when
> linking?
>

It looks like the build is not respecting FFLAGS, so no -Wl,rpath= for
gfortran.
As far as it working for gcc46, it looks like it fails to detect gfortran46
as a compiler and uses gcc46, which respects CFLAGS.


>
> Can you somehow fix this in/for math/p-numpy?
>

Can you try http://people.freebsd.org/~wg/py-numpy.patch  ?


-- 
William Grzybowski
------------------------------------------
Curitiba/PR - Brasil


More information about the freebsd-python mailing list