gcc 2.8.1, APM, kernel 2.1.12x (Was: Re: linux-kernel-digest V1 #2658)

Stephen Rothwell (Stephen.Rothwell@canb.auug.org.au)
Thu, 8 Oct 1998 17:34:35 +1000 (EST)


> From: Victor Stanescu <bruno@Heineken.lmn.pub.ro>
> Date: Thu, 8 Oct 1998 17:10:46 +1000
>
> when i try to compile the 2.1.123 kernel with gcc 2.8.1 i get this error:
> ---------------------------------------------------------
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486
> -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686
> -DEXPORT_SYMTAB -c apm.c
> apm.c: In function apm_get_event':
> apm.c:474: fixed or forbidden register was spilled.
> This may be due to a compiler bug or to impossible asm
> statements or clauses.
> cpp: output pipe has been closed
> make[1]: *** [apm.o] Error 1
> make[1]: Leaving directory /usr/src/linux/arch/i386/kernel'
> make: *** [_dir_arch/i386/kernel] Error 2
> ----------------------------------------------------------
> but using gcc 2.7.2.3 it is all ok. anybody knows what is the problem?

I am told this is a bug in gcc 2.8.1. Linus says "upgrade to 2.7.2.3" :-)

There is a patch on my web page to allow this to compile. This
patch will be in 2.1.125.

Cheers,
Stephen Rothwell
http://www.canb.auug.org.au/~sfr/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/