-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Static musl hello-world segfaults on nixos #81987
Comments
Cannot reproduce on EndeavourOS (Arch based) - creates a statically linked binary just fine. Must be an issue related to NixOS.
|
Also can't reproduce, but on NixOS.
Running from NixOS/nixpkgs@cb5f00d -- possibly fixed "recently" (e.g. after the release of 20.09) but not backported? (Note: I used |
After some googling, seems like #74757 (probably a dupe) I have to disable PIE and then it works |
Ah, I have |
Closing since it is a upstream bug. |
I tried this code:
I expected to have it say hello world.
Instead, this happened:
Meta
rustc --version --verbose
:I am on nixos 20.09.2812.f18fbc33930 (Nightingale)
uname -a
: Linux dell 5.4.93 #1-NixOS SMP Wed Jan 27 10:47:55 UTC 2021 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: