Package: gcc-4.7 Version: 4.7-20111217-1 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hello, 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. Samuel -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) 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. --- config.gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/src/gcc/config.gcc (révision 182461) +++ b/src/gcc/config.gcc (copie de travail) @@ -583,7 +583,7 @@ *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu) :;; *-*-gnu*) - native_system_header_dir=/include + # native_system_header_dir=/include ;; esac # glibc / uclibc / bionic switch.
--- generic-morestack.c.orig 2011-12-19 21:14:52.000000000 +0100 +++ generic-morestack.c 2011-12-19 21:15:35.000000000 +0100 @@ -507,7 +507,7 @@ sigemptyset (&__morestack_initial_sp.mask); 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