Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#63224 - [ghc-static] Cannot link to static profiling libraries without dynamic reloc errors

Attached to Project: Community Packages
Opened by Joel Lathrop (joellathrop) - Thursday, 18 July 2019, 17:39 GMT
Last edited by Balló György (City-busz) - Sunday, 01 September 2019, 14:24 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

When attempting to build a Cabal project using static linking and with profiling information, I get pages and pages of linker errors. A sampling follows below:

/usr/bin/ld.gold: error: /usr/lib/ghc-8.6.5/base-4.12.0.0/libHSbase-4.12.0.0_p.a(Maybe.p_o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /usr/lib/ghc-8.6.5/base-4.12.0.0/libHSbase-4.12.0.0_p.a(Maybe.p_o): requires dynamic R_X86_64_32 reloc against 'base_DataziMaybe_mapMaybe_closure' which may overflow at runtime; recompile with -fPIC

Either I'm missing something I haven't found on the Arch Haskell wiki page, or perhaps the `ghc-static` libraries have some dynamic-linking taints to them?

Steps to reproduce:

* `sudo pacman -S ghc ghc-static cabal-install.`
* `cabal sandbox init`
* `cabal install --ghc-options='-static -prof' StateVar`

(And if it matters, installing `ghc-pristine` from the AUR and adding `--with-compiler=/usr/share/ghc-pristine/bin/ghc`, as suggested in the Arch Wiki Haskell page, makes no difference.)

Package version(s):
* ghc 8.6.5-1
* ghc-static 8.6.5-1
* cabal-install 2.4.0.0-109
This task depends upon

Loading...