This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC PATCH] glibc doesn't build with "gcc -march=i686"
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 24 May 2008 12:07:54 +0200
- Subject: Re: [RFC PATCH] glibc doesn't build with "gcc -march=i686"
- References: <8ac60eac0805231437v6fc087e4t72c7d1a663d5c9d3@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, May 23, 2008 at 02:37:38PM -0700, 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?
Don't do that? Put -march=i686 instead into CFLAGS.
Jakub