Bug #2486

i386: unable to build latest master, make problem?

Added by rumcic over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:01/13/2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Latest master could not be built (on a tad older master), so I decided to install 3.2-RELEASE (which does install fine) and still the same problem with building master.
git bisect points to 3da8e88fd44bdb1ff2af162b8fecd7c65d5e533b (replacing make with bmake). I'm guessing it has to do with path searching, but have no idea.

cc -O -pipe -g -DGCCPOINTVER=\"4.4\" -DGCCSHORTVER=\"44\" -DBASEVER=\"4.4.7\" -DDEFAULT_TARGET_VERSION=\"4.4.7\" -DDEFAULT_TARGET_MACHINE=\"i386-pc-dragonflybsd\" -I/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend//../cc_prep -I/usr/src/gnu/usr.bin/cc44/libbackend//../cc_prep -I/usr/src/gnu/usr.bin/cc44/libbackend//../cc_prep/config -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/config -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/include -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/libcpp/include -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/libdecnumber -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/libdecnumber/dpd -I/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend//../libdecnumber -I/usr/src/gnu/usr.bin/cc44/libbackend//../../gmp -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/mpfr/src -I/usr/src/gnu/usr.bin/cc44/libbackend//../../mpfr -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/config/i386 -I/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend//../cc_tools/tools -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/ctools_i386_i386/usr\" -DPREFIX2=\"/usr/obj/usr/src/world_i386/usr\" -I/usr/src/gnu/usr.bin/cc44/libbackend/../config -I. -DTARGET_NAME=\"i386-pc-dragonflybsd\" -std=gnu89 -c /usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/config/i386/i386.c -o /usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/config/i386/i386.o
cc -O -pipe -g -DGCCPOINTVER=\"4.4\" -DGCCSHORTVER=\"44\" -DBASEVER=\"4.4.7\" -DDEFAULT_TARGET_VERSION=\"4.4.7\" -DDEFAULT_TARGET_MACHINE=\"i386-pc-dragonflybsd\" -I/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend//../cc_prep -I/usr/src/gnu/usr.bin/cc44/libbackend//../cc_prep -I/usr/src/gnu/usr.bin/cc44/libbackend//../cc_prep/config -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/config -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/include -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/libcpp/include -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/libdecnumber -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/libdecnumber/dpd -I/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend//../libdecnumber -I/usr/src/gnu/usr.bin/cc44/libbackend//../../gmp -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/mpfr/src -I/usr/src/gnu/usr.bin/cc44/libbackend//../../mpfr -I/usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/config/i386 -I/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend//../cc_tools/tools -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/ctools_i386_i386/usr\" -DPREFIX2=\"/usr/obj/usr/src/world_i386/usr\" -I/usr/src/gnu/usr.bin/cc44/libbackend/../config -I. -DTARGET_NAME=\"i386-pc-dragonflybsd\" -std=gnu89 -c /usr/src/gnu/usr.bin/cc44/libbackend//../../../../contrib/gcc-4.4/gcc/host-default.c -o host-default.o
<snip>
rm -f libbackend.a
ar cq libbackend.a `lorder insn-attrtab.o insn-automata.o insn-emit.o insn-extract.o insn-modes.o insn-opinit.o insn-output.o insn-peep.o insn-preds.o insn-recog.o ggc-page.o alias.o alloc-pool.o auto-inc-dec.o bb-reorder.o bitmap.o bt-load.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfgexpand.o cfghooks.o cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o cfgrtl.o combine.o combine-stack-adj.o convert.o coverage.o cse.o cselib.o dbxout.o dbgcnt.o dce.o ddg.o debug.o df-byte-scan.o df-core.o df-problems.o df-scan.o dfp.o diagnostic.o dojump.o dominance.o domwalk.o double-int.o dse.o dwarf2asm.o dwarf2out.o ebitmap.o emit-rtl.o et-forest.o except.o explow.o expmed.o expr.o final.o fixed-value.o fold-const.o function.o fwprop.o gcse.o genrtl.o ggc-common.o gimple.o gimple-iterator.o gimple-low.o gimple-pretty-print.o gimplify.o graph.o graphds.o graphite.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o init-regs.o integrate.o intl.o ira.o ira-build.o ira-costs.o ira-conflicts.o ira-color.o ira-emit.o ira-lives.o jump.o lambda-code.o lambda-mat.o lambda-trans.o langhooks.o lcm.o lists.o loop-doloop.o loop-init.o loop-invariant.o loop-iv.o loop-unroll.o loop-unswitch.o lower-subreg.o mcf.o mode-switching.o modulo-sched.o omega.o omp-low.o optabs.o options.o opts-common.o opts.o params.o passes.o pointer-set.o postreload-gcse.o postreload.o predict.o pretty-print.o print-rtl.o print-tree.o profile.o real.o recog.o reg-stack.o reginfo.o regmove.o regrename.o regstat.o reload.o reload1.o reorg.o resource.o rtl-error.o rtl-factoring.o rtl.o rtlanal.o rtlhooks.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o see.o sel-sched-ir.o sel-sched-dump.o sel-sched.o simplify-rtx.o sparseset.o sreal.o stack-ptr-mod.o statistics.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o tracer.o tree-affine.o tree-call-cdce.o tree-cfg.o tree-cfgcleanup.o tree-chrec.o tree-complex.o tree-data-ref.o tree-dfa.o tree-dump.o tree-eh.o tree-if-conv.o tree-into-ssa.o tree-iterator.o tree-loop-distribution.o tree-loop-linear.o tree-nested.o tree-nrv.o tree-object-size.o tree-optimize.o tree-outof-ssa.o tree-parloops.o tree-phinodes.o tree-predcom.o tree-pretty-print.o tree-profile.o tree-scalar-evolution.o tree-sra.o tree-switch-conversion.o tree-ssa-address.o tree-ssa-alias.o tree-ssa-ccp.o tree-ssa-coalesce.o tree-ssa-copy.o tree-ssa-copyrename.o tree-ssa-dce.o tree-ssa-dom.o tree-ssa-dse.o tree-ssa-forwprop.o tree-ssa-ifcombine.o tree-ssa-live.o tree-ssa-loop-ch.o tree-ssa-loop-im.o tree-ssa-loop-ivcanon.o tree-ssa-loop-ivopts.o tree-ssa-loop-manip.o tree-ssa-loop-niter.o tree-ssa-loop-prefetch.o tree-ssa-loop-unswitch.o tree-ssa-loop.o tree-ssa-math-opts.o tree-ssa-operands.o tree-ssa-phiopt.o tree-ssa-phiprop.o tree-ssa-pre.o tree-ssa-propagate.o tree-ssa-reassoc.o tree-ssa-sccvn.o tree-ssa-sink.o tree-ssa-structalias.o tree-ssa-ter.o tree-ssa-threadedge.o tree-ssa-threadupdate.o tree-ssa-uncprop.o tree-ssa.o tree-ssanames.o tree-stdarg.o tree-tailcall.o tree-vect-analyze.o tree-vect-generic.o tree-vect-patterns.o tree-vect-transform.o tree-vectorizer.o tree-vrp.o tree.o value-prof.o var-tracking.o varasm.o varray.o vec.o version.o vmsdbgout.o web.o xcoffout.o i386.o host-default.o cgraph.o cgraphbuild.o cgraphunit.o cppdefault.o incpath.o ipa-cp.o ipa-inline.o ipa-prop.o ipa-pure-const.o ipa-reference.o ipa-struct-reorg.o ipa-type-escape.o ipa-utils.o ipa.o matrix-reorg.o prefix.o tree-inline.o tree-nomudflap.o varpool.o | tsort -q`
/usr/libexec/binutils222/elf/nm: 'i386.o': No such file
/usr/libexec/binutils222/elf/ar: i386.o: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/src/gnu/usr.bin/cc44/libbackend
*** Error code 1

Stop.
make: stopped in /usr/src/gnu/usr.bin/cc44
===> gnu/usr.bin/cc44/cc_prep
===> gnu/usr.bin/cc44/libiberty
===> gnu/usr.bin/cc44/libdecnumber
===> gnu/usr.bin/cc44/cc_tools
===> gnu/usr.bin/cc44/cc_tools/libiberty
===> gnu/usr.bin/cc44/cc_tools/tools
===> gnu/usr.bin/cc44/libbackend
===> gnu/usr.bin/cc44/libcpp
===> gnu/usr.bin/cc44/cc1
sh /usr/src/tools/install.sh -o root -g wheel -m 555 cc1 /usr/obj/usr/src/ctools_i386_i386/usr/libexec/gcc44
install: cc1: No such file or directory
*** Error code 71

Stop.
make: stopped in /usr/src/gnu/usr.bin/cc44/cc1
*** Error code 1

Stop.
make: stopped in /usr/src/gnu/usr.bin/cc44
*** Error code 1

Stop.
make: stopped in /usr/src
.CURDIR='/usr/src'
.OBJDIR='/usr/src'
.MAKE='make'
MAKE_VERSION='20121010'
LD_LIBRARY_PATH=''
MACHINE_ARCH='i386'
MACHINE='i386'
MAKEFILE='Makefile.inc1'
.TARGETS='cross-tools'
.ERROR_TARGET='ctools-gnu/usr.bin/cc44'
.ERROR_META_FILE=''
.MAKE.LEVEL='1'
.MAKE.MODE=''
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop.
bmake: stopped in /usr/src
# find /usr/obj/usr/ -name i386.o
/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/binutils222/incdump/i386.o
/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/binutils222/gprof/i386.o
/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/binutils222/gold/i386.o
# find /usr/obj/usr/ -name xcoffout.o
/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend/xcoffout.o
# find /usr/obj/usr/ -name varpool.o
/usr/obj/usr/src/ctools_i386_i386/usr/src/gnu/usr.bin/cc44/libbackend/varpool.o

History

#1 Updated by marino over 1 year ago

Pretty much everyone currently on master had to build past bmake which they did successfully on both platforms.

Your log is showing i386.o getting built.
Is it actually getting built? I would think not.

make/bmake is a bootstrap tool, so the legacy make shouldn't be involved past the bootstrap phase. If it were a search path problem, it would be seen by everyone right?

#2 Updated by rumcic over 1 year ago

  • Status changed from New to Closed

PEBKAC problem

There was a i386.o in my /usr/src (from god knows where/when), after removing it, buildworld completed successfully.

Also available in: Atom PDF