Bug#1101273: ghc: Pass the mcmodel=medium parameter to CC via GHC
fanpeng
fanpeng at loongson.cn
Tue Mar 25 03:07:57 GMT 2025
Package: ghc
Version: 9.6.6-4+b1
Severity: normal
X-Debbugs-Cc: fanpeng at loongson.cn
Dear Maintainer,
To ensure that GHC-driver builds default to mcmodel=medium, GHC needs
to pass this default parameter to CC without having to add it to the
compiled project.
The former commit does not ensure that all GHC-built object files have
a default model of medium, and will raise an R_LARCH_B26 overflow error.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: loong64 (loongarch64)
Kernel: Linux 6.6.34-9.2.loongarch64 (SMP w/32 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages ghc depends on:
ii dpkg 1.22.18
ii gcc 4:14.2.0-1
ii libbsd-dev 0.12.2-2
ii libc6 2.41-6
ii libc6-dev 2.41-6
ii libffi-dev 3.4.7-1
ii libffi8 3.4.7-1
ii libgmp-dev 2:6.3.0+dfsg-3
ii libgmp10 2:6.3.0+dfsg-3
ii libncurses-dev 6.5+20250216-2
ii libnuma-dev 2.0.18-1+b1
ii libnuma1 2.0.18-1+b1
ii libtinfo6 6.5+20250216-2
ii llvm-18 1:18.1.8-17
Versions of packages ghc recommends:
ii libstdc++-14-dev 14.2.0-19
Versions of packages ghc suggests:
ii ghc-doc 9.6.6-4
ii ghc-prof 9.6.6-4+b1
ii perl 5.40.1-2
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Pass-the-mcmodel-medium-parameter-to-CC-via-GHC.patch
Type: application/mbox
Size: 1025 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20250325/3bbbaa0f/attachment.mbox>
More information about the Pkg-haskell-maintainers
mailing list