Opened 14 years ago

Closed 13 years ago

#24585 closed defect (fixed)

sparc-rtems-gcc build fails: unrecognized command line option "-arch"

Reported by: mattias.holm@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: sparc-rtems-gcc

Description

The gcc cross compiler for sparc rtems fails to build on snowleopard.

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/build/./gcc/ -nostdinc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/build/sparc-rtems/newlib/ -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/build/sparc-rtems/newlib/targ-include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/gcc-4.2.3/newlib/libc/include -B/opt/local/sparc-rtems/bin/ -B/opt/local/sparc-rtems/lib/ -isystem /opt/local/sparc-rtems/include -isystem /opt/local/sparc-rtems/sys-include  -O2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/gcc-4.2.3/gcc/../newlib/libc/sys/rtems/include -O2 -O2 -arch x86_64  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -c -o crtfastmath.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/gcc-4.2.3/gcc/config/sparc/crtfastmath.c
xgcc: x86_64: No such file or directory
rm -f include/limits.h
cp xlimits.h include/limits.h
rm -f include/unwind.h
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/gcc-4.2.3/gcc/unwind-generic.h include/unwind.h
chmod a+r include/limits.h
rm -f include/README
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-gcc/work/gcc-4.2.3/gcc/../fixincludes/README-fixinc include/README
cc1: error: unrecognized command line option "-arch"
chmod a+r include/README
echo timestamp > stmp-int-hdrs
make[2]: *** [crtfastmath.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

Change History (1)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Summary: sparc-rtems-gcc build fails on snowleopardsparc-rtems-gcc build fails: unrecognized command line option "-arch"
Note: See TracTickets for help on using tickets.