Opened 9 years ago

Closed 5 years ago

#45406 closed defect (fixed)

py27-pyqt4 fails when trying to install gqrx

Reported by: armaan@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: py-pyqt4

Description

I am running OSX 10.6.8 (Snow Leopard) and have Xcode Version 4.2 Build 4C199

Armaans-MacBook:~ armaan$ sudo port install gqrx
Password:
--->  Computing dependencies for gqrx
--->  Dependencies to be installed: gnuradio py27-pyqt4 py27-pyqwt qwt52 py27-scipy SuiteSparse libgcc cctools cctools-headers llvm-3.4 llvm_select cloog gmp isl gcc_select ld64 libmpc mpfr swig-python swig pcre py27-sphinx py27-docutils py27-roman py27-jinja2 py27-pygments sphinx_select py27-wxpython-3.0 wxPython-3.0 wxWidgets_select qwtplot3d uhd gzip libusb xmlto coreutils docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl findutils fop getopt libpaper gr-osmosdr bladeRF tecla gr-fcdproplus hackrf rtl-sdr
--->  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: gnuradio py27-pyqt4 py27-pyqwt qwt52 py27-scipy SuiteSparse libgcc cctools cctools-headers llvm-3.4 llvm_select cloog gmp isl gcc_select ld64 libmpc mpfr swig-python swig pcre py27-sphinx py27-docutils py27-roman py27-jinja2 py27-pygments sphinx_select py27-wxpython-3.0 wxPython-3.0 wxWidgets_select qwtplot3d uhd gzip libusb xmlto coreutils docbook-xml docbook-xml-4.1.2 docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4 docbook-xml-4.5 docbook-xml-5.0 docbook-xsl findutils fop getopt libpaper gr-osmosdr bladeRF tecla gr-fcdproplus hackrf rtl-sdr
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gqrx failed
Armaans-MacBook:~ armaan$ 

Log:

version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (py27-pyqt4)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (py27-pyqt4)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (py27-pyqt4)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (py27-pyqt4)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (py27-pyqt4)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (py27-pyqt4)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Thu Oct 16 04:08:47 PDT 2014
:notice:configure --->  Configuring py27-pyqt4
:debug:configure Using compiler 'Xcode LLVM-GCC 4.2'
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure Executing org.macports.configure (py27-pyqt4)
:debug:configure Environment: 
CC='/usr/bin/llvm-gcc-4.2'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -arch x86_64'
CPATH='/opt/local/include'
CPPFLAGS='-I/opt/local/include'
CXX='/usr/bin/llvm-g++-4.2'
CXXFLAGS='-pipe -Os -arch x86_64'
F77FLAGS='-m64'
F90FLAGS='-pipe -Os -m64'
FCFLAGS='-pipe -Os -m64'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.6'
MOC='/opt/local/bin/moc'
OBJC='/usr/bin/llvm-gcc-4.2'
OBJCFLAGS='-pipe -Os -arch x86_64'
OBJCXX='/usr/bin/llvm-g++-4.2'
OBJCXXFLAGS='-pipe -Os -arch x86_64'
QMAKE='/opt/local/bin/qmake'
QMAKESPEC='macx-g++'
QTDIR='/opt/local'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt-mac-gpl-4.11.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 configure.py -q /opt/local/bin/qmake --verbose --confirm-license -e QtGui -e QtHelp -e QtMultimedia -e QtNetwork -e QtDeclarative -e QtOpenGL -e QtScript -e QtScriptTools -e QtSql -e QtSvg -e QtTest -e QtWebKit -e QtXml -e QtXmlPatterns -e QAxContainer --no-qsci-api -e QtDesigner --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/dbus-1.0 --use-arch=x86_64 CC=/usr/bin/llvm-gcc-4.2 CXX=/usr/bin/llvm-g++-4.2 LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib -Wl,-headerpad_max_install_names" CFLAGS="-Os -pipe" CXXFLAGS="-Os -pipe"'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt-mac-gpl-4.11.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 configure.py -q /opt/local/bin/qmake --verbose --confirm-license -e QtGui -e QtHelp -e QtMultimedia -e QtNetwork -e QtDeclarative -e QtOpenGL -e QtScript -e QtScriptTools -e QtSql -e QtSvg -e QtTest -e QtWebKit -e QtXml -e QtXmlPatterns -e QAxContainer --no-qsci-api -e QtDesigner --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/dbus-1.0 --use-arch=x86_64 CC=/usr/bin/llvm-gcc-4.2 CXX=/usr/bin/llvm-g++-4.2 LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib -Wl,-headerpad_max_install_names" CFLAGS="-Os -pipe" CXXFLAGS="-Os -pipe" 
:info:configure Error: Failed to determine the layout of your Qt installation. Try again using
:info:configure the --verbose flag to see more detail about the problem.
:info:configure Determining the layout of your Qt installation...
:info:configure /opt/local/bin/qmake -spec macx-g++ -o qtdirs.mk qtdirs.pro
:info:configure 2014-10-16 04:08:48.262 qmake[40774:907] CFPreferences: user home directory at file://localhost/opt/local/var/macports/home/ is unavailable. User domains will be volatile.
:info:configure Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/Frameworks
:info:configure make -f qtdirs.mk
:info:configure /usr/bin/g++-4.2 -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.6 -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I/opt/local/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/include -F/opt/local/Library/Frameworks -F/opt/local/lib -o qtdirs.o qtdirs.cpp
:info:configure make: /usr/bin/g++-4.2: No such file or directory
:info:configure make: *** [qtdirs.o] Error 1
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt-mac-gpl-4.11.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 configure.py -q /opt/local/bin/qmake --verbose --confirm-license -e QtGui -e QtHelp -e QtMultimedia -e QtNetwork -e QtDeclarative -e QtOpenGL -e QtScript -e QtScriptTools -e QtSql -e QtSvg -e QtTest -e QtWebKit -e QtXml -e QtXmlPatterns -e QAxContainer --no-qsci-api -e QtDesigner --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/dbus-1.0 --use-arch=x86_64 CC=/usr/bin/llvm-gcc-4.2 CXX=/usr/bin/llvm-g++-4.2 LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib -Wl,-headerpad_max_install_names" CFLAGS="-Os -pipe" CXXFLAGS="-Os -pipe" 
:info:configure Exit code: 1
:error:configure org.macports.configure for port py27-pyqt4 returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"portconfigure::configure_main org.macports.configure"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:configure Warning: targets not executed for py27-pyqt4: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:error:configure Failed to install py27-pyqt4
:debug:configure Registry error: rtl-sdr not registered as installed & active.
    invoked from within
"registry_active $subport"
    invoked from within
"$workername eval registry_active \$subport"
:notice:configure 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
 

Change History (4)

comment:1 Changed 9 years ago by armaan@…

Cc: armaan@… added

Cc Me!

comment:2 Changed 9 years ago by armaan@…

The closest I could come searching was this problem: #35506

I should note that I'm quite a novice. I just installed MacPorts for this specific program (gqrx) earlier today.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Cc: armaan@… removed
Owner: changed from macports-tickets@… to michaelld@…
Port: py-pyqt4 added

The problem seems to be that although MacPorts has told py27-pyqt4 it should use the llvm-gcc-4.2 compiler, the log shows it's actually trying to use the gcc-4.2 compiler, which does not exist in Xcode 4.2, hence the "No such file or directory" error.

I'm guessing this is because qmake is being used somewhere. qmake has its own ideas about which compiler it should use: it thinks it should use the compiler it was itself built with. In MacPorts, this assumption can be incorrect, such as in your case where you received a binary of qmake from our Snow Leopard build server (which uses Xcode 3.2.6 and therefore has and uses gcc-4.2) but are now trying to compile something from source with it on your system with Xcode 4.2 (which doesn't). Each port that uses qmake must therefore instruct it to use the correct compiler. For many ports, the qmake portgroup can be used to accomplish that; for others, it must be programmed manually.

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

Resolution: fixed
Status: newclosed

Guessing this ticket is no longer an issue, so closing as "fixed" sometime between now and then. If I'm incorrect, please reopen the ticket and provide an update.

Note: See TracTickets for help on using tickets.