Ticket #5871 (closed bug: fixed)

Opened 16 months ago

Last modified 11 months ago

Patch for compilation on Hurd

Reported by: nomeata Owned by:
Priority: normal Milestone: 7.4.3
Component: Build System Version: 7.4.1
Keywords: Cc: anton.nik@…
Operating System: Other Architecture: Unknown/Multiple
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Yes, you heard correctly. Some guys have build GHC and all the other Haskell packages in Debian on the Hurd, and only this small patch is required (Author credits go to Samuel Thibault <sthibault@…>,  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659530)

--- ./rts/Linker.c.orig	2012-02-11 23:05:17.000000000 +0100
+++ ./rts/Linker.c	2012-02-11 23:10:16.000000000 +0100
@@ -74,7 +74,7 @@
     (   defined(linux_HOST_OS    ) || defined(freebsd_HOST_OS) || \
         defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS ) || \
         defined(openbsd_HOST_OS  ) || defined(darwin_HOST_OS ) || \
-        defined(kfreebsdgnu_HOST_OS) )
+        defined(kfreebsdgnu_HOST_OS) || defined(gnu_HOST_OS))
 /* Don't use mmap on powerpc_HOST_ARCH as mmap doesn't support
  * reallocating but we need to allocate jump islands just after each
  * object images. Otherwise relative branches to jump islands can fail
@@ -90,7 +90,7 @@
 
 #endif
 
-#if defined(linux_HOST_OS) || defined(solaris2_HOST_OS) || defined(freebsd_HOST_OS) || defined(kfreebsdgnu_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS)
+#if defined(linux_HOST_OS) || defined(solaris2_HOST_OS) || defined(freebsd_HOST_OS) || defined(kfreebsdgnu_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS) || defined(gnu_HOST_OS)
 #  define OBJFORMAT_ELF
 #  include <regex.h>    // regex is already used by dlopen() so this is OK
                         // to use here without requiring an additional lib

Change History

Changed 15 months ago by lelf

  • cc anton.nik@… added
  • status changed from new to patch

Changed 11 months ago by pcapriotti

  • difficulty set to Unknown
  • milestone set to 7.4.3

Changed 11 months ago by pcapriotti

  • status changed from patch to closed
  • resolution set to fixed

Merged to HEAD (d2b538c80c00a99a51e4892dec475eae38cf9888) and stable (6fd28f6fc1c3ed38f678091188486855f648106e).

Changed 11 months ago by nomeata

Thanks!

Note: See TracTickets for help on using tickets.