[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343054: gcc-3.3: Invalid x86 assembler code compiling kernel 2.4.27



Package: gcc-3.3
Version: 1:3.3.6-10
Severity: important

Compiling the 2.4.27 kernel from the Debian kernel-source-2.4.27
package, version 2.4.27-11:

make[2]: Entering directory `/sw/WORK/Debian/Kernel/kernel-source-2.4.27/arch/i386/kernel'
gcc-3.3 -D__KERNEL__ -I/sw/WORK/Debian/Kernel/kernel-source-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon   -nostdinc -iwithprefix include -DKBUILD_BASENAME=process  -c -o process.o process.c
{standard input}: Assembler messages:
{standard input}:747: Error: suffix or operands invalid for `mov'
{standard input}:748: Error: suffix or operands invalid for `mov'
{standard input}:839: Error: suffix or operands invalid for `mov'
{standard input}:840: Error: suffix or operands invalid for `mov'
{standard input}:881: Error: suffix or operands invalid for `mov'
{standard input}:882: Error: suffix or operands invalid for `mov'
{standard input}:884: Error: suffix or operands invalid for `mov'
{standard input}:896: Error: suffix or operands invalid for `mov'
make[2]: *** [process.o] Error 1

The minimal command line producing this error is
gcc-3.3 -D__KERNEL__ -I/sw/WORK/Debian/Kernel/kernel-source-2.4.27/include -c -o process.o process.c

The offending lines in the assembler code are

	movl %fs,636(%ebx)
	movl %gs,640(%ebx)
	movl %fs,36(%ebx)
	movl %gs,40(%ebx)
	movl %fs,12(%edi)
	movl %gs,16(%edi)
1:	movl 12(%esi),%fs
1:	movl 16(%esi),%gs

I tried gcc-3.4, but it won't compile process.c.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-lpc.7.k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages gcc-3.3 depends on:
ii  binutils             2.16.1cvs20051117-1 The GNU assembler, linker and bina
ii  cpp-3.3              1:3.3.6-10          The GNU C preprocessor
ii  gcc-3.3-base         1:3.3.6-10          The GNU Compiler Collection (base 
ii  libc6                2.3.5-8             GNU C Library: Shared libraries an
ii  libgcc1              1:4.0.2-5           GCC support library

Versions of packages gcc-3.3 recommends:
ii  libc6-dev                     2.3.5-8    GNU C Library: Development Librari

-- no debconf information



Reply to: