Opened 15 years ago
Closed 15 years ago
#20360 closed defect (duplicate)
gcc43 - 4.3.3 - Build fails with unrecognized flag "-arch"
Reported by: | jameskyle@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | ||
Port: | gcc43 |
Description
the -arch flag is being passed to xgcc during bootstrap, error below:
[ -f stage_final ] || echo stage3 > stage_final rm -f stage_current 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'. true "AR_FLAGS=rc" "CC_FOR_BUILD=/usr/bin/gcc-4.0" "CFLAGS=-g -fkeep-inline-functions" "CXXFLAGS=-O2 -arch i386" "CFLAGS_FOR_BUILD=-O2 -arch i386" "CFLAGS_FOR_TARGET=-O2 -g -O2 -arch i386 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-L/Users/jkyle/Projects/macports/mports/lib -arch i386" "LIBCFLAGS=-g -fkeep-inline-functions" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 -arch i386 " "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/Users/jkyle/Projects/macports/mports" "infodir=/Users/jkyle/Projects/macports/mports/share/info" "libdir=/Users/jkyle/Projects/macports/mports/lib/gcc43" "prefix=/Users/jkyle/Projects/macports/mports" "tooldir=/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0" "AR=ar" "AS=as" "CC=/usr/bin/gcc-4.0" "CXX=/usr/bin/g++-4.0" "LD=/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld" "LIBCFLAGS=-g -fkeep-inline-functions" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make make[3]: Nothing to be done for `all'. make[3]: Nothing to be done for `all'. Checking multilib configuration for libgcc... # If this is the top-level multilib, build all the other # multilibs. if [ -z "x86_64" ]; then \ true; \ else \ rootpre=`${PWDCMD-pwd}`/; export rootpre; \ srcrootpre=`cd ../../../gcc-4.3.3/libgcc; ${PWDCMD-pwd}`/; export srcrootpre; \ lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \ compiler="/Users/jkyle/Projects/macports/dports/lang/gcc43/work/build/./gcc/xgcc -B/Users/jkyle/Projects/macports/dports/lang/gcc43/work/build/./gcc/ -B/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/bin/ -B/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/lib/ -isystem /Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/include -isystem /Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/sys-include"; \ for i in `${compiler} --print-multi-lib 2>/dev/null`; do \ dir=`echo $i | sed -e 's/;.*$//'`; \ if [ "${dir}" = "." ]; then \ true; \ else \ if [ -d ../${dir}/${lib} ]; then \ flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ if (cd ../${dir}/${lib}; make "AR=/usr/bin/ar" "AR_FLAGS=rc" "CC=/Users/jkyle/Projects/macports/dports/lang/gcc43/work/build/./gcc/xgcc -B/Users/jkyle/Projects/macports/dports/lang/gcc43/work/build/./gcc/ -B/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/bin/ -B/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/lib/ -isystem /Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/include -isystem /Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/sys-include" "CFLAGS=-g -fkeep-inline-functions" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "LDFLAGS=" "LOADLIBES=" "RANLIB=/usr/bin/ranlib -c" "SHELL=/bin/sh" "prefix=/Users/jkyle/Projects/macports/mports" "exec_prefix=/Users/jkyle/Projects/macports/mports" "libdir=/Users/jkyle/Projects/macports/mports/lib/gcc43" "libsubdir=/Users/jkyle/Projects/macports/mports/lib/gcc43/gcc/i386-apple-darwin9.7.0/4.3.3" "tooldir=/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0" \ CFLAGS="-g -fkeep-inline-functions ${flags}" \ CCASFLAGS=" ${flags}" \ FCFLAGS=" ${flags}" \ FFLAGS=" ${flags}" \ ADAFLAGS=" ${flags}" \ prefix="/Users/jkyle/Projects/macports/mports" \ exec_prefix="/Users/jkyle/Projects/macports/mports" \ GCJFLAGS=" ${flags}" \ CXXFLAGS="-O2 -g -O2 -arch i386 ${flags}" \ LIBCFLAGS="-g -fkeep-inline-functions ${flags}" \ LIBCXXFLAGS="-O2 -g -O2 -arch i386 -fno-implicit-templates ${flags}" \ LDFLAGS=" ${flags}" \ MULTIFLAGS="${flags}" \ DESTDIR="" \ INSTALL="/usr/bin/install -c" \ INSTALL_DATA="/usr/bin/install -c -m 644" \ INSTALL_PROGRAM="/usr/bin/install -c" \ INSTALL_SCRIPT="/usr/bin/install -c" \ all); then \ true; \ else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi # If this is the top-level multilib, build all the other # multilibs. /bin/sh ../../../../gcc-4.3.3/libgcc/../mkinstalldirs ../../.././gcc/x86_64 for file in libgcc_s.10.4.dylib libgcc_s.10.5.dylib libgcc_s.1.dylib; do \ rm -f ../../.././gcc/x86_64/$file; \ ln -s ../$file ../../.././gcc/x86_64/; \ done rm -f ../../.././gcc/x86_64/libgcc_s_x86_64.1.dylib ln -s libgcc_s.1.dylib \ ../../.././gcc/x86_64/libgcc_s_x86_64.1.dylib rm -f ../../.././gcc/x86_64/libgcc_s_ppc64.1.dylib ln -s libgcc_s.1.dylib \ ../../.././gcc/x86_64/libgcc_s_ppc64.1.dylib /Users/jkyle/Projects/macports/dports/lang/gcc43/work/build/./gcc/xgcc -B/Users/jkyle/Projects/macports/dports/lang/gcc43/work/build/./gcc/ -B/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/bin/ -B/Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/lib/ -isystem /Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/include -isystem /Users/jkyle/Projects/macports/mports/i386-apple-darwin9.7.0/sys-include -g -fkeep-inline-functions -m64 -O2 -O2 -g -O2 -arch i386 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I../../../../gcc-4.3.3/libgcc -I../../../../gcc-4.3.3/libgcc/. -I../../../../gcc-4.3.3/libgcc/../gcc -I../../../../gcc-4.3.3/libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c \ -fvisibility=hidden -DHIDE_EXPORTS cc1: error: unrecognized command line option "-arch" make[5]: *** [_muldi3.o] Error 1 make[4]: *** [multi-do] Error 1 make[3]: *** [all-multi] Error 2 make[2]: *** [all-stage1-target-libgcc] Error 2 make[1]: *** [stage1-bubble] Error 2 make: *** [all] Error 2
Change History (1)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
#20280