Opened 9 years ago

Closed 3 years ago

#47832 closed defect (wontfix)

py34-h5py @ 1.8.15 +python : Import Error : Incompatible cpu-subtype

Reported by: emmanuel@… Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), petrrr
Port: py-h5py

Description

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 ?

Attachments (2)

main.log (51.2 KB) - added by emmanuel@… 9 years ago.
The log file
debug.txt (197.0 KB) - added by emmanuel@… 9 years ago.

Download all attachments as: .zip

Change History (13)

Changed 9 years ago by emmanuel@…

Attachment: main.log added

The log file

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: g3 removed
Owner: changed from macports-tickets@… to eborisch@…
Port: py-h5py added; py34-h5py removed

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

comment:2 Changed 9 years ago 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

comment:3 Changed 9 years ago by eborisch (Eric A. Borisch)

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.

comment:6 in reply to:  3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to 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 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.

comment:7 Changed 9 years ago by eborisch (Eric A. Borisch)

I agree that it's most likely not the issue, but lacking a system to test on, I'm limited to logs and Google. ;)

comment:8 Changed 9 years ago 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.

Changed 9 years ago by emmanuel@…

Attachment: debug.txt added

comment:9 Changed 9 years ago by emmanuel@…

I runned the installation in debug mode, there is the first part.

comment:10 in reply to:  8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to 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.

comment:13 Changed 9 years ago 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.

comment:14 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:15 Changed 3 years ago by eborisch (Eric A. Borisch)

Resolution: wontfix
Status: newclosed

Closing for inactivity.

Note: See TracTickets for help on using tickets.