Ticket #20937 (closed defect: fixed)
qt4-mac @4.5.2 +universal fails on 10.6 due to -arch -arch
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


