ghc-musl icon indicating copy to clipboard operation
ghc-musl copied to clipboard

Affected by binutils bug 23856

Open bingis-khan opened this issue 1 year ago • 1 comments

Attempting to compile my program with musl. Attaching relevant --verbose output.

GHC: 9.2.7 (newest LTS) Stack: 2.7.5

Using the provided command:

stack build \
  --ghc-options ' -static -optl-static -optl-pthread -fPIC' \
  --docker --docker-image "utdemir/ghc-musl:v25-ghc925" \
  --no-nix --verbose
2023-04-30 06:45:56.375059: [debug] checking for -ld.lld... no
2023-04-30 06:45:56.375201: [debug] checking for ld.lld... no
2023-04-30 06:45:56.375374: [debug] checking for -ld.gold... no
2023-04-30 06:45:56.375602: [debug] checking for ld.gold... ld.gold
2023-04-30 06:45:56.404717: [debug] checking whether C compiler supports -fuse ld=gold... yes
2023-04-30 06:45:56.571227: [error] Segmentation fault (core dumped)
2023-04-30 06:45:56.571390: [error] configure: error: The ld.gold linker is affected by binutils bug 23856; please specify a non-broken linker by passing LD=/path/to/ld to ./configure
2023-04-30 06:45:56.571505: [debug] checking whether ld.gold exhibits weak relocation bug (binutils 23856)... affected
2023-04-30 06:45:56.585845: [error] Received ExitFailure 1 when running
Raw command: /home/bob/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-9.2.7.temp/ghc-9.2.7/configure --prefix=/home/bob/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-9.2.7/
Run from: /home/bob/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-9.2.7.temp/ghc-9.2.7/

The bug in question refers to "New: Executables linked with gold against musl segfault".

bingis-khan avatar Apr 30 '23 06:04 bingis-khan

PS: Any info about uploading the newest versions of ghc-musl to dockerhub?

bingis-khan avatar Apr 30 '23 06:04 bingis-khan