Opened 15 years ago

Closed 15 years ago

#20660 closed defect (fixed)

llvm-gcc42 fails to build ... -arch not supported by stage 2 compiler

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.8.99
Keywords: buildarch Cc:
Port: llvm-gcc42

Description (last modified by jeremyhu (Jeremy Huddleston Sequoia))

--->  Computing dependencies for VLC..
--->  Building llvm-gcc42
[ -f stage_final ] || echo stage3 > stage_final
rm -f stage_current
make[3]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
# APPLE LOCAL use -mlongcall for large text support
/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_llvm-gcc42/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_llvm-gcc42/work/build/./gcc/ -B/opt/local/powerpc-apple-darwin9/bin/ -B/opt/local/powerpc-apple-darwin9/lib/ -isystem /opt/local/powerpc-apple-darwin9/include -isystem /opt/local/powerpc-apple-darwin9/sys-include -O2 -O2 -arch ppc  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/. -I../../llvm-gcc4.2-2.5.source/gcc/../include -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include  -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/opt/local/lib/llvm/obj/include -I/opt/local/lib/llvm/src/include  -mlongcall \
	  -c ../../llvm-gcc4.2-2.5.source/gcc/config/darwin-crt2.c -o crt2.o
cc1: error: unrecognized command line option "-arch"
make[3]: *** [crt2.o] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_llvm-gcc42/work/build" && /usr/bin/make -j5 all " returned error 2
Command output: [ -f stage_final ] || echo stage3 > stage_final
rm -f stage_current
make[3]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
# APPLE LOCAL use -mlongcall for large text support
/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_llvm-gcc42/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_llvm-gcc42/work/build/./gcc/ -B/opt/local/powerpc-apple-darwin9/bin/ -B/opt/local/powerpc-apple-darwin9/lib/ -isystem /opt/local/powerpc-apple-darwin9/include -isystem /opt/local/powerpc-apple-darwin9/sys-include -O2 -O2 -arch ppc  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/. -I../../llvm-gcc4.2-2.5.source/gcc/../include -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include  -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/opt/local/lib/llvm/obj/include -I/opt/local/lib/llvm/src/include  -mlongcall \
	  -c ../../llvm-gcc4.2-2.5.source/gcc/config/darwin-crt2.c -o crt2.o
cc1: error: unrecognized command line option "-arch"
make[3]: *** [crt2.o] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Change History (3)

comment:1 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Description: modified (diff)

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Probably just needs the archflags goop from gcc4x (#20280, r54512).

comment:3 Changed 15 years ago by erickt@…

Resolution: fixed
Status: newclosed

Committed, finally! Sorry for the delay.

Note: See TracTickets for help on using tickets.