From owner-freebsd-python@freebsd.org  Mon Jan  4 23:01:18 2016
Return-Path: <owner-freebsd-python@freebsd.org>
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 B165CA6203F
 for <freebsd-python@mailman.ysv.freebsd.org>;
 Mon,  4 Jan 2016 23:01:18 +0000 (UTC)
 (envelope-from mi+thun@aldan.algebra.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 96A461F1B
 for <freebsd-python@freebsd.org>; Mon,  4 Jan 2016 23:01:18 +0000 (UTC)
 (envelope-from mi+thun@aldan.algebra.com)
Received: by mailman.ysv.freebsd.org (Postfix)
 id 96599A6203E; Mon,  4 Jan 2016 23:01:18 +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 7D926A6203C
 for <python@mailman.ysv.freebsd.org>; Mon,  4 Jan 2016 23:01:18 +0000 (UTC)
 (envelope-from mi+thun@aldan.algebra.com)
Received: from vms173003pub.verizon.net (vms173003pub.verizon.net
 [206.46.173.3])
 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 60DD51F19
 for <python@FreeBSD.org>; Mon,  4 Jan 2016 23:01:17 +0000 (UTC)
 (envelope-from mi+thun@aldan.algebra.com)
MIME-version: 1.0
Received: from aldan.narawntapu ([100.1.236.52]) by vms173003.mailsrvcs.net
 (Oracle Communications Messaging Server 7.0.5.34.0 64bit (built Oct 14 2014))
 with ESMTPA id <0O0G00J0M7T80Y50@vms173003.mailsrvcs.net> for
 python@FreeBSD.org; Mon, 04 Jan 2016 16:00:49 -0600 (CST)
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=EdU1O6SC c=1 sm=1 tr=0	a=UorMnhrCY2jH/mPejITChw==:117
 a=LaogzpLLAAAA:8 a=oR5dmqMzAAAA:8	a=7aQ_Q-yQQ-AA:10 a=r77TgQKjGQsHNAKrUKIA:9
 a=4pYE2rztLuECmnN_KYQA:9	a=pILNOxqGKmIA:10 a=MT8OakBRaYXNiUCOKZAA:9
 a=-lrJVO0D_xGNiZrI:21	a=_W_S_7VecoQA:10
Subject: SOLVED: numpy would not load: libgcc_s vs. libgfortran
To: Olivier Duchateau <duchateau.olivier@gmail.com>
References: <568AA168.5090400@aldan.algebra.com>
 <20160104193453.2ae62e7a01ab0a0cd845e296@gmail.com>
 <568AC046.8040300@aldan.algebra.com>
 <20160104213150.4e47df03583e70cef356a51d@gmail.com>
 <568AE454.6010604@aldan.algebra.com>
Cc: python@FreeBSD.org
From: "Mikhail T." <mi+thun@aldan.algebra.com>
X-Enigmail-Draft-Status: N1110
Message-id: <568AEB8C.2000805@aldan.algebra.com>
Date: Mon, 04 Jan 2016 17:00:44 -0500
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101
 Thunderbird/38.4.0
In-reply-to: <568AE454.6010604@aldan.algebra.com>
Content-Type: text/plain; CHARSET=US-ASCII
Content-Transfer-Encoding: 7BIT
X-Content-Filtered-By: Mailman/MimeDel 2.1.20
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, 
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Jan 2016 23:01:18 -0000

On 04.01.2016 16:29, Mikhail T. wrote:
> ImportError:
> /opt/lib/python2.7/site-packages/numpy/core/multiarray.so: Undefined
> symbol "cblas_cdotc_sub"
Ok, the above went away, when I rebuilt all of the Fortran-using
dependencies of numpy with gfortran5. Don't know, if they were built
incorrectly somehow, or if something is wrong with gfortran48.

My one-liner test script now "works", but the original problem is still
here -- only now it complains about gcc5's libgfortran:

      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/gcc5/libgfortran.so.3 not found

I wonder, if this has something to do with my setting PYTHONPATH -- I
need the not-yet-installed mediagoblin packages to be found in ${WRKSRC}
by the tests. What is the proper way of to do this?

Thank you!

    -mi