View previous topic :: View next topic |
Author |
Message |
PennStater n00b
Joined: 31 Jan 2005 Posts: 17 Location: Pittsburgh, PA
|
Posted: Thu May 17, 2007 6:59 pm Post subject: gcc-3.3.6-r1 is a dependency of ut2004? It fails to emerge.. |
|
|
Hello folks... I'm trying to emerge ut2004, but I'm having problems because it wants to install gcc-3.3.6-r1 as a dependency, and the emerge of that package fails. What I'm wondering is why ut2004 needs to install that package at all, as I already have the most recent stable version of gcc in portage installed, 4.1.1-r3. In case you need it, here is the error I get when the emerge of gcc-3.3.6-r1 fails:
Code: | make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
echo timestamp > stage1_build
echo stage1_build > stage_last
make stage1
make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi
make -f libgcc.mk libgcc-stage-start stage=stage1
make[3]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
for dir in libgcc; do \
if [ -d stage1/$dir ]; then true; else /bin/sh /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/mkinstalldirs stage1/$dir; fi; \
done
mkdir stage1/libgcc
for dir in libgcc; do \
mv $dir/*.o stage1/$dir; \
mv $dir/*.os stage1/$dir || true; \
test ! -f $dir/stacknote.s || mv $dir/stacknote.s stage1/$dir; \
done
mv: cannot stat `libgcc/*.os': No such file or directory
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
for dir in intl cp f ; \
do \
if [ -d stage1/$dir ] ; then true ; else mkdir stage1/$dir ; fi ; \
done
mv *.o insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c insn-attr.h insn-attrtab.c insn-opinit.c insn-constants.h tm-preds.h tree-check.h insn-conditions.c s-flags s-config s-codes s-mlib s-genrtl s-gtype gtyp-gen.h s-output s-recog s-emit s-extract s-peep s-check s-conditions s-attr s-attrtab s-opinit s-preds s-constants s-crt0 genemit genoutput genrecog genextract genflags gencodes genconfig genpeep genattrtab genattr genopinit gengenrtl gencheck genpreds genconstants gengtype genconditions genrtl.c genrtl.h gt-*.h gtype-*.h gtype-desc.c xgcc cpp cc1 crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o gcc-cross cc1obj protoize unprotoize specs collect2 collect2 gcov *.[0-9][0-9].* *.[si] libcpp.a libbackend.a libgcc.mk g++ g++-cross cc1plus g77 g77-cross f771 stage1
mv: cannot stat `s-crt0': No such file or directory
mv: cannot stat `crtbegin.o': No such file or directory
mv: cannot stat `crtbeginS.o': No such file or directory
mv: cannot stat `crtbeginT.o': No such file or directory
mv: cannot stat `crtend.o': No such file or directory
mv: cannot stat `crtendS.o': No such file or directory
mv: cannot stat `gcc-cross': No such file or directory
mv: cannot stat `cc1obj': No such file or directory
mv: cannot stat `protoize': No such file or directory
mv: cannot stat `unprotoize': No such file or directory
mv: cannot stat `collect2': No such file or directory
mv: cannot stat `gcov': No such file or directory
mv: cannot stat `*.[0-9][0-9].*': No such file or directory
mv: cannot stat `*.[si]': No such file or directory
mv: cannot stat `g++-cross': No such file or directory
mv: cannot stat `cc1plus': No such file or directory
mv: cannot stat `g77-cross': No such file or directory
mv: cannot stat `f771': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
mv intl/*.o stage1/intl
mv: cannot stat `intl/*.o': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
if [ -f as ] ; then (cd stage1 && ln -s ../as .) ; else true ; fi
if [ -f ld ] ; then (cd stage1 && ln -s ../ld .) ; else true ; fi
if [ -f collect-ld ] ; then (cd stage1 && ln -s ../collect-ld .) ; else true ; fi
rm -f stage1/libgcc.a stage1/libgcc_eh.a stage1/libgcc_s*.so
rm -f stage1/libunwind.a stage1/libunwind*.so
cp libgcc.a stage1
if [ -f ` if [ -f /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ] ; then echo /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo ranlib; else t='s,^,i686-pc-linux-gnu-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \
` if [ -f /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ] ; then echo /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo ranlib; else t='s,^,i686-pc-linux-gnu-,'; echo ranlib | sed -e $t ; fi; fi` stage1/libgcc.a; \
else true; fi
if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \
if [ -f ` if [ -f /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ] ; then echo /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo ranlib; else t='s,^,i686-pc-linux-gnu-,'; echo ranlib | sed -e $t ; fi; fi` ] || ( [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \
` if [ -f /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ] ; then echo /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc/../binutils/ranlib ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo ranlib; else t='s,^,i686-pc-linux-gnu-,'; echo ranlib | sed -e $t ; fi; fi` stage1/libgcc_eh.a; \
else true; fi; fi
cp libgcc_s*.so stage1/
cp libunwind.a libunwind*.so stage1
cp: cannot stat `libunwind.a': No such file or directory
cp: cannot stat `libunwind*.so': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
for f in .. ; do if [ x${f} != x.. ]; then \
cp stage1/${f} . ; \
else true; \
fi; done
mv cp/*.o stage1/cp
mv: cannot stat `cp/*.o': No such file or directory
make[2]: [c++.stage1] Error 1 (ignored)
mv -f f/*.o f/fini f/stamp-str f/str-*.h f/str-*.j g77spec.o stage1/f
mv: cannot stat `f/*.o': No such file or directory
mv: cannot stat `f/fini': No such file or directory
mv: cannot stat `f/stamp-str': No such file or directory
mv: cannot stat `f/str-*.h': No such file or directory
mv: cannot stat `f/str-*.j': No such file or directory
mv: cannot stat `g77spec.o': No such file or directory
make[2]: [f77.stage1] Error 1 (ignored)
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
echo timestamp > stage1_copy
echo stage2_build > stage_last
(cd stage1 && rm -f `echo main.o libbackend.a 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 cfgrtl.o combine.o conflict.o convert.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o doloop.o dominance.o dwarf2asm.o dwarf2out.o dwarfout.o emit-rtl.o except.o explow.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 hashtable.o hooks.o ifcvt.o insn-attrtab.o insn-emit.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 mbchar.o optabs.o params.o predict.o print-rtl.o print-tree.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o regclass.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 sibcall.o simplify-rtx.o ssa.o ssa-ccp.o ssa-dce.o stmt.o stor-layout.o stringpool.o timevar.o toplev.o tracer.o tree.o tree-dump.o tree-inline.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o et-forest.o protector.o ggc-page.o i386.o c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o cpptrad.o cpphash.o cpperror.o cppinit.o cppdefault.o cppmain.o hashtable.o line-map.o mkdeps.o prefix.o mbchar.o *.c *.h gen*`)
make CC=" stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/" \
STAGE_PREFIX=stage1/ \
ADAC="\$(CC)" AR_FOR_TARGET="ar" RANLIB_FOR_TARGET="ranlib" CFLAGS="-march=k8 -O2 -pipe" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/lib LANGUAGES="c gcov c++ f77 proto" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
echo timestamp > clean_s1
make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -march=k8 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/gengenrtl.c -o gengenrtl.o
cc1: error: bad value (k8) for -march= switch
cc1: error: bad value (k8) for -mcpu= switch
make[2]: *** [gengenrtl.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
!!! ERROR: sys-devel/gcc-3.3.6-r1 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 5364: Called src_compile
ebuild.sh, line 1304: Called toolchain_src_compile
toolchain.eclass, line 26: Called gcc_src_compile
toolchain.eclass, line 1552: Called gcc_do_make
toolchain.eclass, line 1426: Called die
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.3.6-r1/temp/build.log'. |
Does anyone know a) why I even need gcc 3.3.6 or b) why gcc 3.3.6 is failing to compile?
Any advice on this would be appreciated! |
|
Back to top |
|
|
Dragonix Apprentice
Joined: 21 May 2006 Posts: 253 Location: Germany
|
Posted: Thu May 17, 2007 8:18 pm Post subject: |
|
|
Could you post the outpot of "emerge -pv ut2004"? |
|
Back to top |
|
|
PennStater n00b
Joined: 31 Jan 2005 Posts: 17 Location: Pittsburgh, PA
|
Posted: Thu May 17, 2007 8:54 pm Post subject: |
|
|
Sure...
Code: | These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] sys-devel/gcc-3.3.6-r1 USE="fortran nls (-altivec) -bootstrap -boundschecking -build -doc -gcj -gtk (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB
[ebuild N ] games-util/uz2unpack-0.1 2 kB
[ebuild N ] games-fps/ut2004-data-3186-r3 0 kB
[ebuild N ] virtual/libstdc++-3.3 0 kB
[ebuild N ] games-fps/ut2004-bonuspack-ece-1-r3 USE="-dedicated -opengl" 198,364 kB
[ebuild N ] games-fps/ut2004-bonuspack-mega-1-r2 USE="-dedicated -opengl" 0 kB
[ebuild N ] games-fps/ut2004-3369-r4 USE="-dedicated -opengl" 21,939 kB
Total: 7 packages (6 new, 1 in new slot), Size of downloads: 220,304 kB |
Note: I was doing 'USE="dedicated opengl" emerge ut2004' but I don't believe this makes any difference as far as the gcc goes... it wants to compile gcc no matter what...
Last edited by PennStater on Thu May 17, 2007 8:55 pm; edited 1 time in total |
|
Back to top |
|
|
Dragonix Apprentice
Joined: 21 May 2006 Posts: 253 Location: Germany
|
Posted: Thu May 17, 2007 8:55 pm Post subject: |
|
|
Emerge libstdc++-v3; that should do it
And watch out, there's a difference between libstdc++ and libstdc++-v3!!! |
|
Back to top |
|
|
PennStater n00b
Joined: 31 Jan 2005 Posts: 17 Location: Pittsburgh, PA
|
Posted: Thu May 17, 2007 9:02 pm Post subject: |
|
|
Okay, thanks...I'm doing that as we speak... I'll post the results once it's done. |
|
Back to top |
|
|
PennStater n00b
Joined: 31 Jan 2005 Posts: 17 Location: Pittsburgh, PA
|
Posted: Thu May 17, 2007 9:04 pm Post subject: |
|
|
What do you know, it finished as soon as I made that last post...
Anyhow, a new 'emerge -vp ut2004' has no old gcc in it, so it looks like your solution worked! Thank you very much... could you possibly explain what was happening there? I'm trying to learn more about these things |
|
Back to top |
|
|
Dragonix Apprentice
Joined: 21 May 2006 Posts: 253 Location: Germany
|
Posted: Thu May 17, 2007 9:24 pm Post subject: |
|
|
Sry, I don't know. But perhaps the forum-search does?
But I could imagine, that ut2004 needs some shared objects from the old version of the standard c++ library (and that objects are included in the gcc and the seperate libstdc++-v3). But that's only my imagination, to say the truth: I think taht it's wrong
Perhaps s.o. knows better & can explain it, I hope so
Need 2 to bed know, writing a test in chemistry tomorrow :C |
|
Back to top |
|
|
UncleOwen Veteran
Joined: 27 Feb 2003 Posts: 1493 Location: Germany, Hamburg
|
Posted: Thu May 17, 2007 9:32 pm Post subject: |
|
|
ut isn't compiled, it's a binary package. That means, it needs the same libstdc++ it was compiled against - in this case, the one from gcc-3.3. There are two ways to get that library: Either install gcc-3.3, or use the libstc++-ebuild (which does nothing else than compile a minimal gcc-3.3 and use that to compile a libstdc++).
Usually you would get only the libstdc++ if you have none of the two installed. At least, that's what the ebuilds say. However, due to a recent change in portage, gcc-3.3 is preferred, because you already have another version of gcc installed. |
|
Back to top |
|
|
PennStater n00b
Joined: 31 Jan 2005 Posts: 17 Location: Pittsburgh, PA
|
Posted: Fri May 18, 2007 6:36 am Post subject: |
|
|
Ah, I see. Thanks for the explanation, UncleOwen. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|