sh4-unknown-linux-gnu-gcc drand48_r.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing -pipe -Wstrict-prototypes -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE -I../include -I/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-sh4-unknown-linux-gnu-nptl/stdlib -I/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-sh4-unknown-linux-gnu-nptl -I../sysdeps/sh/elf -I../nptl/sysdeps/unix/sysv/linux/sh/sh4 -I../sysdeps/unix/sysv/linux/sh/sh4 -I../nptl/sysdeps/unix/sysv/linux/sh -I../sysdeps/unix/sysv/linux/sh -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/sh -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sh/sh4/fpu -I../sysdeps/sh/sh4 -I../nptl/sysdeps/sh -I../sysdeps/sh -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/sh4-unknown-linux-gnu/4.5.3/include -isystem /usr/lib/gcc/sh4-unknown-linux-gnu/4.5.3/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-sh4-unknown-linux-gnu-nptl/stdlib/drand48_r.o -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-sh4-unknown-linux-gnu-nptl/stdlib/drand48_r.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-sh4-unknown-linux-gnu-nptl/stdlib/drand48_r.o In file included from ../include/math.h:3:0, from drand48_r.c:21: ../math/math.h:424:31: fatal error: bits/math-finite.h: No such file or directory compilation terminated. make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15-r3/work/build-default-sh4-unknown-linux-gnu-nptl/stdlib/drand48_r.o] Error 1
See URL
i'd just backport the fixes to gcc-4.6/gcc-4.7 rather than change glibc
looks like the fix is in 4.7.2 already, so i've pushed it out in 4.6.3 and queued it in all the other 4.6.x and 4.7.x versions
http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.6.3/gentoo/40_all_superh-mieee-default-fix-pr33135.patch?revision=1.1