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

libstdc++.so.6 not found for haskell binary #573

Open
polyrod opened this issue Jul 25, 2024 · 1 comment
Open

libstdc++.so.6 not found for haskell binary #573

polyrod opened this issue Jul 25, 2024 · 1 comment
Labels
P4 unimportant: consider wontfix or other priority type: bug

Comments

@polyrod
Copy link

polyrod commented Jul 25, 2024

Hi,

to reproducably build with bazel and nix i followed the guide at
https://rules-haskell.readthedocs.io/en/latest/haskell-use-cases.html.

As shown in the guide in section "Containerization with rules_oci",
I used nixpkgs_package to prepare a haskell base image for the projects docker container.
it worked until the project grew and pulled more dependencies.
These i added to the contents list in the dockerTools.buildLayeredImage function.

grafik

Now i am at the point where the binary in the container won't run due to missing
libstdc++.so.6 runtime dependency.

I added stdenv.cc.cc.libs to the "contents list" and the container was build successfully, yet the binary still refuses to run.

grafik

i checked the container fs and despite there is libstdc++.so.6 under /nix/store inside the container image, even if all library dependencies gotten rewritten to libraries in the nix store,
libstdc++.so.6 did not.

grafik

Expected behavior
binary should find libstdc++.so.6.

Environment

  • Debian + docker:
@malt3
Copy link
Collaborator

malt3 commented Nov 29, 2024

Can you provide a minimal reproducer for this?
I would like to provide a fix, but I'm not sure I can get into the same state.

@malt3 malt3 added the P4 unimportant: consider wontfix or other priority label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P4 unimportant: consider wontfix or other priority type: bug
Projects
None yet
Development

No branches or pull requests

2 participants