[MacPorts] #47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype ------------------------+-------------------------------- Reporter: emmanuel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: g3 | Port: py34-h5py ------------------------+-------------------------------- I tried to install the port '''py34-h5py''' with the''' python34 previously installed''' on a PowerBook G3 pismo ('''PowerPC G3 400 Mhz, Xcode 2.5 and OSX 10.4 Tiger, apple-gcc4.2 and gcc-mp-4.9'''). The port '''py34-numpy''', needed by h5py was successfully builed and installed, but when macport is executing '''cythonize()''' in h5py installation, this error occur : {{{ ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so, 2): no suitable image found. Did find: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so: incompatible cpu-subtype }}} Is g3 supported by h5py ? -- Ticket URL: <https://trac.macports.org/ticket/47832> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Changes (by ryandesign@…): * cc: ryandesign@… (added) * keywords: g3 => * port: py34-h5py => py-h5py * owner: macports-tickets@… => eborisch@… Comment: Don't know. What is the arch of /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so? To find out, run: {{{ lipo -info /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so }}} -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by emmanuel@…): The response : {{{ Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so is architecture: ppc7400 }}} It seems to be the arch of the G4 family : [http://en.wikipedia.org/wiki/PowerPC_G4] -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by eborisch@…): I don't have a PPC system to run this down, but I think you may be out of luck here; a quick google search calls out lack of G3 support on apple's gcc42: http://www.cocoabuilder.com/archive/xcode/268796-gcc-4-2-disables- powerpc-g3-support.html YMMV. Again, I don't have any PPC systems to try and track this one down. Anyone out there running numpy on a G3? Can you interactively (in python) "import numpy.linalg" (my guess is no)? It looks like py34-numpy built but isn't usable. -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by ryandesign@…): Replying to [comment:2 emmanuel@…]:
{{{ Non-fat file: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so is architecture: ppc7400 }}}
It seems to be the arch of the G4 family : [http://en.wikipedia.org/wiki/PowerPC_G4]
I agree, that file is built for a G4 processor. The question is why. I suspect something in the numpy build system is deliberately requesting this. That could either be an accident, in which case we can change it, or it could be deliberate because that file requires a G4 processor, in which case we can do nothing about it. I have not yet found where this is happening but I will do a build on my G4 and take a look. Replying to [comment:3 eborisch@…]:
I think you may be out of luck here; a quick google search calls out lack of G3 support on apple's gcc42: http://www.cocoabuilder.com/archive/xcode/268796-gcc-4-2-disables- powerpc-g3-support.html
That doesn't make sense. If that were so, Emmanuel would not be able to run ''any'' ports on his G3 anymore, but he hasn't claimed that's the case. There are lots of claims in that thread you linked to that are flat- out wrong now, at least with the updated version of Apple gcc-4.2 that we have in MacPorts. For example, it claims gcc-4.2 can't be used to build software that works on Tiger, but as of MacPorts 2.3, the MacPorts version of Apple gcc-4.2 is the default compiler on Tiger, and the software it builds certainly runs for me. -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by eborisch@…): I agree that it's most likely not the issue, but lacking a system to test on, I'm limited to logs and Google. ;) -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by emmanuel@…): Macport previously built python3.4.3 and gcc-4.9 with apple-gcc4.2 and they work fine. It's specifically numpy who's built with G4 as target for unknown reason, the error message is the same by importing it within a python script : {{{ ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so, 2): no suitable image found. Did find: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 /site-packages/numpy/linalg/lapack_lite.so: incompatible cpu-subtype }}} But i'm still unable to explain why macport is targerting numpy for a G4 processor. -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by emmanuel@…): I runned the installation in debug mode, there is the first part. -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by ryandesign@…): Replying to [comment:8 emmanuel@…]:
But i'm still unable to explain why macport is targerting numpy for a G4 processor.
I don't believe MacPorts has anything to do with it; I think it's just how numpy builds itself. -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#47832: py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype -------------------------+------------------------ Reporter: emmanuel@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-h5py | -------------------------+------------------------ Comment (by emmanuel@…): I downloaded the numpy from there [https://www.openhub.net/p/numpy?ref=sample], then i runned and simple : {{{ python setup.py build python setup.py install }}} and it work fine. -- Ticket URL: <https://trac.macports.org/ticket/47832#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts