[Git][haskell-team/DHG_packages][experimental] ghc: Use bfd instead of gold
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Mon Aug 26 10:14:24 BST 2024
Ilias Tsitsimpis pushed to branch experimental at Debian Haskell Group / DHG_packages
Commits:
95dd7211 by Ilias Tsitsimpis at 2024-08-26T11:32:04+03:00
ghc: Use bfd instead of gold
The gold linker is abandoned and broken on many Debian platforms.
- - - - -
2 changed files:
- p/ghc/debian/changelog
- p/ghc/debian/rules
Changes:
=====================================
p/ghc/debian/changelog
=====================================
@@ -4,8 +4,9 @@ ghc (9.6.6-1~exp4) experimental; urgency=medium
* Bump required LLVM version to 18
* Backport upstream patch to fix incorrect use of word-sized types on
32-bit systems
+ * Use system's default linker (bfd) instead of gold (Closes: #1079099)
- -- Ilias Tsitsimpis <iliastsi at debian.org> Thu, 15 Aug 2024 19:58:52 +0300
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Mon, 26 Aug 2024 11:31:53 +0300
ghc (9.6.6-1~exp3) experimental; urgency=medium
=====================================
p/ghc/debian/rules
=====================================
@@ -52,6 +52,16 @@ else
BUILD_CROSS = NO
endif
+# Use system's default ld (ld.bfd) rather than ld.gold.
+# gold is abandoned and broken on many Debian platforms.
+# See also:
+# https://bugs.debian.org/1079099
+# https://gitlab.haskell.org/ghc/ghc/-/issues/22215
+# https://gitlab.haskell.org/ghc/ghc/-/commit/c702696258f
+# https://gitlab.haskell.org/ghc/ghc/-/issues/25093
+EXTRA_CONFIGURE_FLAGS += --disable-ld-override
+EXTRA_INSTALL_CONFIGURE_FLAGS += --disable-ld-override
+
# From GHC 8.10 and later, native code generator support for legacy x87
# floating point coprocessor has been removed. GHC now only support floating
# point via SSE2. This causes a baseline violation on Debian for i386 where
@@ -66,18 +76,6 @@ ifneq (,$(filter powerpc, $(DEB_HOST_ARCH)))
EXTRA_HADRIAN_FLAGS += "*.*.ghc.hs.opts += -optc--param -optcggc-min-expand=10 -optc-O3"
endif
-# Use system's default ld (ld.bfd) rather than ld.gold, which fails for
-# haskell-cryptohash-sha256 on mips/mipsel. For more information, see
-# https://bugs.debian.org/901947
-# NOTE: This should probably be removed, and revert back to using ld.gold,
-# once #901947 has been fixed.
-# Do the same for powerpcspe, due to https://bugs.debian.org/904915
-# Do the same for sparc64, due to https://bugs.debian.org/908998
-# See also https://bugs.debian.org/1056636
-ifneq (,$(filter mips mipsel powerpc powerpcspe sparc64, $(DEB_HOST_ARCH)))
- EXTRA_CONFIGURE_FLAGS += --disable-ld-override
- EXTRA_INSTALL_CONFIGURE_FLAGS += --disable-ld-override
-endif
ifneq (,$(filter armhf, $(DEB_HOST_ARCH)))
EXTRA_HADRIAN_FLAGS += "*.*.ghc.hs.opts += -D__ARM_PCS_VFP"
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/95dd72119dd044b87931d252ff5a6f84c3dcc590
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/95dd72119dd044b87931d252ff5a6f84c3dcc590
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/20240826/75705014/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list