Your message dated Mon, 15 Jul 2024 12:05:37 +0000
with message-id <[email protected]>
and subject line Bug#1073159: fixed in ghc 9.6.5-1~exp2
has caused the Debian Bug report #1073159,
regarding ghc: Please include --disable-ld-override in 
EXTRA_INSTALL_CONFIGURE_FLAGS
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1073159: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073159
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: ghc
Version: 9.4.7-5
Severity: important
Tags: patch
User: [email protected]
Usertags: powerpc
X-Debbugs-Cc: [email protected]

Hi,

after debugging the segmentation faults with the unregisterised GHC on powerpc
for a long time, I finally found the culprit which is the fact that GHC is built
to default to the gold linker by default.

The gold linker is known to be broken on some architectures which is unlikely to
change in the future as the project has been abandoned by Google [1], so it has
been long disabled for several architectures in debian/rules by passing the flag
--disable-ld-override in EXTRA_CONFIGURE_FLAGS.

However, as I learnt today, this only affects the linker choice when building 
GHC
but not the default linker for the actual binary packages which still defaulted
to gold in /usr/lib/ghc/lib/settings.

As one of the upstream developers explained to me today [2], it's necessary to
pass --disable-ld-override in EXTRA_INSTALL_CONFIGURE_FLAGS as well in order to
disable gold for the binary distribution, i.e. what will end up in the Debian
package.

Thus, please modify debian/rules to also include the flag --disable-ld-override
in EXTRA_INSTALL_CONFIGURE_FLAGS:

--- debian/rules.orig   2024-06-13 11:01:23.450199875 -0700
+++ debian/rules        2024-06-13 11:01:26.318242288 -0700
@@ -76,6 +76,7 @@
 # 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)))

Also attaching a patch.

Thanks,
Adrian

> [1] https://en.wikipedia.org/wiki/Gold_(linker)
> [2] https://gitlab.haskell.org/ghc/ghc/-/issues/24986#note_570504

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.orig   2024-06-13 11:01:23.450199875 -0700
+++ debian/rules        2024-06-13 11:01:26.318242288 -0700
@@ -76,6 +76,7 @@
 # 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)))

--- End Message ---
--- Begin Message ---
Source: ghc
Source-Version: 9.6.5-1~exp2
Done: Gianfranco Costamagna <[email protected]>

We believe that the bug you reported is fixed in the latest version of
ghc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gianfranco Costamagna <[email protected]> (supplier of updated ghc 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 15 Jul 2024 13:58:17 +0200
Source: ghc
Built-For-Profiles: noudeb
Architecture: source
Version: 9.6.5-1~exp2
Distribution: experimental
Urgency: medium
Maintainer: Debian Haskell Group 
<[email protected]>
Changed-By: Gianfranco Costamagna <[email protected]>
Closes: 1073159
Changes:
 ghc (9.6.5-1~exp2) experimental; urgency=medium
 .
   [ John Paul Adrian Glaubitz ]
   * Pass --disable-ld-override in EXTRA_INSTALL_CONFIGURE_FLAGS
     (Closes: #1073159)
 .
   [ Gianfranco Costamagna ]
   * Bump required llvm-version to 18
Checksums-Sha1:
 645051e1f9dba2934d237152be13acd930dae54e 2712 ghc_9.6.5-1~exp2.dsc
 9ed75e2580560f35cb8818c8d15111b802c0aa5c 66548 ghc_9.6.5-1~exp2.debian.tar.xz
 3d1708185b12c004d7339dafc0e3bb465ea7c7e0 16500 
ghc_9.6.5-1~exp2_source.buildinfo
Checksums-Sha256:
 042d5cb19173b65edb344d5bb2e271a016173bbd40982cf10716321e3fd57691 2712 
ghc_9.6.5-1~exp2.dsc
 24438c8a1cf527a0876e98ba7ad09b961c860aab954cf4881c0e3ee50513336d 66548 
ghc_9.6.5-1~exp2.debian.tar.xz
 96947caff1efc794202b642269a33cb619d90abade40efa87a1a7b28de9b0d2b 16500 
ghc_9.6.5-1~exp2_source.buildinfo
Files:
 efc4c8ea35d6b4d5c3e90394373d94dd 2712 haskell optional ghc_9.6.5-1~exp2.dsc
 04a6db0883bf978112dc9cc038ff4aea 66548 haskell optional 
ghc_9.6.5-1~exp2.debian.tar.xz
 39ff8883887774a06e7f7df3f6af668d 16500 haskell optional 
ghc_9.6.5-1~exp2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmaVD0gACgkQ808JdE6f
XdkWWRAA3zhQ5y82XsXpRdd6C1MdVlZA7PbCzc9dCyKXbW63mJAMrKKk2Q0z1Flp
Z5/fxYSPVS6gNrtMSwlagIkJX0eeFONV5CXECacc5tH4kpIbnxLi6grNiwr2hC/e
RqGxwsraKhBhVYc3YC/uKURSSzJwgyQYxBK4GRne4dRuHc66ylt06VVSTRHOjXa8
POPbKzx3abZNWP1g4bUIlLUkcrDTf8FUU3diR8Ko3bqKHXbr63HqQS5biKAQFbGc
SLU/pjYxrzqXfZmPK/A7Zp13phhS/+Oi+vIQeMRd5o+XyBoW0wzfLmS1N26D4GyE
zmQInhnHZfygG3wen1p7iIr5fEVzwR3CuZaZb1HAye9L3133UenDMRWWc5+laCtR
pLwelZ0AceCOgZPTCailZMXu+nD/pCzEgmknJbovQQ/dbLC9T2rDh5EoIlYJqKA+
XTNg85ZaXaLk+7pau+SO1fM6NfV+nQ+nGix/TDLGfG+dJW5t1Bu1b+PBYPzFvHyR
o4DYX1DzF4VnC19x4I5o1KLVe4VLWq8sMGRB2ixHaCcBE0MfvcOEn1bl9YEE95wv
VVZIua9OXyAkeMdZkjBDiAVrVV7sUEI+74VQp15jVGC9vilK7RLQU5VvAoxJmMui
JgjoHXjalRJNxeNI+1D5k5sn9UQerMXVEN+TmO3kmSosyCupjrw=
=i4n5
-----END PGP SIGNATURE-----

Attachment: pgpS4FcovS9KF.pgp
Description: PGP signature


--- End Message ---
_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-haskell-maintainers

Reply via email to