[Git][haskell-team/DHG_packages][master] ghc: Add patch to fix FTBFS on alpha (Closes#: 1086830)

John Paul Adrian Glaubitz (@glaubitz) gitlab at salsa.debian.org
Fri Feb 7 17:41:10 GMT 2025



John Paul Adrian Glaubitz pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
a12a79b7 by John Paul Adrian Glaubitz at 2025-02-07T18:40:42+01:00
ghc: Add patch to fix FTBFS on alpha (Closes#: 1086830)

- - - - -


3 changed files:

- p/ghc/debian/changelog
- + p/ghc/debian/patches/alpha-fix-ieee_set_fp_control-invocation.patch
- p/ghc/debian/patches/series


Changes:

=====================================
p/ghc/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+ghc (9.6.6-4) UNRELEASED; urgency=medium
+
+  * Add patch to fix FTBFS on alpha (Closes#: 1086830)
+
+ -- John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>  Fri, 07 Feb 2025 18:37:05 +0100
+
 ghc (9.6.6-3) unstable; urgency=medium
 
   [ fanpeng <fanpeng at loongson.cn> ]


=====================================
p/ghc/debian/patches/alpha-fix-ieee_set_fp_control-invocation.patch
=====================================
@@ -0,0 +1,51 @@
+From 5099057b7eaa08d53c8ab07be0f6d626496ec79d Mon Sep 17 00:00:00 2001
+From: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
+Date: Thu, 3 Oct 2024 14:30:23 +0200
+Subject: [PATCH] rts: Fix invocation of __ieee_set_fp_control() on alpha-linux
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes the following error when building GHC on alpha-linux:
+
+rts/posix/Signals.c: In function ‘initDefaultHandlers’:
+
+rts/posix/Signals.c:709:5: error:
+     error: implicit declaration of function ‘ieee_set_fp_control’ [-Wimplicit-function-declaration]
+      709 |     ieee_set_fp_control(0);
+          |     ^~~~~~~~~~~~~~~~~~~
+    |
+709 |     ieee_set_fp_control(0);
+    |
+---
+ rts/posix/Signals.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c
+index b6bfe77f35..7c788b82b2 100644
+--- a/rts/posix/Signals.c
++++ b/rts/posix/Signals.c
+@@ -27,7 +27,7 @@
+ 
+ #if defined(alpha_HOST_ARCH)
+ # if defined(linux_HOST_OS)
+-#  include <asm/fpu.h>
++#  include <fenv.h>
+ # else
+ #  include <machine/fpu.h>
+ # endif
+@@ -721,7 +721,11 @@ initDefaultHandlers(void)
+ #endif
+ 
+ #if defined(alpha_HOST_ARCH)
++# if defined(linux_HOST_OS)
++    __ieee_set_fp_control(0);
++# else
+     ieee_set_fp_control(0);
++# endif
+ #endif
+ 
+     // ignore SIGPIPE; see #1619
+-- 
+2.39.5
+


=====================================
p/ghc/debian/patches/series
=====================================
@@ -28,3 +28,4 @@ llvm-newer-version
 hadrian-plans
 pr-13096
 7e2d3eb507da184cf3337d36715fd82a81643d91.patch
+alpha-fix-ieee_set_fp_control-invocation.patch



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/a12a79b7ce337db13f2731c95f2430971a8349e6

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/a12a79b7ce337db13f2731c95f2430971a8349e6
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20250207/913a4f3a/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list