gcc-4.7 currently FTBFS on hurd-i386 due to two things:
- hurd-changes.diff doesn't apply any more due to configuration
revamping, attached is an updated version.
- gcc assumes that glibc means nptl. The attached hurd-fixes.diff fixes
things on hurd-i386, but in the kFreeBSD case the code may have to be
disabled too, since it uses LinuxThreads instead of NPTL. I don't know
how we are supposed to detect whether LinuxThreads, NPTL, or something
else is being used.
Kernel: Linux 3.0.4 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
# DP: Traditional GNU systems don't have a /usr directory. However, Debian
# DP: systems do, and we support both having a /usr -> . symlink, and having a
# DP: /usr directory like the other ports. So this patch should NOT go
# DP: upstream.
sigfillset (&__morestack_fullmask);
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && defined(__SIGRTMIN)
/* In glibc, the first two real time signals are used by the NPTL
threading library. By taking them out of the set of signals, we
avoiding copying the signal mask in pthread_sigmask. More