Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 4.2.0 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dmead
n00b
n00b


Joined: 09 May 2006
Posts: 68

PostPosted: Sat Jul 28, 2007 8:55 pm    Post subject: gcc 4.2.0 fails Reply with quote

gcc fails for some reason, heres error but I'll post the full log if someone wants it

edit:

added lspci and make.conf
Code:

i686-pc-linux-gnu-ar rc libbackend.a double-int.o 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-gimple.o gimplify.o tree-pretty-print.o tree-into-ssa.o tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-uncprop.o tree-ssa-dce.o  tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o tree-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o tree-ssa-dom.o domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o omp-low.o tree-phinodes.o tree-ssanames.o tree-sra.o tree-complex.o tree-vect-generic.o tree-ssa-loop.o tree-ssa-loop-niter.o tree-ssa-loop-manip.o tree-ssa-threadupdate.o tree-ssa-threadedge.o tree-vectorizer.o tree-vect-analyze.o tree-vect-transform.o tree-vect-patterns.o tree-ssa-loop-prefetch.o tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-address.o tree-ssa-math-opts.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 cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o ddg.o tree-ssa-loop-ch.o loop-invariant.o tree-ssa-loop-im.o debug.o df-core.o df-problems.o df-scan.o dfp.o diagnostic.o dojump.o dominance.o loop-doloop.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o loop-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-attrtab.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 mode-switching.o modulo-sched.o optabs.o options.o opts.o opts-common.o params.o postreload.o postreload-gcse.o predict.o insn-preds.o insn-automata.o pointer-set.o print-rtl.o print-tree.o profile.o value-prof.o var-tracking.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 see.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o struct-equiv.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o varasm.o varray.o vec.o version.o vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o passes.o tree-profile.o rtlhooks.o cfgexpand.o lambda-mat.o lambda-trans.o        lambda-code.o tree-loop-linear.o tree-ssa-sink.o tree-vrp.o tree-stdarg.o tree-cfgcleanup.o tree-ssa-reassoc.o tree-ssa-structalias.o tree-object-size.o rtl-factoring.o i386.o  host-linux.o tree-inline.o cgraph.o cgraphunit.o tree-nomudflap.o ipa.o ipa-inline.o ipa-utils.o ipa-reference.o ipa-pure-const.o ipa-type-escape.o ipa-prop.o ipa-cp.o
i686-pc-linux-gnu-ranlib  libbackend.a
/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/   -O2 -march=athlon-xp -pipe -fprofile-generate -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.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-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o  c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
          main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
/usr/i686-pc-linux-gnu/bin/ld: libbackend.a(tree-outof-ssa.o): bad reloc symbol index (0x40100 >= 0x75) for offset 0x1efc1efc in section `.text'
libbackend.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/gcc'
make[2]: *** [all-stageprofile-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build'
make[1]: *** [stageprofile-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build'
make: *** [profiledbootstrap] Error 2
 *
 * ERROR: sys-devel/gcc-4.2.0 failed.
 * Call stack:
 *   ebuild.sh, line 1648:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1328:   Called toolchain_src_compile
 *   toolchain.eclass, line 26:   Called gcc_src_compile
 *   toolchain.eclass, line 1546:   Called gcc_do_make
 *   toolchain.eclass, line 1420:   Called die
 *
 * emake failed with profiledbootstrap
 * 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-4.2.0/temp/build.log'.
 *
 * GNU info directory index is up-to-date.



Code:

localhost dan # lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
00:0e.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:0f.0 RAID bus controller: Triones Technologies, Inc. HPT366/368/370/370A/372/372N (rev 05)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: nVidia Corporation NV40 [GeForce 6800] (rev a1)


Code:

cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
#CFLAGS="-O2 -march=i686 -pipe"
#CFLAGS="-march=i686 -O3 -pipe"
#CFLAGS="-march=athlon-xp -Os -pipe"

ARCH="x86"
CFLAGS="-O2 -march=athlon-xp -pipe"

CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS=""
VIDEO_CARDS="vesa nv nvidia"
ALSA_CARDS="cmipci"
INPUT_DEVICES="keyboard mouse"
ACCEPT_KEYWORDS="~x86"
USE="Xaw3d 3dfx 3dnow 3dnowext X aac arts alsa avi berkdb bitmap-fonts busybox \
     cairo audiofile xforms cdr cli crypt daap dbus dlloader dri dvd dvdr \
     eds elibc_glibc emacs emerald emboss esd fam firefox \
     font-server fontconfig fortran gdbm gif glib glitz gmail  gpm \
     gstreamer gtk gtkspell hal haskell imlib imlib2 input_devices_evdev \
     input_devices_keyboard kdehiddenvisibility kdeenablefinal input_devices_mouse ipv6 isdnlog java \
     jack jpeg kde kdgraphics kernel_linux ldap libg++ mad mikmod mmx mmxext \
     mono mp3 mpeg msn ncurses nls nptl ntfs nptlonly ogg opengl oss pam \
     pcre pdflib perl png ppds pppd python qt3 qt4 quicktime \
     readline reflection sse sdl session spell spl ssl symlink teamarena \
     tcpd truetype truetype-fonts type1-fonts udev unicode \
     userland_GNU vorbis win32codecs X x86 xemacs xml
     xscreensaver xcomposite xorg xv xvid opengl zlib \
     pdf toolkit-scroll-bars  inherit-graph"
FEATURES="ccache parallel-fetch"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="2G"

PORTDIR_OVERLAY="/usr/local/portage"

#source /usr/portage/local/layman/make.conf


Last edited by dmead on Sat Jul 28, 2007 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
berry120
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2007
Posts: 84
Location: UK

PostPosted: Sat Jul 28, 2007 9:16 pm    Post subject: Reply with quote

What use flags did you use? Try messing around with those to find out if one's responsible, or if you've selected one by mistake.
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Sat Jul 28, 2007 9:21 pm    Post subject: Re: gcc 4.2.0 fails Reply with quote

It definitely help if you list your make.conf and your lspci in the forum really.
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
dmead
n00b
n00b


Joined: 09 May 2006
Posts: 68

PostPosted: Sat Jul 28, 2007 9:29 pm    Post subject: Reply with quote

no prob, added them

should also mention the compiler cache is empty incase anyone thinks it's that
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5314
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Jul 28, 2007 11:12 pm    Post subject: Reply with quote

create yourself and overlay & rename gcc-4.2.0.ebuild to gcc-4.2.1.ebuild , since gcc-4.2.1 was released recently that might fix your problems
_________________
Unofficial minimal livecd x86/amd64 w/reiser4+truecrypt (by Neo2)
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
dmead
n00b
n00b


Joined: 09 May 2006
Posts: 68

PostPosted: Sat Jul 28, 2007 11:26 pm    Post subject: Reply with quote

I updated libtool and that problem went away, but now I get this....

Quote:
bin/sh /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/mkconfig.sh tconfig.h
/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -O2 -O2 -march=athlon-xp -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer \
-c /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/crtstuff.c: In function '__do_global_dtors_aux':
/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/crtstuff.c:265: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/sys-devel/gcc-4.2.0/temp/ccme36do.out file, please attach this to your bugreport.
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/gcc'
make[2]: *** [all-stageprofile-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build'
make[1]: *** [stageprofile-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build'
make: *** [profiledbootstrap] Error 2
*
* ERROR: sys-devel/gcc-4.2.0 failed.
* Call stack:
* ebuild.sh, line 1648: Called dyn_compile
* ebuild.sh, line 988: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1328: Called toolchain_src_compile
* toolchain.eclass, line 26: Called gcc_src_compile
* toolchain.eclass, line 1546: Called gcc_do_make
* toolchain.eclass, line 1420: Called die
*
* emake failed with profiledbootstrap
* 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-4.2.0/temp/build.log'.
*


:(
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Tue Jul 31, 2007 5:38 pm    Post subject: Reply with quote

Hello, i was having a problem exactly the same as that turns out that i had to USE="-fortran" i had also got the same errors with previous versions of gcc until i altered package.use
hope this helps
_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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