Ticket #20937 (closed defect: fixed)
qt4-mac @4.5.2 +universal fails on 10.6 due to -arch -arch
|Reported by:||eric.nodwell@…||Owned by:||macsforever2000@…|
|Keywords:||snowleopard||Cc:||clubjuggler@…, markus@…, kiwi.2008@…, macports@…, ruud@…|
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: *** [../../../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.
- Owner changed from macports-tickets@… to erickt@…
- Cc clubjuggler@… added
comment:10 Changed 4 years ago by macsforever2000@…
- Status changed from new to assigned
- Owner changed from erickt@… to macsforever2000@…