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

Bug#811063: gcc-6: FTBFS on hurd-i386



Source: gcc-6
Version: 6-20160109-1
Severity: important
Tags: patch experimental
Usertags: hurd
User: debian-hurd@lists.debian.org

Hello,

Currently gcc-6 in experimental FTBFS on GNU/Hurd, see
https://buildd.debian.org/status/fetch.php?pkg=gcc-6&arch=hurd-i386&ver=6-201601
09-1&stamp=1452539554

The problem is a double definition of Get_Page_Size in s-osinte-gnu.ads
resulting in error: s-taprop.adb:{326,981} ambiguous operand in conversion

Attached is a diff to the patch file, ada-hurd.diff, for GNU/Hurd: ada-
hurd_update.diff. Hopefully this solves the problem. Built successfully w/o the
testsuite.

Thanks!
--- ada-hurd.diff.orig	2016-01-13 19:34:28.000000000 +0100
+++ ada-hurd.diff	2016-01-14 16:11:09.000000000 +0100
@@ -1,8 +1,8 @@
-Index: b/src/gcc/ada/s-osinte-gnu.ads
+Index: gcc-6-6-20160109/src/gcc/ada/s-osinte-gnu.ads
 ===================================================================
 --- /dev/null
-+++ b/src/gcc/ada/s-osinte-gnu.ads
-@@ -0,0 +1,802 @@
++++ gcc-6-6-20160109/src/gcc/ada/s-osinte-gnu.ads
+@@ -0,0 +1,801 @@
 +------------------------------------------------------------------------------
 +--                                                                          --
 +--                GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS               --
@@ -349,9 +349,8 @@
 +   --  returns the stack base of the specified thread. Only call this function
 +   --  when Stack_Base_Available is True.
 +
-+   --  From: /usr/include/i386-gnu/bits/shm.h __getpagesize or getpagesize??
-+   function Get_Page_Size return size_t;
-+   function Get_Page_Size return Address;
++   --  From: /usr/include/unistd.h __getpagesize or getpagesize??
++   function Get_Page_Size return int;
 +   pragma Import (C, Get_Page_Size, "__getpagesize");
 +   --  Returns the size of a page
 +
@@ -805,10 +804,10 @@
 +   pragma Convention (C, pthread_rwlock_t);
 +
 +end System.OS_Interface;
-Index: b/src/gcc/ada/gcc-interface/Makefile.in
+Index: gcc-6-6-20160109/src/gcc/ada/gcc-interface/Makefile.in
 ===================================================================
---- a/src/gcc/ada/gcc-interface/Makefile.in
-+++ b/src/gcc/ada/gcc-interface/Makefile.in
+--- gcc-6-6-20160109.orig/src/gcc/ada/gcc-interface/Makefile.in
++++ gcc-6-6-20160109/src/gcc/ada/gcc-interface/Makefile.in
 @@ -1421,6 +1421,35 @@ ifeq ($(strip $(filter-out %86 kfreebsd%
    MISCLIB = -lutil
  endif

Reply to: