qt4-mac using wrong g++
Frank J. R. Hanstick
trog24 at comcast.net
Sun Feb 10 21:09:10 PST 2013
Hello,
I keep getting the following error when trying to upgrade qt4-mac:
:info:configure error: The compiler (/usr/bin/g++-4.0) does not seem
to support the Objective-C blocks (^), which are used by Qt when
compiling on Mac OS X.
:info:configure Command failed: cd "/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-
opensource-src-4.8.4" && ./configure -v -confirm-license -opensource -
prefix /opt/local -bindir /opt/local/bin -libdir /opt/local/lib -
docdir /opt/local/share/doc/qt4 -headerdir /opt/local/include -
plugindir /opt/local/share/qt4/plugins -importdir /opt/local/share/qt4/
imports -datadir /opt/local/share/qt4 -translationdir /opt/local/share/
qt4/translations -sysconfdir /opt/local/etc/qt4 -examplesdir /opt/
local/share/qt4/examples -demosdir /opt/local/share/qt4/demos -openssl-
linked -dbus-linked -fast -no-pch -framework -no-phonon -no-phonon-
backend -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-
mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -nomake
demos -nomake examples -release -no-declarative-debug -carbon -arch
"ppc" -sdk /Developer/SDKs/MacOSX10.5.sdk
:info:configure Exit code: 1
:error:configure org.macports.configure for port qt4-mac returned:
configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for qt4-mac:
org.macports.install org.macports.configure org.macports.build
org.macports.destroot
:notice:configure Please see the log file for port qt4-mac for details:
/opt/local/var/macports/logs/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_aqua_qt4-mac/qt4-mac/main.log
The command:
Franks-Power-Mac-G4:~ frank$ whereis g++
results in:
/usr/bin/g++
The command:
Franks-Power-Mac-G4:~ frank$ g++ --version
results in:
powerpc-apple-darwin9-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
The command:
Franks-Power-Mac-G4:~ frank$ sudo port select --list gcc
Password:
results in:
Available versions for gcc:
gcc40
gcc42 (active)
gnat-gcc
llvm-gcc42
none
Why is qt-mac trying to use /usr/bin/g++-4.0 to build?
Frank J. R. Hanstick
trog24 at comcast.net
More information about the macports-users
mailing list