c/4273: Internal compiler error when compiling a kernel

resonance@bigfoot.com.au resonance@bigfoot.com.au
Sun Sep 9 02:16:00 GMT 2001

>Number:         4273
>Category:       c
>Synopsis:       Internal compiler error when compiling a kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 09 02:16:00 PDT 2001
>Originator:     Corey Spruit
>Release:        gcc-3.0.1, i686-pc-linux-gnu
Slackware linux 8.0, gcc 3.0.1, i686, Duron 950, 450meg ram, arch = k6
I was compiling a kernel today, using gcc-3.0.1 (as I just installed it), and it worked fine until:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6    -c -o acct.o acct.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6    -c -o capability.o cap
gcc -D__KERNEL__ -I/usr/src/linux-2.4.6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6    -c -o ptrace.o ptrace.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6    -c -o timer.o timer.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6    -c -o user.o user.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=k6    -DEXPORT_SYMTAB -c signal.c
signal.c: In function `kill_proc':
signal.c:716: Unrecognizable insn:
(insn 124 116 117 (parallel[ 
            (set (reg/f:SI 3 ebx [47])
                (const_int 0 [0x0]))
            (clobber (reg:CC 17 flags))
        ] ) -1 (insn_list:REG_DEP_ANTI 116 (nil))
    (expr_list:REG_UNUSED (reg:CC 17 flags)
signal.c:716: Internal compiler error in insn_default_length, at insn-attrtab.c:223
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make[2]: *** [signal.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.6/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.6/kernel'
make: *** [_dir_kernel] Error 2

You may like to refer to the kernel source for the c file, as it's just kernel 2.4.6 as can be seen. I hope I've included enough info. Thanks. I also have some more info too as follows, and note that gcc 2.95 works fine.
bash-2.05# gcc -dumpversion
bash-2.05# gcc -dumpmachine
bash-2.05# gcc-2.95.3 -dumpversion
bash-2.05# gcc-2.95.3 -dumpmachine



More information about the Gcc-bugs mailing list