When I try to emerge grub I get a segmentation fault. Reproducible: Always Steps to Reproduce: 1. emerge grub 2. 3. Actual Results: Knoppix / # emerge grub Calculating dependencies ...done! >>> emerge (1 of 1) sys-boot/grub-0.93.20030118 to / >>> md5 src_uri ;-) grub-0.93.tar.gz >>> md5 src_uri ;-) grub-0.93.20030118-gentoo.diff.bz2 >>> Unpacking source... >>> Unpacking grub-0.93.tar.gz to /var/tmp/portage/grub-0.93.20030118/work >>> Unpacking grub-0.93.20030118-gentoo.diff.bz2 to /var/tmp/portage/grub-0.93.20030118/work * Applying grub-0.93.20030118-gentoo.diff... [ ok ] * Applying grub-0.93-gcc3.3.diff... [ ok ] configure.in:17: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst configure.in:642: warning: do not use m4_regexp: use regexp or m4_bregexp >>> Source unpacked. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for i686-pc-linux-gnu-gcc... gcc checking for i686-pc-linux-gnu-gcc... (cached) gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking dependency style of gcc... (cached) gcc3 checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib sed: -e expression #2, char 11: Unterminated `s' command checking whether optimization for size works... yes checking whether -Wundef works... yes checking whether -falign-loops works... no checking for i686-pc-linux-gnu-objcopy... no checking for objcopy... objcopy checking if C symbols get an underscore after compilation... no checking whether objcopy works for absolute addresses... yes checking whether addr32 must be in the same line as the instruction... yes checking for .code16 addr32 assembler support... yes checking whether an absolute indirect call/jump must not be prefixed with an asterisk... no checking if start is defined by the compiler... no checking if _start is defined by the compiler... yes checking if __bss_start is defined by the compiler... yes checking if _edata is defined by the compiler... yes checking if edata is defined by the compiler... yes checking if end is defined by the compiler... yes checking if _end is defined by the compiler... yes checking for opendisk in -lutil... no checking for wgetch in -lncurses... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking ncurses/curses.h usability... no checking ncurses/curses.h presence... no checking for ncurses/curses.h... no checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating stage1/Makefile config.status: creating stage2/Makefile config.status: creating docs/Makefile config.status: creating lib/Makefile config.status: creating util/Makefile config.status: creating grub/Makefile config.status: creating netboot/Makefile config.status: creating util/grub-image config.status: creating util/grub-install config.status: creating util/grub-md5-crypt config.status: creating util/grub-terminfo config.status: creating config.h config.status: executing default-1 commands cd . \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ /bin/sh ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default-1 commands make all-recursive make[1]: Entering directory `/var/tmp/portage/grub-0.93.20030118/work/grub-0.93' Making all in netboot make[2]: Entering directory `/var/tmp/portage/grub-0.93.20030118/work/grub-0.93/netboot' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/grub-0.93.20030118/work/grub-0.93/netboot' Making all in stage2 make[2]: Entering directory `/var/tmp/portage/grub-0.93.20030118/work/grub-0.93/stage2' gcc -Os -fno-builtin -nostdinc -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DSUPPORT_GRAPHICS=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef -g -c -o pre_stage2_exec-asm.o `test -f 'asm.S' || echo './'`asm.S source='bios.c' object='pre_stage2_exec-bios.o' libtool=no \ depfile='.deps/pre_stage2_exec-bios.Po' tmpdepfile='.deps/pre_stage2_exec-bios.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef -Os -fno-builtin -nostdinc -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DSUPPORT_GRAPHICS=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -g -c -o pre_stage2_exec-bios.o `test -f 'bios.c' || echo './'`bios.c source='boot.c' object='pre_stage2_exec-boot.o' libtool=no \ depfile='.deps/pre_stage2_exec-boot.Po' tmpdepfile='.deps/pre_stage2_exec-boot.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../stage1 -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -malign-jumps=1 -malign-loops=1 -malign-functions=1 -Wundef -Os -fno-builtin -nostdinc -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -DSUPPORT_GRAPHICS=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 -DFSYS_JFS=1 -DFSYS_XFS=1 -DUSE_MD5_PASSWORDS=1 -g -c -o pre_stage2_exec-boot.o `test -f 'boot.c' || echo './'`boot.c cc1: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [pre_stage2_exec-bios.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [pre_stage2_exec-boot.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/grub-0.93.20030118/work/grub-0.93/stage2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/grub-0.93.20030118/work/grub-0.93' make: *** [all] Error 2 !!! ERROR: sys-boot/grub-0.93.20030118 failed. !!! Function src_compile, Line 64, Exitcode 2 !!! (no error message) Knoppix / # Expected Results: Compile grub and exit without error. Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21-xfs) ================================================================= System uname: 2.4.21-xfs i686 Pentium III (Coppermine) ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss arts avi crypt cups encode foomaticdb gif gpm gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pdflib png quicktime sdl slang spell svga truetype X xml2 xmms xv zlib gdbm berkdb readline java tcpd pam ssl perl python -gtk -gnome qt kde dvd alsa apm"
Can you confirm that this is still the case? I suspect the segfault is indicative of hardware errors rather than anything else.
Currently I'm not using Gentoo any more, so I cannot verify if the problem still exists.
Okay - please change status to RESOLVED NEEDINFO.
please reopen if this is still the case