From owner-freebsd-python@freebsd.org Mon Jan 4 18:37:22 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A58FAA604BC for ; Mon, 4 Jan 2016 18:37:22 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8B1A91D0E for ; Mon, 4 Jan 2016 18:37:22 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 897A1A604BB; Mon, 4 Jan 2016 18:37:22 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F35BA604B9 for ; Mon, 4 Jan 2016 18:37:22 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F1CA1D0D for ; Mon, 4 Jan 2016 18:37:22 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id l65so173168264wmf.1 for ; Mon, 04 Jan 2016 10:37:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=3r6bwCOuv/0xapVkeT7xG+cfAv3UDNr/akpzx1zAjtw=; b=iv6hi1gnF0tb5HdnPCu/TJULOaAA+gTbu+Dr7WFvpWnInNfXUfhJB9aL8SGxAJH4bI 9ApG6RGdw5byEeX/gr5vtZNXxsCD7oYMq1vDSVZztnS/vbyRngQFB+VyYDXgI+TUbgx8 ZmrtDEqhqfmwDDvCgkhj7LLhUGXu15C+q1+cVT87p2nUMwbfr3QQdFelM6m9JAKCn8rc CDlSI9NRkZJ2GBZgdNmy2dsw4VsblZ5t1m0vvTRB7tNSK4oQe+B4JplcA/8wwPobGrn2 9ftJL2cTbltrHbktOBTrMpWQ+DTx9MbFIKqVmLldMrieYFzlMdTsUU0vvCTfOJMG81K4 hHSw== X-Received: by 10.194.90.50 with SMTP id bt18mr97680474wjb.118.1451932640471; Mon, 04 Jan 2016 10:37:20 -0800 (PST) Received: from tuborg (AMarseille-655-1-753-75.w92-150.abo.wanadoo.fr. [92.150.162.75]) by smtp.gmail.com with ESMTPSA id 75sm38969458wmo.22.2016.01.04.10.37.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 10:37:19 -0800 (PST) Date: Mon, 4 Jan 2016 19:34:53 +0000 From: Olivier Duchateau To: "Mikhail T." 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> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; i386-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 18:37:22 -0000 On Mon, 04 Jan 2016 11:44:24 -0500 "Mikhail T." 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 > from . import add_newdocs > File "/opt/lib/python2.7/site-packages/numpy/add_newdocs.py", line > 13, in > from numpy.lib import add_newdoc > File "/opt/lib/python2.7/site-packages/numpy/lib/__init__.py", > line 8, in > from .type_check import * > File "/opt/lib/python2.7/site-packages/numpy/lib/type_check.py", > line 11, in > import numpy.core.numeric as _nx > File "/opt/lib/python2.7/site-packages/numpy/core/__init__.py", > line 14, in > 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