Opened 15 years ago

Closed 14 years ago

#21440 closed defect (fixed)

apple-gcc42 build failure: unrecognized command line option "-arch"

Reported by: danielc@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), nerdling (Jeremy Lavergne)
Port: apple-gcc42

Description (last modified by tobypeterson)

apple-gcc42 fails to build on OS X 10.4.11

--->  Computing dependencies for apple-gcc42
--->  Fetching apple-gcc42
--->  Attempting to fetch gcc_42-5531.tar.gz from http://distfiles.macports.org/apple-gcc42
--->  Verifying checksum(s) for apple-gcc42
--->  Extracting apple-gcc42
--->  Configuring apple-gcc42
--->  Building apple-gcc42
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build" && /usr/bin/make -j1 all " returned error 2
Command output: D128PBIT='' \
D128PBIT_FUNCS='_addsub_td _div_td _mul_td _plus_td _minus_td _eq_td _ne_td _lt_td _gt_td _le_td _ge_td _td_to_si _td_to_di _td_to_usi _td_to_udi _si_to_td _di_to_td _usi_to_td _udi_to_td _td_to_sf _td_to_df _td_to_xf _sf_to_td _df_to_td _xf_to_td _td_to_sd _td_to_dd _unord_td _conv_td' \
APPLE_LOCAL='APPLE LOCAL libcc_kext' \
MULTILIBS="`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/bin/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/lib/ -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/include -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/sys-include --print-multi-lib` static;@static@fno-pic kext;@Dmalloc=kern_os_malloc@Dfree=kern_os_free@DLIBCC_KEXT@static@fno-pic@fno-exceptions@fno-non-call-exceptions" \
EXTRA_MULTILIB_PARTS='crt3.o' \
SHLIB_LINK='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/bin/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/lib/ -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/include -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/sys-include -O2  -O2 -arch ppc  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -Wa,-force_cpusubtype_ALL -pipe -mmacosx-version-min=10.4 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -dynamiclib -nodefaultlibs -install_name /opt/local/lib/apple-gcc42/lib/@shlib_base_name@`if test @multilib_dir@ = ppc64 ; then echo _@multilib_dir@ ; fi`.1.dylib -single_module -o @multilib_dir@/@shlib_base_name@.1.dylib.tmp -Wl,-exported_symbols_list,@shlib_map_file@ -compatibility_version 1 -current_version 1.0 @multilib_flags@ @shlib_objs@ -lc' \
SHLIB_INSTALL='$(mkinstalldirs) $(DESTDIR)$(slibdir); /usr/bin/install -c -m 644 @shlib_base_name@.1.dylib $(DESTDIR)$(slibdir)/@shlib_base_name@.1.dylib' \
SHLIB_EXT='.dylib' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/mkmap-flat.awk' \
SHLIB_MKMAP_OPTS='-v leading_underscore=1' \
SHLIB_MAPFILES='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/config/rs6000/libgcc-ppc64.ver /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/libgcc-std.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
ASM_HIDDEN_OP='.private_extern' \
GCC_FOR_TARGET='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/bin/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/lib/ -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/include -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/sys-include' \
mkinstalldirs='/bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/../mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/mkconfig.sh tconfig.h
# APPLE LOCAL use -mlongcall for large text support
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/build/./gcc/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/bin/ -B/opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/lib/ -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/include -isystem /opt/local/lib/apple-gcc42/powerpc-apple-darwin8.11.0/sys-include -O2 -arch ppc  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/../include -I./../intl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/../libcpp/include  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/gcc/../libdecnumber -I../libdecnumber  -mlongcall \
  -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc42/work/gcc_42-5531/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: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)
Keywords: apple-gcc42 removed
Port: apple-gcc42 added

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

Owner: changed from macports-tickets@… to mww@…

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: apple-gcc42 build failure on OS X 10.4.11 ppcapple-gcc42 build failure on OS X 10.4.11: unrecognized command line option "-arch"

Same on Tiger i386. apple-gcc42-devel will build, but is at present not the drop-in replacement for apple-gcc42 that it should be; see #24759

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: snc@… added
Summary: apple-gcc42 build failure on OS X 10.4.11: unrecognized command line option "-arch"apple-gcc42 build failure: unrecognized command line option "-arch"

Same on Snow Leopard; see duplicate #22115. I doubt this port installs on any version of Mac OS X ever since the -arch flag was added to MacPorts in 1.8.0.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Clearing archflags as of r70042.

Note: See TracTickets for help on using tickets.