Date: Mon, 04 Jan 2016 11:44:24 -0500 From: "Mikhail T." <mi+thun@aldan.algebra.com> To: python@FreeBSD.org Subject: numpy would not load: libgcc_s vs. libgfortran Message-ID: <568AA168.5090400@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?568AA168.5090400>