Opened 12 years ago

Closed 12 years ago

#22616 closed defect (duplicate)

qt4-mac g++-4.2: Invalid arch name : -Xarch_x86_64

Reported by: eatdespain@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: hsivank@…
Port: qt4-mac

Description

Hi,

this happens when trying to compile qt4-mac on a macbook pro unibody mid 2009 in 64 bits mode:

g++-4.2: Invalid arch name : -Xarch_x86_64
make[1]: *** [../../../bin/moc] Error 1
make: *** [sub-moc-make_default-ordered] Error 2
Error: Target org.macports.build returned: shell command " 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.3" && /usr/bin/make -j2 first " returned error 2
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 
/usr/bin/g++-4.2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -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/local/lib -L../bootstrap -lbootstrap -L/opt/local/lib -lz -framework CoreServices
g++-4.2: Invalid arch name : -Xarch_x86_64
make[1]: *** [../../../bin/moc] Error 1
make: *** [sub-moc-make_default-ordered] Error 2

DEBUG: Backtrace: shell command " 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.3" && /usr/bin/make -j2 first " returned error 2
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 
/usr/bin/g++-4.2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -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/local/lib -L../bootstrap -lbootstrap -L/opt/local/lib -lz -framework CoreServices
g++-4.2: Invalid arch name : -Xarch_x86_64
make[1]: *** [../../../bin/moc] Error 1
make: *** [sub-moc-make_default-ordered] Error 2

    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for qt4-mac): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Any idea

Thanks very much

Change History (3)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Cc: eatdespain@… removed
Port: qt4-mac added

comment:2 Changed 12 years ago by hsivank@…

Cc: hsivank@… added

Cc Me!

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.