Opened 11 years ago
Closed 11 years ago
#40527 closed defect (fixed)
py27-pyqt4 uses the compiler provided by qt4-mac, not the MacPorts-select compiler
Reported by: | srirajpaul@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | ||
Port: | py-pyqt4 |
Description
I was trying to install py27-pyqt4 on my mac. But it is failing. It looks like is having some problem with Qt. Attaching the log file.
Attachments (1)
Change History (8)
Changed 11 years ago by srirajpaul@…
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to michaelld@… |
---|---|
Port: | py-pyqt4 added |
comment:2 follow-up: 3 Changed 11 years ago by michaelld (Michael Dickens)
I'd guess it's qt4-mac too. Try the following:
sudo port -f uninstall qt4-mac sudo port install qt4-mac [+variants] sudo port clean py27-pyqt4 sudo port install py27-pyqt4 [+variants]
where the "[+variants]" means to add the variants you want to the install, not to literally put that string in the install command. Hopefully you just have qt4-mac installed from a prior version of Xcode, and updating it will resolve the issue for you.
I will look into allowing qt4-mac to use the right compiler; I think we've talked about this in the past, but I don't remember ever actually implementing anything. Luckily, issues such as yours do not come up very often.
comment:3 Changed 11 years ago by srirajpaul@…
I tried the 4 commands. It didnt work. Still it failed. For the [+variants] part I left it blank.
comment:4 follow-up: 5 Changed 11 years ago by michaelld (Michael Dickens)
Interesting. When you did "sudo port install qt4-mac" did it load from binary again, or compile from source? If the former, can you do:
sudo port -f uninstall qt4-mac sudo port -s install qt4-mac sudo port clean py27-pyqt4 sudo port install py27-pyqt4
and hopefully that will do the trip. The "install qt4-mac" command will take quite a long time; sorry.
comment:6 Changed 11 years ago by michaelld (Michael Dickens)
Summary: | py27-pyqt4 installation failing on snowleopard → py27-pyqt4 uses the compiler provided by qt4-mac, not the MacPorts-select compiler |
---|
Thanks for reporting back; I'm glad that works. PyQt4 is still not using the right compiler, so I'm leaving this ticket open as a reminder to myself to fix it.
comment:7 Changed 11 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r111812.
The log says:
(because you must have installed Xcode 4.2)
But then:
The port does not seem to be UsingTheRightCompiler.
gcc-4.2 is the default compiler for Snow Leopard on Xcode 3.2.6, which is what our buildbots use; presumably you got a binary of one of py-pyqt4's dependencies, and that dependency recorded what compiler it used, and is now trying to enforce that compiler choice on its dependents. I'd guess qt4-mac is the culprit, though both it and python27 record the compiler that was used.