Fails to build due to compilation without -fPIC or PIC linking only on amd64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
haskell-call-stack (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned | ||
haskell-devscripts (Ubuntu) |
Fix Released
|
Undecided
|
Steve Langasek | ||
haskell-diff (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
haskell-devscripts or GHC invokes non-PIC compilation followed by PIC linking, leading to linker errors on amd64 and armhf in the other packages listed in this bug. This is blocking the pandoc source package from migrating to the release pocket (bug #1982460).
For example, haskell-diff fails to build in kinetic-proposed only on amd64, with the following error (https:/
/usr/bin/ld.gold: error: dist-ghc/
/usr/bin/ld.gold: error: dist-ghc/
/usr/bin/ld.gold: error: dist-ghc/
collect2: error: ld returned 1 exit status
description: | updated |
summary: |
- Fails to build due to linker error only on amd64 + Fails to build due to compilation with -fPIC or PIC linking only on + amd64 |
summary: |
- Fails to build due to compilation with -fPIC or PIC linking only on + Fails to build due to compilation without -fPIC or PIC linking only on amd64 |
description: | updated |
Hello, I uploaded in my ppa a haskell-devtools with hlibrary.mk patched this way
export DEB_LDFLAGS_ MAINT_STRIP= -Wl,-Bsymbolic- functions
and now everything looks good again (except for some haskell libraries needing lto disabled too) /launchpad. net/~costamagna gianfranco/ +archive/ ubuntu/ locutusofborg- ppa/+build/ 24188956
https:/
What is your proposed solution? enable PIC in devtools?