[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#740153: gcc-4.9: FTBFS on hurd-i386

Source: gcc-4.9
Version: 4.9-20140218-1
Severity: important
Tags: patch experimental upstream
User: debian-hurd@lists.debian.org
Usertags: hurd


Currently gcc-4.9 fails to build on GNU/Hurd due to WCONTINUED not
being defined. The attached patch solves this problem by only using
that option as third argument to waitpid when available. This flag is
Linux-specific, and according to the Linux waitpid man page it was
introduced in 2.6.10.


--- a/src/gcc/lto/lto.c.orig	2014-02-14 19:22:14.000000000 +0100
+++ b/src/gcc/lto/lto.c	2014-02-25 20:50:20.000000000 +0100
@@ -2476,7 +2476,11 @@
   int status;
+      int w = waitpid(0, &status, WUNTRACED);
       int w = waitpid(0, &status, WUNTRACED | WCONTINUED);
       if (w == -1)
 	fatal_error ("waitpid failed");

Reply to: