Opened 10 years ago

Closed 10 years ago

#41445 closed defect (duplicate)

python/py-numpy @1.8.0_0: Symbol not found: __gfortran_compare_string

Reported by: skymoo (Adam Mercer) Owned by: dh@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: michaelld (Michael Dickens), cooljeanius (Eric Gallager), petrrr
Port: py-numpy

Description

I updated one of my machines yesterday and py27-numpy @1.8.0_0 was installed, now whenever I try import numpy I get the following error:

[ram@cizin ~]$ python
Python 2.7.6 (default, Nov 14 2013, 00:48:33)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 153, in <module>
    from . import add_newdocs
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from .polynomial import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 50, in <module>
    from .linalg import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, 2): Symbol not found: __gfortran_compare_string
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
  Expected in: flat namespace
 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
>>>

The build succeeds if I revert to `py27-numpy @1.7.1_1`

Attachments (1)

main.log (1.0 MB) - added by skymoo (Adam Mercer) 10 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 10 years ago by skymoo (Adam Mercer)

Cc: michaelld@… added
Owner: changed from dh@… to dh@…

comment:2 in reply to:  1 Changed 10 years ago by seanfarley (Sean Farley)

Replying to ram@…:

I'm looking into it now.

comment:3 in reply to:  description Changed 10 years ago by seanfarley (Sean Farley)

Replying to ram@…:

I updated one of my machines yesterday and py27-numpy @1.8.0_0 was installed, now whenever I try import numpy I get the following error:

[ram@cizin ~]$ python
Python 2.7.6 (default, Nov 14 2013, 00:48:33)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line 153, in <module>
    from . import add_newdocs
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
    from .polynomial import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 50, in <module>
    from .linalg import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, 2): Symbol not found: __gfortran_compare_string
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
  Expected in: flat namespace
 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
>>>

The build succeeds if I revert to `py27-numpy @1.7.1_1`

Can you send the log file as well? At the very least, could you tell me if you have atlas installed? Which gcc installed?

comment:4 Changed 10 years ago by skymoo (Adam Mercer)

The log file was deleted after as it was a "successful" install, I'll try run another build and see if I can capture the log. I'm using the following version of @3.10.1_5+gcc48 (active).

Changed 10 years ago by skymoo (Adam Mercer)

Attachment: main.log added

comment:5 Changed 10 years ago by skymoo (Adam Mercer)

log file attached.

comment:6 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:7 Changed 10 years ago by seanfarley (Sean Farley)

Ok, I think I finally got this fixed. It was due to the same error as in ticket #41397, namely, linking to ATLAS accidentally.

comment:8 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:9 Changed 10 years ago by seanfarley (Sean Farley)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.