Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19173 (KernelBuildFailure) - starting from a stage3 (rc3) tarball on an LFS system, compiling the gentoo-sources kernel segfaults in "make bzImage"
Summary: starting from a stage3 (rc3) tarball on an LFS system, compiling the gentoo-s...
Status: RESOLVED INVALID
Alias: KernelBuildFailure
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-11 18:13 UTC by david t-g
Modified: 2003-04-15 20:06 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 david t-g 2003-04-11 18:13:31 UTC
the summary pretty much says it... after having unpacked the sources
and run my menuconfig and make dep and make clean per the instructions
I then went on to "make bzImage" and get a segfault:
...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=inode  -c -o inode.o inode.c
In file included from /usr/src/linux-2.4.20-gentoo-r2/include/linux/sched.h:26,
                 from inode.c:16:
/usr/src/linux-2.4.20-gentoo-r2/include/linux/signal.h:114: internal error: Segmentation fault

another pass segfaults at
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=do_balan  -c -o do_balan.o do_balan.c
do_balan.c: In function `balance_leaf':
do_balan.c:1608: internal error: Segmentation fault

a third pass fails with
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=binfmt_elf  -c -o binfmt_elf.o binfmt_elf.c
{standard input}: Assembler messages:
{standard input}:2309: Error: this string may not contain '\0'
make[2]: *** [binfmt_elf.o] Error 1

and it just seems as though the sucker won't build!

Reproducible: Always
Steps to Reproduce:
1.all I do is make :-)
2.
3.
Actual Results:  
segfault or other error

Expected Results:  
successfully compiled the kernel

this system is a somewhat peculiar Celeron 550 with 256M of RAM; it
does not have keyboard or mouse input and has a quad NIC in its one
PCI interface (when the original image was built, the NIC was switched
to a VGA card, and a USB keyboard was used).  it is currently running
an LFS build which needs some fixing anyway, so as I put in my new
hard drive I am rebuilding.  I don't particularly care what flavor of
Linux goes on it and was pointed to Gentoo because I hear that it has
build scripts so that I don't have to go through the very educational
but very time-consuming LFS experience to get going :-)

I am using a stage3 tarball in my mounted /tmp/A partition, which is
to be the primary root on the new drive once it's the only drive in
the machine.

root@canal:/usr/src/linux-2.4.20-gentoo-r2# emerge info
Portage 2.0.47-r3 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.18 i686 
GENTOO_MIRRORS="http://mirrors.twobit.net/gentoo/ http://gentoo.oregonstate.edu/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi gpm imlib gnome libg++ mikmod mmx motif mpeg ncurses nls oggvorbis opengl quicktime sdl svga xml2 xmms slang readline tcpd pam berkdb crypt cups curl encode ethereal gdbm gif gtk innodb java jikes jpeg kde libwww maildir mbox mozilla mysql oav pdflib perl plotutils png python qt samba sasl snmp spell ssl tetex tiff truetype X Xaw3d xv zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -mcpu=i686 -funroll-loops -ffast-math"
CXXFLAGS="-O3 -march=i686 -mcpu=i686 -funroll-loops -ffast-math"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-12 00:05:40 UTC
this does not seem to be a gentoo-sources issue. looks as if the user has a hardware issue of 
some sort (probably memory). the sig 11 (seg fault) signifies a program (here gcc) accessed 
a memory location it was not allocated. we've had real good success with gcc-3.2.1 so, i 
suspect it is not a design flaw in gcc. also, the compile failed in at least 3 different places 
and the last was 'as' the gnu assembler, it errored on what gcc passed for it to assemble. if it 
was the kernel source, we would expect to fail in the same place. but, it compiles different 
items each time before failing... 
try running memtest to rule out bad memory. 
 
or look @ this article, it may be useful: http://www.bitwizard.nl/sig11/ 
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 20:06:03 UTC
closing as this cannot be reproduced. please reopen if you have more info. 
 
Jay