Re: Compile error 2.1.97 and latest egcs ss

Thomas Drillich (drillich@uniserve.de)
Mon, 20 Apr 1998 13:03:24 +0200


Derkjan de Haan wrote:
>
> I get the following when trying to compile arch/i386/kernel/process.c:
>
> make[1]: Entering directory `/usr/src/linux-2.1.xx/arch/i386/kernel'
> gcc -D__KERNEL__ -I/usr/src/linux-2.1.xx/include -O2 -fomit-frame-pointer -pipe
> -fno-strength-reduce -mpentium -malign-loops=2 -malign-jumps=2
> -malign-functions=2 -DCPU=586 -c -o process.o process.c
> {standard input}: Assembler messages:
> {standard input}:623: Error: operands given don't match any known 386
> instruction
> make[1]: *** [process.o] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.1.xx/arch/i386/kernel'
> make: *** [linuxsubdirs] Error 2
>
> If someone wants to contact me for additional info or to run some tests, please
> reply to me personally, as I receive this list in digest form.
>
same with
>gcc -v
Reading specs from /usr/lib/gcc-lib/i586-linux/2.8.1/specs
gcc version 2.8.1
>as -v
GNU assembler version 2.9 (i586-linux), using BFD version 2.9
>ld -v
GNU ld version 2.9 (with BFD 2.9)

after I added CFLAGS += -save-temps in /usr/src/linux-2.1.xx/arch/i386/kernel/Makefile
>make
gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -save-temps -DEXPORT_SYMTAB -c i386_ksyms.c
gcc: Warning: -pipe ignored since -save-temps specified
gcc -D__KERNEL__ -I/usr/src/devel/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -save-temps -c -o process.o process.c
gcc: Warning: -pipe ignored since -save-temps specified
process.s: Assembler messages:
process.s:614: Error: operands given don't match any known 386 instruction
make[1]: *** [process.o] Error 1
make[1]: Leaving directory `/usr/src/devel/linux/arch/i386/kernel'
make: *** [linuxsubdirs] Error 2
I found:
#APP
614: movw 24(%esp),0(%ecx)
movw %ax,2(%ecx)
rorl $16,%eax
movb %al,4(%ecx)
movb $130,5(%ecx)
movb $0,6(%ecx)
movb %ah,7(%ecx)
rorl $16,%eax

suggestions ?
a compiler or gas bug ?
I don't know much about Intel Assembler.

-- 
mit freundlichem Gruss -- regards
        ,-,
       |  |         Thomas Drillich <drillich@uniserve.de>
    ___|__|            Geschäftsführer
   (___,   )           uniserve Internet & Multimedia GmbH
   (___,   )\          Sophienweg 3
   (___,   ) \         Technologiezentrum (MIT)
    (___,_,)/ \        D-59872 Meschede Germany
        \              fon: +49 291 59100 , fax: +49 291 59102

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu