I had gcc segfault compiling the 2.6.18 Linux Kernel retrieved from
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2.
The special details of my kernel configuration (-O0 and -ggdb3) probably play
into this, since I've never seen this error compiling Linux 2.6.18 before.
- Mike ([email protected])
1., 2., 3. GCC version, system type, GCC config options:
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
4. Exact command-line
Indeterminate, but here is the scenario:
Linux 2.6.18 Kbuild:
Debug flags:
AFLAGS_MODULE += -ggdb2
CFLAGS_MODULE += -ggdb2
AFLAGS_KERNEL += -ggdb3
CFLAGS_KERNEL += -ggdb3
Optimizations disabled:
# Commented out CFLAGS += -Os and CFLAGS += -O2
CFLAGS += -O0
Probably failed on:
CC drivers/parport/parport_pc.o
5. Compiler output:
include/linux/parport_pc.h: In function ‘parport_pc_frob_control’:
include/linux/parport_pc.h:199: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/ccN4mj5p.out file, please attach
this to your bugreport.
6. Preprocessed file
(Attached)
--
Summary: segfault on include/linux/parport_pc.h:199
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: strictlymike at gmail dot com
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39857