Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem compiling gcc-3.3.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
antares2001
Guru
Guru


Joined: 02 Mar 2004
Posts: 339
Location: Germany

PostPosted: Tue Nov 29, 2005 12:03 pm    Post subject: Problem compiling gcc-3.3.6 Reply with quote

Hello!

I am installing a fresh Gentoo 2005.1-r1 system and I am facing a problem during emerge -e --system:

Code:
ork/gcc-3.3.5/gcc/f/lex.c  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-lang.c  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-parse.in  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-tree.h  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-decl.c  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.c  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.h  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-pragma.c  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-objc-common.c "; \
for f in $ll; do \
echo "\"$f\", "; done >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo "NULL};" >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo "static const char *langs_for_lang_files[] = {" >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
ff="cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  f  f  f  f  f  f  c  c  c  c  c  c  c  c "; \
for f in $ff; do \
echo "\"$f\", " ; done  >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo "NULL};" >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo "static const char *all_files[] = {" >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
gf="config.h auto-host.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/../include/ansidecl.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/i386/i386.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/i386/unix.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/i386/att.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/dbxelf.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/elfos.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/svr4.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/linux.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/i386/linux.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/defaults.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/defaults.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/location.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/../include/hashtab.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/bitmap.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/function.h  /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/rtl.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/optabs.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/tree.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/libfuncs.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/hashtable.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/real.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/varray.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/ssa.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/insn-addr.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cselib.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-tree.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/basic-block.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/alias.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/bitmap.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cselib.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/dwarf2out.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/emit-rtl.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/except.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/explow.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/expr.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/fold-const.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/function.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/gcse.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/integrate.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/lists.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/optabs.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/profile.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/ra-build.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/regclass.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/reg-stack.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/sdbout.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/stmt.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/stor-layout.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/tree.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/varasm.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/config/i386/i386.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/mangle.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/cp-tree.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/decl.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/lex.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/call.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/decl.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/decl2.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/parse.y /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/pt.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/repo.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/spew.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/cp/tree.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-pragma.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/f/com.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/f/com.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/f/ste.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/f/where.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/f/where.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/f/lex.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-lang.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-parse.in /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-tree.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-decl.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-common.h /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-pragma.c /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/c-objc-common.c"; \
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo " NULL};" >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
gf="cp f"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
echo "NULL};" >> tmp-gtyp.h
make[2]: *** Waiting for unfinished jobs....
/bin/sh /var/tmp/portage/gcc-3.3.5.20050130-r2/work/gcc-3.3.5/gcc/move-if-change tmp-gtyp.h gtyp-gen.h
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r2/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r2/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.5.20050130-r2 failed.
!!! Function gcc_do_make, Line 1311, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


I am quite curious, since gcc 3.4.4-r1 just before that compiles well with no error. The system I am compiling for is a Pentium-M.

gcc -v says:

Code:
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)


Can anybody help me with this?
_________________
* Toshiba SM30X Notebook, Pentium-M 725 CPU, ATI Radeon 9700, 512MB RAM, 80GB
* Pentium D 820 2,8 GHz (EM64T), Geforce6, 200GB + 40GB ATA, 250GB SATA2, WinFastTV 2000XP, 1,5GB RAM
Gentoo Linux 2006.1
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Tue Nov 29, 2005 3:17 pm    Post subject: Reply with quote

Think the problem is that the gcc gets compiled twice. First time with the current gcc and the second time by its own. I assume you've set "march=pentium" in your CFLAGS. Now the problem is that this CFLAG isn't support by gcc-3.3.X and therefore the attemp to emerge that version will fail. To resolve the problem you should emerge the package "libstdc++-v3" and unmerge your old gcc after that.

Mfg

Sino
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Fri Jan 20, 2006 3:31 am    Post subject: Reply with quote

Hi,

I had a similar issue to your original post and wanted to contribute my solution. I updated my BIOS, and now everything is compiling.

This was on an ECS motherboard (K7S5V Pro), running BIOS firmware dated 2001. I updated to the latest available version (2003) and now everything is compiling like a champ.
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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