Opened 12 years ago

Closed 12 years ago

#34722 closed defect (fixed)

py27-pyqt4 fails to build on snow leopard/xcode 4.2

Reported by: miguelbarao (MB) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: eborisch (Eric A. Borisch)
Port: py27-pyqt4

Description

...
--->  Activating qt4-mac @4.7.4_1+quartz
--->  Cleaning qt4-mac
--->  Fetching archive for py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.1_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/py27-pyqt4
--->  Fetching distfiles for py27-pyqt4
--->  Attempting to fetch PyQt-mac-gpl-4.9.1.tar.gz from http://lil.fr.distfiles.macports.org/python
--->  Verifying checksum(s) for py27-pyqt4
--->  Extracting py27-pyqt4
--->  Applying patches to py27-pyqt4
--->  Configuring py27-pyqt4
Error: org.macports.configure for port py27-pyqt4 returned: configure failure: command execution failed
Error: Failed to install py27-pyqt4
Please see the log file for port py27-pyqt4 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/main.log
Error: The following dependencies were not installed: py27-pyqt4 py27-rope py27-scipy swig-python swig py27-sphinx py27-docutils py27-roman py27-jinja2 py27-markupsafe py27-pygments sphinx_select
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-spyder failed

OS X Version is 10.6.8 XCode version is 4.2

Its seems that the compiler /usr/bin/g++-4.2 is referred in the configure script but it does not exist (see attached log). There is a /usr/bin/llvm-g++-4.2 though.

Attachments (1)

main.log (10.4 KB) - added by miguelbarao (MB) 12 years ago.
py27-pyqt4/main.log

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by miguelbarao (MB)

Attachment: main.log added

py27-pyqt4/main.log

comment:1 Changed 12 years ago by miguelbarao (MB)

I tried to follow the suggestions on https://trac.macports.org/wiki/ProblemHotlist but none of them worked. xcode-select version 2003. (its xcode 4.2)

The following has failed:

sudo port install py27-pyqt4 configure.compiler=llvm-gcc-4.2 configure.cxx=llvm-g++-4.2

sudo port install py27-pyqt4 configure.compiler=gcc-apple-4.2 configure.cxx=g++-apple-4.2 (BTW the problem hotlist has the gcc-apple-4.2 name wrong)

sudo port install py27-pyqt4 configure.compiler=clang configure.cxx=clang++

port clean has been done between them.

The configure script seems to always look for g++-4.2 despite the configure.compiler and configure.cxx directives suggested in https://trac.macports.org/wiki/ProblemHotlist.

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to michaelld@…

comment:3 Changed 12 years ago by miguelbarao (MB)

Problem has been solved by recompiling qt4-mac from sources: sudo port -ns upgrade --force qt4-mac.

comment:4 Changed 12 years ago by michaelld (Michael Dickens)

If this ticket is still valid, can you do the following:

sudo port clean py27-pyqt4
sudo port selfupdate

and then try to install or upgrade py27-pyqt4 again. There's a new qt4-mac that will hopefully fix this issue.

comment:5 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added

Cc Me!

comment:6 Changed 12 years ago by eborisch (Eric A. Borisch)

Resolution: fixed
Status: newclosed

Original reported indicated fixed with recompile in comments above.

Note: See TracTickets for help on using tickets.