Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Affected by binutils bug 23856 #39

Open
bingis-khan opened this issue Apr 30, 2023 · 1 comment
Open

Affected by binutils bug 23856 #39

bingis-khan opened this issue Apr 30, 2023 · 1 comment

Comments

@bingis-khan
Copy link

bingis-khan commented Apr 30, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant