This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc build broken for SH3 error: âFE_TOWARDZEROâ undeclared


Hi

Currently glibc does not build for sh3-linux-gnu target. 
The error message I get is 

../sysdeps/ieee754/dbl-64/s_fmaf.c: In function â__fmafâ:
../sysdeps/ieee754/dbl-64/s_fmaf.c:39:15: error: âFE_TOWARDZEROâ undeclared
(first use in this function)
../sysdeps/ieee754/dbl-64/s_fmaf.c:39:15: note: each undeclared identifier is
reported only once for each function it appears in
../sysdeps/ieee754/dbl-64/s_fmaf.c:43:39: error: âFE_INEXACTâ undeclared (first
use in this function)
make[2]: *** [/export/sh3-linux-gnu/obj/glibc/math/s_fmaf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/export/src/glibc/libc/math'

I traced it down to commit below. Problem is now its using
ieee754/dbl-64/s_fmaf.c for sh3 instead of math/s_fmaf.c 
which it did before and sh3 since it does not have fpu does 
not have fenv.h. It works fine for sh4-linux

-Khem

commit 9ff8d36f27aaf390fd074976cd2e867ba41f2588
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Oct 11 09:27:05 2010 -0400

    Correct implementation of fmaf.


2010-10-07  Jakub Jelinek  <jakub@redhat.com>

       [BZ #3268]
       * math/libm-test.inc (fma_test): Add 2 fmaf tests.
       * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
       * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
       sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
       * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
       * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
       * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
       * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
       * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
       * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
       * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
       * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
       * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
       * math/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
       * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]