Date: Mon, 4 Jan 2016 19:34:53 +0000 From: Olivier Duchateau <duchateau.olivier@gmail.com> To: "Mikhail T." <mi+thun@aldan.algebra.com> Cc: python@FreeBSD.org Subject: Re: numpy would not load: libgcc_s vs. libgfortran Message-ID: <20160104193453.2ae62e7a01ab0a0cd845e296@gmail.com> In-Reply-To: <568AA168.5090400@aldan.algebra.com> References: <568AA168.5090400@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 04 Jan 2016 11:44:24 -0500 "Mikhail T." <mi+thun@aldan.algebra.com> wrote: > Hi! > > I built py-numpy only a few weeks ago with default config options (I > think). I'm trying to port some numpy-using software now and its > self-tests fail with the following error: > > ... > import numpy > File "/opt/lib/python2.7/site-packages/numpy/__init__.py", line > 180, in <module> > from . import add_newdocs > File "/opt/lib/python2.7/site-packages/numpy/add_newdocs.py", line > 13, in <module> > from numpy.lib import add_newdoc > File "/opt/lib/python2.7/site-packages/numpy/lib/__init__.py", > line 8, in <module> > from .type_check import * > File "/opt/lib/python2.7/site-packages/numpy/lib/type_check.py", > line 11, in <module> > import numpy.core.numeric as _nx > File "/opt/lib/python2.7/site-packages/numpy/core/__init__.py", > line 14, in <module> > from . import multiarray > *ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by > /opt/lib/gcc48/libgfortran.so.3 not found* > > I checked all of the shared objects installed by numpy with ldd. All > report properly using the /opt/lib/gcc48/libgcc_s.so.1 (installed by the > gcc48 port) rather than the stock /lib/libgcc_s.so.1. For example: > > /opt/lib/python2.7/site-packages/numpy/core/multiarray.so: > libblas.so.2 => /opt/lib/libblas.so.2 (0x801780000) > libm.so.5 => /lib/libm.so.5 (0x8019d2000) > libpython2.7.so.1 => /opt/lib/libpython2.7.so.1 (0x801bfb000) > libc.so.7 => /lib/libc.so.7 (0x800820000) > libgfortran.so.3 => /opt/lib/gcc48/libgfortran.so.3 > (0x801fbc000) > * libgcc_s.so.1 => /opt/lib/gcc48/libgcc_s.so.1 (0x8022d2000)* > libquadmath.so.0 => /opt/lib/gcc48/libquadmath.so.0 > (0x8024e8000) > libthr.so.3 => /lib/libthr.so.3 (0x802723000) > libintl.so.8 => /opt/lib/libintl.so.8 (0x802948000) > libutil.so.9 => /lib/libutil.so.9 (0x802b53000) > > And yet, the error occurs... > > Has anyone else seen this? Thanks! Yours, > > -mi > > _______________________________________________ > freebsd-python@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-python > To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org" Hi Mikhail, Can you post the complete backtrace? I already encountered this error, and if often due to a wrong python import (cycling import). -- olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160104193453.2ae62e7a01ab0a0cd845e296>