* Error compiling 2.4 with CVS gcc on Athlon
@ 2001-01-02 20:12 Ghadi Shayban
2001-01-02 20:20 ` Alan Cox
2001-01-02 20:39 ` Richard Henderson
0 siblings, 2 replies; 4+ messages in thread
From: Ghadi Shayban @ 2001-01-02 20:12 UTC (permalink / raw)
To: linux-kernel
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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Error compiling 2.4 with CVS gcc on Athlon
2001-01-02 20:12 Error compiling 2.4 with CVS gcc on Athlon Ghadi Shayban
@ 2001-01-02 20:20 ` Alan Cox
2001-01-02 20:39 ` Richard Henderson
1 sibling, 0 replies; 4+ messages in thread
From: Alan Cox @ 2001-01-02 20:20 UTC (permalink / raw)
To: Ghadi Shayban; +Cc: linux-kernel
> 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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Error compiling 2.4 with CVS gcc on Athlon
2001-01-02 20:12 Error compiling 2.4 with CVS gcc on Athlon Ghadi Shayban
2001-01-02 20:20 ` Alan Cox
@ 2001-01-02 20:39 ` Richard Henderson
2001-01-02 21:55 ` H. Peter Anvin
1 sibling, 1 reply; 4+ messages in thread
From: Richard Henderson @ 2001-01-02 20:39 UTC (permalink / raw)
To: Ghadi Shayban; +Cc: linux-kernel
On Tue, Jan 02, 2001 at 03:12:37PM -0500, Ghadi Shayban wrote:
> {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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Error compiling 2.4 with CVS gcc on Athlon
2001-01-02 20:39 ` Richard Henderson
@ 2001-01-02 21:55 ` H. Peter Anvin
0 siblings, 0 replies; 4+ messages in thread
From: H. Peter Anvin @ 2001-01-02 21:55 UTC (permalink / raw)
To: linux-kernel
Followup to: <20010102123913.A19554@twiddle.net>
By author: Richard Henderson <rth@twiddle.net>
In newsgroup: linux.dev.kernel
>
> On Tue, Jan 02, 2001 at 03:12:37PM -0500, Ghadi Shayban wrote:
> > {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
--
<hpa@transmeta.com> at work, <hpa@zytor.com> 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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-01-02 22:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-02 20:12 Error compiling 2.4 with CVS gcc on Athlon Ghadi Shayban
2001-01-02 20:20 ` Alan Cox
2001-01-02 20:39 ` Richard Henderson
2001-01-02 21:55 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox