Skip to contentSkip to conversation

3.0.2 fails to build linux-2.4.13-ac5, 8139.c

DISCUSSION Samium Gromoff 3 participants 3 messages Nov 2, 2001

lore
Share & tools
lore
#0 lore raw

Hello folks, got a following issue:
make[3]: Entering directory `/usr/src/linux/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -c -o 8139too.o 8139too.c
8139too.c: In function `netdev_ethtool_ioctl':
8139too.c:2432: Unrecognizable insn:
(insn/i 609 1066 1063 (parallel[

            (set (reg:SI 6 ebp)
                (asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl $0,%0") ("=&r") 0[
                        (reg/v:SI 1 edx [165])
                        (mem:SI (plus:SI (reg/f:SI 6 ebp)
                                (const_int -352 [0xfffffea0])) 0)
                        (mem/s:SI (plus:SI (reg:SI 0 eax [173])
                                (const_int 12 [0xc])) 0)
                    ]
                    [
                        (asm_input:SI ("1"))
                        (asm_input:SI ("g"))
                        (asm_input:SI ("g"))
                    ]  ("/usr/src/linux/include/asm/uaccess.h") 558))
            (set (reg/v:SI 1 edx [165])
                (asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl $0,%0") ("=r") 1[
                        (reg/v:SI 1 edx [165])
                        (mem:SI (plus:SI (reg/f:SI 6 ebp)
                                (const_int -352 [0xfffffea0])) 0)
                        (mem/s:SI (plus:SI (reg:SI 0 eax [173])
                                (const_int 12 [0xc])) 0)
                    ]
                    [
                        (asm_input:SI ("1"))
                        (asm_input:SI ("g"))
                        (asm_input:SI ("g"))
                    ]  ("/usr/src/linux/include/asm/uaccess.h") 558))
            (clobber (reg:QI 19 dirflag))
            (clobber (reg:QI 18 fpsr))
            (clobber (reg:QI 17 flags))
        ] ) -1 (insn_list 595 (insn_list 602 (nil)))
    (nil))

8139too.c:2432: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8364 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[3]: *** [8139too.o] Error 1
make[3]: Leaving directory `/usr/src/linux/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers/net'
make[1]: *** [_subdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_dir_drivers] Error 2

#1 lore raw
Quoted 4 lines

8139too.c:2432: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8364 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

You reported the bug to the wrong place. Its a compiler bug not a kernel bug. See the URL given for gcc bug reporting info

#2 lore raw
In reply to Samium Gromoff
Quoted 7 lines · Alan Cox
Quoted 4 lines

8139too.c:2432: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8364 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

You reported the bug to the wrong place. Its a compiler bug not a kernel bug.

Interesting though: I had exactly the same error with gcc 3.0.1, but for me 3.0.2 has compiled that file correctly in a couple of 13-ac releases, including -ac5. The resulting kernels are about 8% bigger, and seem a trifle slower, than the same ones compiled with 2.95.3 -- IIRC other people have found the same, so maybe the easy fix is to wait a few versions before using gcc 3 for kernel compilation.

Signature · 2 lines
| G r e g  L o u i s          | gpg public key:      |
|   http://www.bgl.nu/~glouis |   finger [email protected] |