This is the mail archive of the
mailing list for the glibc project.
Re: glibc-2.5 build with -Os broken on PowerPC
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: sparky at pld-linux dot org
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 2 Nov 2006 11:51:02 -0600
- Subject: Re: glibc-2.5 build with -Os broken on PowerPC
firstname.lastname@example.org wrote on 11/02/2006 11:24:43 AM:
> glibc 2.5 does not compile on PowerPC with -Os. It fails on:
> because of undefined reference to __CPU_HAS_FSQRT.
> This is because __CPU_HAS_FSQRT is defined in mathinline.h, which is not
> included if glibc is built with -Os optimization (and shouldn't be).
> My fix/hack was to force mathinline.h inclusion in e_sqrt(f).c files:
> but I've been told it isn't a good idea.
> Probably __CPU_HAS_FSQRT definitions should be moved somewere else, but
> I see no good place for it.
Builds for me with -O2 (libc default) so which gcc version are you using
and which day did you pull glibc? And what configure options?
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center