#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)
Change History (13)
Changed 7 years ago by sideeffect42 (Dennis Camera)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | michaelld removed |
---|---|
Owner: | set to michaelld |
Status: | new → assigned |
comment:2 Changed 7 years ago by michaelld (Michael Dickens)
Cc: | kencu added |
---|
comment:4 Changed 7 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 7 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 7 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 7 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 7 years ago by sideeffect42 (Dennis Camera)
Attachment: | sip_ppc64.patch added |
---|
Changed 7 years ago by sideeffect42 (Dennis Camera)
Attachment: | pyqt4_ppc64.patch added |
---|
comment:9 Changed 7 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.