[MacPorts] #20937: qt4-mac @4.5.2 +universal fails on 10.6 due to -arch -arch
MacPorts
noreply at macports.org
Sun Aug 30 12:22:28 PDT 2009
#20937: qt4-mac @4.5.2 +universal fails on 10.6 due to -arch -arch
-----------------------------------------+----------------------------------
Reporter: eric.nodwell@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: snowleopard | Port: qt4-mac
-----------------------------------------+----------------------------------
qt-mac @4.5.2 +universal fails on 10.6 (Snow Leopard). This is due to a
double '-arch -arch' appearing in a build command. See the attached debug
log qt4-mac_universal.log , generated from 'sudo port -d install qt4-mac
+universal buildmakejobs=1'. (All the dependencies were also build with
+universal).
The pertinent lines from the log are:
{{{
/usr/bin/g++-4.2 -arch x86_64 -arch i386 -Xarch_i386 -mmacosx-version-
min=10.4 -Xarch_x86_64 -mmacosx-version-min=10.5 -arch -arch -Xarch_x86_64
-mmacosx-version-min=10.5 -o ../../../bin/moc release-shared/moc.o
release-shared/preprocessor.o release-shared/generator.o release-
shared/parser.o release-shared/token.o release-shared/main.o
-L/opt/macports/lib -L../bootstrap -lbootstrap -L/opt/macports/lib -lz
-framework CoreServices
g++-4.2: Invalid arch name : -arch
make[1]: *** [../../../bin/moc] Error 1
}}}
This error is very similar to an error that afflicted gcc and was reported
in #20280. In that case it was fixed in changeset r54512. I have however
been unable to successfully copy that fix to qt4-mac/Portfile.
Note that this is different than the error that in generated for a non-
universal build, which is reported in #20435.
--
Ticket URL: <http://trac.macports.org/ticket/20937>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list