Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92609 - Compiling the kernel ends with error: gcc: Internal error: Segmentation fault (program cc1)
Summary: Compiling the kernel ends with error: gcc: Internal error: Segmentation faul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-14 08:56 UTC by Igor Funa
Modified: 2005-05-15 11:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Funa 2005-05-14 08:56:35 UTC
I'm trying to install a fresh Gentoo Linux (stage 3) on a Pentium III machine.
I'm following the steps from the handbook (I was successful on cuple of PII machines (linux-2.6.11-gentoo-r3, stage3))

I can succesfully emerge gentoo-sources.
I can make menuconfig.
When I run make && make modules_install it soon ends with error: gcc: Internal error: Segmentation fault (program cc1)

Similar error occurs with genkernel.


Reproducible: Always
Steps to Reproduce:
1.install a fresh Gentoo Linux stage 3 (linux-2.6.11-gentoo-r8)
2.compile kernel 
3.

Actual Results:  
Comilation soon ended with Internal error

Expected Results:  
Compile the kernel

PC Pentium III 450 MHz, 384 MB RAM, ATA HDD 8 GB

------------[ cut here ]------------
kernel BUG at :65386!
invalid operand: 0000 [#1]
SMP
Modules linked in: floppy rtc evdev 3c59x mii parport_pc parport ahci sata_qstor
sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil sata_promise
libata dm_mirror dm_mod sbp2 ohci1394 ieee1394 sl811_hcd ohci_hcd uhci_hcd
usb_storage usbhid ehci_hcd usbcore
CPU:    0
EIP:    0060:[<c013b423>]    Not tainted VLI
EFLAGS: 00010296   (2.6.11-gentoo-r3)
eax: fffff000   ebx: c1215b80   ecx: c1215b80   edx: c1215b80
esi: 00000000   edi: 00000020   ebp: 000ed000   esp: d36d7e78
ds: 007b   es: 007b   ss: 0068
Process cc1 (pid: 8595, threadinfo=d36d6000 task=d6c820a0)
Stack: c0135a28 c1215b80 d1f6a3b4 40400000 40500000 d2aad404 00000000 c0135b05
       c1304340 d2aad404 40400000 00100000 00000000 40400000 d2aad404 40500000
       00000000 c0135b49 c1304340 d2aad404 40400000 00100000 00000000 40500000
Call Trace:
 [<c0135a28>]
 [<c0135b05>]
 [<c0135b49>]
 [<c0135bbd>]
 [<c0135cb6>]
 [<c0139afb>]
 [<c0112a70>]
 [<c01166e0>]
 [<c011697e>]
 [<c0102157>]
Code: 6a 01 6a 10 e8 ed 33 ff ff 59 58 c3 8b 54 24 04 8b 02 f6 c4 08 74 02 0f 0b
f0 83 42 08 ff 0f 98 c0 84 c0 74 13 8b 42 08 40 79 02 <0f> 0b 6a ff 6a 10 e8 c0
33 ff ff 58 5a c3 55 57 56 53 83 ec 0c
 gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [fs/lockd/svclock.o] Error 1
make[1]: *** [fs/lockd] Error 2
make: *** [fs] Error 2
Comment 1 Mark Byers 2005-05-14 09:09:51 UTC
If you repeatedly emerge the kernel, does the error always occur in exactly the same place, with the same message, on the same file, or in slightly different places each time?

Also, please post the output of 'emerge info'.
Comment 2 Igor Funa 2005-05-14 10:53:12 UTC
If I repeat the "make && make modules_install" command I get the same error
(gcc: Internal error: Segmentation fault (program cc1))
but on DIFFERENT files - it occurs in slightly different places each time.

Here is output of "emerge info":

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 15:25:47)]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.ITDNet.net/gentoo http://trumpetti.atm.tut.fi/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-05-14 16:33:44 UTC
Well, getting a failure at different places each time suggests a hardware problem. I recommend checking Bug 20600 for possible causes of this. 
Comment 4 Igor Funa 2005-05-15 11:23:57 UTC
I have found the following:
I'm not overclocking anything, it is not possible - it is an Intel motherboard.
The hardware seems to be OK, at least each individual component seems to be OK.
WinXP runs on the SAME configuration without any problem.
However combination with Pentium III on this Intel MB has problems with linux (gcc   internal errors while compiling the kernel).

I changed the processor to PII 350 and it works fine!
That's it.
Thanks.