Opened 19 years ago

Closed 19 years ago

#3432 closed defect (fixed)

gcc40 fails to build

Reported by: aips@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

$ sudo port install gcc40 ---> Building gcc40 with target bootstrap STAGE1_CFLAGS=\"-force_cpusubtype_ALL \" Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dpo rts/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupd ate_dports_lang_gcc40/work/build" && make bootstrap STAGE1_CFLAGS="-force_cpusub type_ALL"" returned error 2 Command output: make[2]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. make[2]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_ FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/install -c" "INSTAL L_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTAL L_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGE T=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 " "PICFLAG=" " PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTF LAGS=" "exec_prefix=/opt/local" "infodir=/opt/local/share/info" "libdir=/opt/loc al/lib/gcc-4.0" "prefix=/opt/local" "tooldir=/opt/local/powerpc-apple-darwin8.1. 0" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLA G=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make Bootstrapping the compiler make CC="gcc" libdir=/opt/local/lib/gcc-4.0 LANGUAGES="c " \

CFLAGS="-force_cpusubtype_ALL -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING

" \

MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" \ COVERAGE_FLAGS= OBJS-onestep="tree-chrec.o tree-scalar-evolution.o tree-

data-ref.o tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o tree-optimize.o tree-gimpl e.o gimplify.o tree-pretty-print.o tree-into-ssa.o tree-outof-ssa.o tree-ssa-ccp .o tree-vn.o tree-ssa-dce.o tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o tr ee-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o tree-ssa-phiop t.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o tree-ssa-dom.o domwalk.o tr ee-tailcall.o gimple-low.o tree-iterator.o tree-phinodes.o tree-ssanames.o tree- sra.o tree-complex.o tree-ssa-loop.o tree-ssa-loop-niter.o tree-ssa-loop-manip.o

tree-ssa-threadupdate.o tree-vectorizer.o tree-vect-analyze.o tree-vect-transfo

rm.o tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-loop-ivopts.o tree-if -conv.o tree-ssa-loop-unswitch.o alias.o bb-reorder.o bitmap.o builtins.o caller -save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cf gloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o co mbine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o ddg.o tree-ssa-l oop-ch.o loop-invariant.o tree-ssa-loop-im.o debug.o df.o diagnostic.o dojump.o dominance.o loop-doloop.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o l oop-iv.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o insn-at trtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o insn -peep.o insn-recog.o integrate.o intl.o jump.o langhooks.o lcm.o lists.o local- alloc.o loop.o modulo-sched.o optabs.o options.o opts.o params.o postreload.o po streload-gcse.o predict.o insn-preds.o pointer-set.o postreload.o print-rtl.o pr int-tree.o profile.o value-prof.o var-tracking.o real.o recog.o reg-stack.o regc lass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.o rtlanal .o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout .o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar. o toplev.o tracer.o tree.o tree-dump.o varasm.o varray.o vec.o version.o vmsdbgo ut.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc -page.o web.o passes.o rtl-profile.o tree-profile.o rtlhooks.o cfgexpand.o lambd a-mat.o lambda-trans.o lambda-code.o tree-loop-linear.o rs6000.o darwin.o host- darwin.o tree-inline.o cgraph.o cgraphunit.o tree-nomudflap.o" make \

CFLAGS="-force_cpusubtype_ALL -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -W -W

all -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long -long -Wno-variadic-macros -Wold-style-definition " \

CONFIG_H="tconfig.h /opt/local/var/db/dports/build/file._opt_local_var_db_dpor

ts_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_gcc40/work/gcc-4.0.0/ gcc/../include/ansidecl.h" TM_H="tm.h /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ gcc40/work/gcc-4.0.0/gcc/config/rs6000/rs6000.h /opt/local/var/db/dports/build/f ile._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_ lang_gcc40/work/gcc-4.0.0/gcc/config/darwin8.h /opt/local/var/db/dports/build/fi le._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_l ang_gcc40/work/gcc-4.0.0/gcc/config/darwin.h /opt/local/var/db/dports/build/file ._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lan g_gcc40/work/gcc-4.0.0/gcc/config/rs6000/darwin.h /opt/local/var/db/dports/build /file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dport s_lang_gcc40/work/gcc-4.0.0/gcc/defaults.h insn-constants.h insn-flags.h" \

INCLUDES="-I. -I. -I/opt/local/var/db/dports/build/file._opt_local_var_db_dpor

ts_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_gcc40/work/gcc-4.0.0/ gcc -I/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync .rsync.opendarwin.org_dpupdate_dports_lang_gcc40/work/gcc-4.0.0/gcc/. -I/opt/loc al/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendar win.org_dpupdate_dports_lang_gcc40/work/gcc-4.0.0/gcc/../include -I/opt/local/va r/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.o rg_dpupdate_dports_lang_gcc40/work/gcc-4.0.0/gcc/../libcpp/include -I/opt/local/ include -I/opt/local/include" \

MAKEOVERRIDES= \ -f libgcc.mk all

./xgcc -B./ -B/opt/local/powerpc-apple-darwin8.1.0/bin/ -isystem /opt/local/powe rpc-apple-darwin8.1.0/include -isystem /opt/local/powerpc-apple-darwin8.1.0/sys-include -L/opt/ local/var/db/dports/build/file._opt_local_var_db_dports_sources_r sync.rsync.opendarwin.org_dpupdate_dports_lang_gcc40/work/build/gcc/../ld -O2 - DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wo ld-style-definition -isystem ./include -Wa,-force_cpusubtype_ALL -pipe -g -DHA VE_GTHR_DEFAULT -DIN_LIBGCC2 -DGCC_FLOAT_NOT_NEEDED -dynamiclib -nodefaultlib s -Wl,-install_name,/opt/local/lib/gcc-4.0/libgcc_s.1.0.dylib -Wl,-flat_namespac e -o ./libgcc_s.1.0.dylib.tmp -Wl,-exported_symbols_list,libgcc/./libgcc.map -co mpatibility_version 1 -current_version 1.0 libgcc/./_muldi3_s.o libgcc/./_negdi 2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/. /_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s .o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o li bgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fix xfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s .o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc /./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi 3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/. /_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_ s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s .o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/ ./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_ s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_div di3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/ ./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./darwin-tramp_s.o libgcc/./d arwin-ldouble_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-darwin_s.o lib gcc/./unwind-sjlj_s.o libgcc/./unwind-c_s.o libgcc/./darwin-fallback_s.o -lc && rm -f ./libgcc_s.dylib && if [ -f ./libgcc_s.1.0.dylib ]; then mv -f ./libgcc_s. 1.0.dylib ./libgcc_s.1.0.dylib.backup; else true; fi && mv ./libgcc_s.1.0.dylib. tmp ./libgcc_s.1.0.dylib && ln -s libgcc_s.1.0.dylib ./libgcc_s.dylib /opt/local/bin/odlibtool: for architecture: cputype (16777234) cpusubtype (0) fi le: -lc is not an object file (not allowed in a library) make[3]: * [libgcc_s.dylib] Error 1 make[2]: * [libgcc.a] Error 2 make[1]: * [stage1_build] Error 2 make: * [bootstrap] Error 2

I had only installed the wget port at this point.

gcc40 pulled in source for gmp, mpfr, odcctools as well. these seemed to build ok.

PATH was /opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin

I tried to sync up the source to incorporate fixes like #2920; $ sudo port selfupdate (NB the first sync attempt failed, because I forgot the 'sudo' part)

Then cleaned up and ran again - and this worked. So I guess if you mark this as 'fixed' already, it may help other people. The specific steps were

$ sudo port clean gcc40 ---> Cleaning gcc40 $

$ sudo port install gcc40 ---> Fetching gcc40 ---> Verifying checksum(s) for gcc40 ---> Extracting gcc40 ---> Configuring gcc40 ---> Building gcc40 with target bootstrap STAGE1_CFLAGS=\"-force_cpusubtype_ALL\" ---> Staging gcc40 into destroot ---> Packaging tgz archive for gcc40 4.0.0_2 ---> Installing gcc40 4.0.0_2 ---> Activating gcc40 4.0.0_2 ---> Cleaning gcc40

Change History (1)

comment:1 Changed 19 years ago by jmpp@…

Resolution: fixed
Status: newclosed

Tree was simply out of date, there are no errors here. Closing bug.

-jmpp

Note: See TracTickets for help on using tickets.