Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo 1.4-rc1: internal error at GCC-3.2 stage2
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
villerk
n00b
n00b


Joined: 25 Oct 2002
Posts: 9
Location: Finland

PostPosted: Fri Oct 25, 2002 11:08 am    Post subject: Gentoo 1.4-rc1: internal error at GCC-3.2 stage2 Reply with quote

I'm running AMD K6-2/500, 192 MB PC-100, MSI-5169.
CFLAGS="-match=k6-2 -O3 -pipe"
CHOST="i586-pc-linux-gnu"
USE="-* mmx 3dnow matrox fbcon apm gpm mitshm lame cdr scanner cups X
dga opengl xv directfb qt qtmt gtk tcltk aalib avi mpeg quicktime imlib
ncurses readline sdl svga gif jpeg png tiff esd oss mikmod ggi xmms
oggvorbis flash encode ipv6 pam ssl crypt imap tcpd spell truetype xml
xml2 pdflib plotutils tetex guile java perl python slang libwww libg++
pic berkdb gdbm samba nls zlib"

Here's the problem: I booted the newest Live-CD, got everything going
nicely, only disabled gnome, kde and arts (USE="-gnome -kde -arts") ran
/usr/portage/scripts/bootstrap.sh. binutils, texinfo (etc) compile fine,
so does GCC-3.2 for the first time (without the optimizations, that is),
then glibc-2.2.5 compiles also ok. When the script tries to compile
GCC-3.2 again _with_ the CPU-specific optimizes, it reports "Internal
error" during stage 2. I tried it three times last day and night (every
time a fresh try with rm -fr *) with the same results. It crashed
exactly in the same spot every time. This morning I tried it with some
very heavy optimizations (like -funroll-loops), it crashed while
compiling bzip2. Then I tried with CFLAGS="-march=k6-2 -O2 -pipe", and a
different USE (not so bloated one like that above :), but enabled and
disabled some more stuff), didn't help. Now I'm trying one last time,
this time with those enviroment variables above.

The process hasn't reached yet the point where it crashes, but if/when
it does, I'll put the error message here verbatim. At first I suspected
it might be a hardware problem, as I had similar errors with every
distro when I had some bad memory (random crashes while compiling), but
why does it crash every time in the same point? If I can't solve this,
I'll try next the stage2 tarball and see if that helps. (I don't want to
do it, I love too much fiddling with the stage1 :D).

Anyways, I already think that Gentoo is an excellent distro: there
aren't many OS install-CDs (none probably, apart from Gentoo) which have
irc clients, www browsers, ssh tools (and probably even more)! Right now
I've run the Live-CD 1 day and 24 min. And the fact that every single
component on my system worked out-of-the-box as I booted the CD, that
Lynx, among others, are compiled with SSL-support etc. etc. I just hope
I'll get the bootstrapping work, I have high expectations...
_________________
I have met people who claim they can speak English better than their mothertongue, but that's just because they speak their mothertongue so badly.

-- Ville
Back to top
View user's profile Send private message
villerk
n00b
n00b


Joined: 25 Oct 2002
Posts: 9
Location: Finland

PostPosted: Fri Oct 25, 2002 1:37 pm    Post subject: Here's the error Reply with quote

gcc -c -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/gcc
-I/var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/gcc/.
-I/var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/gcc/config
-I/var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/../include
/var/tmp/portage/gcc-3.2-r1/work/gcc/dwarfout.c -o dwarfout.o
/var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/gcc/dwarf2out.c: In function
`add_data_member_location_attribute':
/var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/gcc/dwarf2out.c:8640: internal
error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [dwarf2out.o] Error 1
make[2]: *** Waiting for unfinished jobs...
make[2]: *** Leaving directory
`/var/tmp/portage/gcc-3.2-r1/work/build/gcc'
make[1]: *** Leaving directory
`/var/tmp/portage/gcc-3.2-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: The ebuild did not complete succesfully.
!!! Function src_compile, Line 102, Exitcode 2
!!! (no error message)
_________________
I have met people who claim they can speak English better than their mothertongue, but that's just because they speak their mothertongue so badly.

-- Ville
Back to top
View user's profile Send private message
villerk
n00b
n00b


Joined: 25 Oct 2002
Posts: 9
Location: Finland

PostPosted: Sun Oct 27, 2002 9:41 am    Post subject: Reply with quote

Hmm, this seems to be a popular topic :roll:
_________________
I have met people who claim they can speak English better than their mothertongue, but that's just because they speak their mothertongue so badly.

-- Ville
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Oct 27, 2002 6:28 pm    Post subject: Re: Gentoo 1.4-rc1: internal error at GCC-3.2 stage2 Reply with quote

villerk wrote:
CFLAGS="-match=k6-2 -O3 -pipe"
Quote:
compile fine,
so does GCC-3.2 for the first time (without the optimizations, that is),
...
When the script tries to compile
GCC-3.2 again _with_ the CPU-specific optimizes, it reports "Internal
error"
I've read some threads recommending O2 instead of O3 with gcc3. You might try that.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
villerk
n00b
n00b


Joined: 25 Oct 2002
Posts: 9
Location: Finland

PostPosted: Mon Oct 28, 2002 5:34 pm    Post subject: Maybe it's the processor Reply with quote

I ran memtest86 today, just to make sure this is not because of faulty
memory and the result was negative. Then I figured it might be the
cooler on the processor, as it's grown noisy in the last few months. I
replaced my K6-2/500 with an older K6-2/300, which I know doesn't heat
up so much, and found another cooler from a drawer. I'm trying this now,
as I suspect the bootstrapping process is too much without a proper
cooling on K6-2/500. I'll set it compiling this night.
_________________
I have met people who claim they can speak English better than their mothertongue, but that's just because they speak their mothertongue so badly.

-- Ville
Back to top
View user's profile Send private message
villerk
n00b
n00b


Joined: 25 Oct 2002
Posts: 9
Location: Finland

PostPosted: Tue Oct 29, 2002 5:47 am    Post subject: Yea, Gentoo compiles! Reply with quote

Yahoo! That worked. Now Gentoo compiles perfectly, though as K6-2/300 is about 20% slower than 500, it took two more hours to complete. I ordered a new fan, it'll be here this week or the next.
_________________
I have met people who claim they can speak English better than their mothertongue, but that's just because they speak their mothertongue so badly.

-- Ville
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