Skip to contentSkip to conversation

Error compiling 2.4 with CVS gcc on Athlon

DISCUSSION Ghadi Shayban 4 participants 4 messages Jan 2, 2001

lore
Share & tools
lore
#0 lore raw

I have no idea, but I'm guessing this isn't a gcc bug. Here's where my build fails:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=athlon -c -o mmx.o mmx.c
{standard input}: Assembler messages:
{standard input}:139: Error: bad register name `%%mm0' make[2]: *** [mmx.o] Error 1
make[2]: Leaving directory `/usr/src/linux/arch/i386/lib' make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
make: *** [_dir_arch/i386/lib] Error 2

I thought maybe "mmx" is now named something else in the new gcc, but compiling it with -march=i686 doesn't change anything.

Ghadi Shayban

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 4 lines

I have no idea, but I'm guessing this isn't a gcc bug. Here's where my build fails:
{standard input}: Assembler messages:
{standard input}:139: Error: bad register name `%%mm0'

Your compiler/binutils are too old
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to Ghadi Shayban
Quoted 2 lines · Ghadi Shayban

{standard input}: Assembler messages:
{standard input}:139: Error: bad register name `%%mm0'

This is, in fact, a compiler bug. Somehow the "%%" in the source didn't print as "%" as expected.

r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to Ghadi Shayban
Followup to:  <[email protected]>
By author:    Richard Henderson <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 8 lines · Ghadi Shayban
Quoted 2 lines

{standard input}: Assembler messages:
{standard input}:139: Error: bad register name `%%mm0'

This is, in fact, a compiler bug. Somehow the "%%" in the source didn't print as "%" as expected.

Actually, gcc doesn't do % expansion (and hence %% -> %) if there are no :'s in the asm() statement. I don't know if that's the issue here, though.

-hpa

Signature · 7 lines
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/