bootstrap/4068: [linux-x86] bootstrapping on libc5 systems

Joseph S. Myers jsm28@cam.ac.uk
Tue Nov 19 16:01:00 GMT 2002


On 19 Nov 2002 bangerth@dealii.org wrote:

> Old Synopsis: bootstrap fails on older Linux (Red Hat 5.2)
> New Synopsis: [linux-x86] bootstrapping on libc5 systems

The problem systems are specifically glibc 2.0, not libc5.  For it
possibly to work the patch implied by the discussion I referenced is
needed - i.e.

--- gcc/config/i386/linux.h.orig	Fri Nov 15 14:57:12 2002
+++ gcc/config/i386/linux.h	Tue Nov 19 23:47:16 2002
@@ -228,7 +228,7 @@
    signal-turned-exceptions for them.  There's also no configure-run for
    the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H.  Using the
    target libc1 macro should be enough.  */
-#ifndef USE_GNULIBC_1
+#if !(defined (USE_GNULIBC_1) || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0))
 #include <signal.h>
 #include <sys/ucontext.h>
 

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-bugs mailing list