[RFC PATCH] glibc doesn't build with "gcc -march=i686"
Mike Frysinger
vapier@gentoo.org
Sat May 24 18:40:00 GMT 2008
On Friday 23 May 2008, Paul Pluzhnikov wrote:
> Attempting to build glibc (cvs) with CC='gcc -march=i686' results in
> errors:
>
> ../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
> ../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier for ".ifdef"
> ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
> unrecognized character is `1'
> ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
> unrecognized character is `1'
> ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
> unrecognized character is `1'
> ../sysdeps/i386/fpu/s_frexp.S:66: Error: unrecognized symbol type ""
>
> This is because gcc defines __i686 to 1 when -march=i686
>
> Attached patch fixes that, but perhaps there is a better way?
this has come up a couple of times (search the mailing list and bugzilla) and
a few diff methods have been proposed. modifying any specific .S file to
#undef something certainly is not the direction to take things though.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20080524/d9c4906d/attachment.sig>
More information about the Libc-alpha
mailing list