Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2014 07:31:08 GMT
From:      Vladimir Chukharev <Vladimir.Chukharev@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/188114: math/py-numpy is broken on 9.2-STABLE
Message-ID:  <201403310731.s2V7V8uG071792@cgiserv.freebsd.org>
Resent-Message-ID: <201403310740.s2V7e1xs086556@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188114
>Category:       ports
>Synopsis:       math/py-numpy is broken on 9.2-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 07:40:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Chukharev
>Release:        9.2-STABLE
>Organization:
>Environment:
FreeBSD vovaasus 9.2-STABLE FreeBSD 9.2-STABLE #14 r263914M: Sat Mar 29 22:03:43 EET 2014     root@vovaasus:/usr/obj/usr/src/sys/VOVA  amd64
>Description:
math/py-numpy is broken on 9.2-STABLE by the change of the default gcc version to 4.7. I tried to compile everything related to numpy with gcc48 as recommended by someone, but the error stays the same (sans version in the path in ImportError line below):

 $ python -c "import numpy"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 153, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from .polynomial import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 50, in <module>
    from .linalg import *
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found

I have seen the discussions in December in preparations for the GCC version change. It seems the patch proposed in there, is in place (/usr/ports/math/py-numpy/files/patch-numpy-distutils-fcompiler-gnu.py), but apparently it's not enough...

I also tried to rebuild all my ports. I did it with portmaster in-place method, though, which is not totally free from inheriting problems of previous builds.
>How-To-Repeat:
I see the discussions of the same bug, e.g. as py-scipy build problems. So I guess it's easy to reproduce with fresh ports on 9.2-STABLE...
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403310731.s2V7V8uG071792>