SOURCES: glibc-ppc-include-mathinline.patch (NEW) - fix build on P...

sparky at pld-linux.org sparky at pld-linux.org
Sun Oct 8 21:24:58 CEST 2006


On Sun, Oct 08, 2006 at 08:34:44PM +0200, Jakub Bogusz wrote:
> On Fri, Oct 06, 2006 at 07:34:12PM +0200, sparky at pld-linux.org wrote:
> > On Fri, Oct 06, 2006 at 07:26:20PM +0200, sparky wrote:
> > > Author: sparky                       Date: Fri Oct  6 17:26:20 2006 GMT
> > > Module: SOURCES                       Tag: HEAD
> > > ---- Log message:
> > > - fix build on PowerPC
> > 
> > I can't understand why build passed on th-ppc. For me on forge and
> > gzowski it failed with same problem:
> > 
> > ../sysdeps/powerpc/fpu/e_sqrt.c: In function '__ieee754_sqrt':
> > ../sysdeps/powerpc/fpu/e_sqrt.c:173: error: '__CPU_HAS_FSQRT' undeclared (first use in this function)
> > 
> > maybe th builder is not using appropiate setarch ?
> 
> No, in case of such issue __CPU_HAS_FSQRT would be just defined to 1.
> 
> What flags did you use? -O0 or -Os?
> __USE_EXTERN_INLINES is defined in features.h with the following condition:
> 
> #v+
> /* Decide whether we can define 'extern inline' functions in headers.  */
> #if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
>     && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__
> # define __USE_EXTERN_INLINES   1
> #endif
> #v-

I see. I was using -Os.
But my fix is probably not the best one, perhaps __CPU_HAS_FSQRT
definicions should be moved somewere else (to math.h) ?

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org


More information about the pld-devel-en mailing list