Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56092 closed defect (fixed)

py-sip: Does not compile on ppc64

Reported by: sideeffect42 (Dennis Camera) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kencu (Ken)
Port: py-sip

Description

The py-sip packages to not compile on ppc64:

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-sip/py36-sip/work/sip-4.19.8" && /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 configure.py -d /opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -e /opt/local/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -v /opt/local/share/sip -p macx-g++ --bindir=/opt/local/bin --destdir=/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages --incdir=/opt/local/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m --sipdir=/opt/local/share/py36-sip --arch=ppc --arch=ppc64 --sdk=/Developer/SDKs/MacOSX10.5.sdk LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib -arch ppc -arch ppc64" CFLAGS="-arch ppc -arch ppc64" CXXFLAGS="-arch ppc -arch ppc64"
Usage: python configure.py [opts] [macro=value] [macro+=value]

configure.py: error: option --arch: invalid choice: 'ppc64' (choose from 'i386', 'x86_64', 'ppc')
This is SIP 4.19.8 for Python 3.6.4 on darwin.

Attachments (3)

main.log (16.6 KB) - added by sideeffect42 (Dennis Camera) 6 years ago.
sip_ppc64.patch (570 bytes) - added by sideeffect42 (Dennis Camera) 6 years ago.
pyqt4_ppc64.patch (874 bytes) - added by sideeffect42 (Dennis Camera) 6 years ago.

Download all attachments as: .zip

Change History (13)

Changed 6 years ago by sideeffect42 (Dennis Camera)

Attachment: main.log added

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: michaelld removed
Owner: set to michaelld
Status: newassigned

comment:2 Changed 6 years ago by michaelld (Michael Dickens)

Cc: kencu added

Hmmm ... not gonna be simple for me to help here for a bit. I'll see if I can get a 10.4 PPC install going; right now I have a 10.5 PPC box. I'll bring in @kencu who night be able to shed some light here.

comment:3 Changed 6 years ago by michaelld (Michael Dickens)

@kencu: any ideas for this ticket?

comment:4 Changed 6 years ago by sideeffect42 (Dennis Camera)

I had a go at it and patched configure.py to allow "ppc64" as an option to --arch. With that py36-sip compiled just fine.

But when I tried to build py-pyqt4 (which is what I really wanted) it failed because some of the Qt frameworks were ppc7400 only despite qt4-mac +universal being installed.

@kencu: Do you have an idea why that could be?

comment:5 Changed 6 years ago by michaelld (Michael Dickens)

@sideeffect42 can you attach your SIP patch? I'll test as best I can & get it committed.

comment:6 Changed 6 years ago by kencu (Ken)

Well it's a while back, but I recall I tried to build qt4 on 10.5 PPC as 64 bit last year, and it failed to build that way. I'm not sure if it bogged down in some 7400 assembly, or if it was all in the guts of the qt configuration.

Not much help, I know.

comment:7 Changed 6 years ago by sideeffect42 (Dennis Camera)

@michaelld: Sure, please find the patches for SIP and PyQt4 attached. I didn't even check PyQt5, because afaik it's impossible to get Qt5 on PowerPC. I also posted the patches to the mailing list, so there is a chance of them getting upstreamed.

@kencu: That doesn't sound too good. Maybe there's a way to combine 64-bit Python with 32-bit Qt4.

Changed 6 years ago by sideeffect42 (Dennis Camera)

Attachment: sip_ppc64.patch added

Changed 6 years ago by sideeffect42 (Dennis Camera)

Attachment: pyqt4_ppc64.patch added

comment:8 Changed 6 years ago by michaelld (Michael Dickens)

Cool thx.

comment:9 Changed 6 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

In 60febb0d791fee32dbd7c33d9d242750c83cea7e/macports-ports:

py*-pyqt4: add patch to enable PPC64 arch

Closes: #56092

Note: See TracTickets for help on using tickets.