[MacPorts] #20937: qt4-mac @4.5.2 +universal fails on 10.6 due to -arch -arch
MacPorts
noreply at macports.org
Thu Sep 3 13:18:33 PDT 2009
#20937: qt4-mac @4.5.2 +universal fails on 10.6 due to -arch -arch
-----------------------------------------+----------------------------------
Reporter: eric.nodwell@… | Owner: erickt@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: snowleopard | Port: qt4-mac
-----------------------------------------+----------------------------------
Comment(by jochen.mueck@…):
Replying to [ticket:20937 eric.nodwell@…]:
> 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.
Same here, but i think i solved the problem..
my output was
{{{
Command output: cd src/tools/bootstrap/ && /usr/bin/make -f Makefile
make[1]: Nothing to be done for `first'.
cd src/tools/moc/ && /usr/bin/make -f Makefile
make[1]: Nothing to be done for `first'.
cd src/tools/rcc/ && /usr/bin/make -f Makefile
make[1]: Nothing to be done for `first'.
cd src/tools/uic/ && /usr/bin/make -f Makefile
/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/uic .obj/release-
shared/customwidgetsinfo.o .obj/release-shared/databaseinfo.o .obj
/release-shared/driver.o .obj/release-shared/treewalker.o .obj/release-
shared/ui4.o .obj/release-shared/validator.o .obj/release-
shared/cppextractimages.o .obj/release-shared/cppwritedeclaration.o .obj
/release-shared/cppwriteicondata.o .obj/release-
shared/cppwriteicondeclaration.o .obj/release-
shared/cppwriteiconinitialization.o .obj/release-shared/cppwriteincludes.o
.obj/release-shared/cppwriteinitialization.o .obj/release-shared/main.o
.obj/release-shared/uic.o -L/opt/local/lib -L../bootstrap -lbootstrap
-L/opt/local/lib -lz -framework CoreServices
g++-4.2: Invalid arch name : -arch
make[1]: *** [../../../bin/uic] Error 1
make: *** [sub-uic-make_default-ordered] Error 2
}}}
what i did then was
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work
/qt-mac-opensource-src-4.5.2[[BR]]
sudo open src/tools/bootstrap/Makefile[[BR]]
sudo open src/tools/moc/Makefile[[BR]]
sudo open src/tools/rcc/Makefile[[BR]]
sudo open src/tools/uic/Makefile[[BR]]
and looked for the "-arch -arch" arguments, wich turned out to be in the
makefile.. deleting them seems to work for me.. still compiling right now.
--
Ticket URL: <http://trac.macports.org/ticket/20937#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list