Bug/crash while compiling a 2.2.17 kernel

Cipriano Groenendal cipri@dds.nl
Tue Nov 7 08:30:00 GMT 2000


gcc had a segmentation fault while compiling a 2.2.17 kernel.
gcc -v had this output:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)


Here's the full output:
[root@TransWarp linux]# make zImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486  -c -o init/main.o init/main.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
make -C  kernel
make[1]: Entering directory `/usr/src/linux-2.2.17/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.2.17/kernel'
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -DEXPORT_SYMTAB -c signal.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -DEXPORT_SYMTAB -c ksyms.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -fno-omit-frame-pointer -c -o sched.o sched.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o dma.o dma.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o fork.o fork.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o exec_domain.o exec_domain.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o panic.o panic.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o printk.o printk.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o sys.o sys.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o module.o module.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o exit.o exit.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o itimer.o itimer.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o info.o info.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o time.o time.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o softirq.o softirq.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o resource.o resource.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o sysctl.o sysctl.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o acct.o acct.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o capability.o capability.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o kmod.o kmod.c
rm -f kernel.o
ld -m elf_i386  -r -o kernel.o signal.o ksyms.o sched.o dma.o fork.o
exec_domain.o panic.o printk.o sys.o module.o exit.o itimer.o info.o time.o
softirq.o resource.o sysctl.o acct.o capability.o kmod.o
make[2]: Leaving directory `/usr/src/linux-2.2.17/kernel'
make[1]: Leaving directory `/usr/src/linux-2.2.17/kernel'
make -C  drivers
make[1]: Entering directory `/usr/src/linux-2.2.17/drivers'
make -C block
make[2]: Entering directory `/usr/src/linux-2.2.17/drivers/block'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.2.17/drivers/block'
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -DEXPORT_SYMTAB -c ll_rw_blk.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -DEXPORT_SYMTAB -c loop.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -DEXPORT_SYMTAB -c ide.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomi
t-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=
486   -c -o genhd.o genhd.c
cc: Internal error: Segmentation fault (program cpp0)
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make[3]: *** [genhd.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.17/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.17/drivers/block'
make[1]: *** [_subdir_block] Error 2
In file included from /usr/src/linux/include/linux/fs.h:270,
                 from genhd.c:25:
/usr/src/linux/include/linux/umsdos_fs_i.h:65: parse error at end of input
/usr/src/linux/include/linux/umsdos_fs_i.h:65: warning: no semicolon at end
of struct or union
make[1]: Leaving directory `/usr/src/linux-2.2.17/drivers'
make: *** [_dir_drivers] Error 2


This is the full .config that might help aswell.

CONFIG_EXPERIMENTAL=y
CONFIG_M486=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_1GB=y
CONFIG_MATH_EMULATION=y
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_QUIRKS=y
CONFIG_PCI_OLD_PROC=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_PARIDE_PARPORT=y
CONFIG_PACKET=y
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_SYN_COOKIES=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_VENDOR_3COM=y
CONFIG_EL3=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="cp437"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_3=y
CONFIG_NLS_ISO8859_15=y
CONFIG_VGA_CONSOLE=y


--
Cipriano Groenendal.




More information about the Gcc-bugs mailing list