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
elf-header: Init at <libc version> #46574
Conversation
@GrahamcOfBorg eval |
Any way to tell how to reproduce that eval failure? It looks like a darwin eval error, but it's in a package that isn't buildable on Darwin anyways. I suppose to work around that is why I put in the |
@grahamc ^ you know that answer? |
147a7c5
to
b57faef
Compare
Need to get the source to get elf.h
A little shim derivation to get this header for Darwin, where it is needed for cross compilation. There's no real reason to do glibc and musl like that, but as I'm maintaining it I suppose I can go overboard like that.
b57faef
to
b8ce6a3
Compare
Success on x86_64-linux (full log) Attempted: glibc Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: glibc Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: glibc Partial log (click to expand)
|
@@ -13,7 +11,7 @@ let | |||
inherit sha256; | |||
}; | |||
|
|||
ARCH = stdenvNoCC.hostPlatform.platform.kernelArch; | |||
ARCH = stdenvNoCC.hostPlatform.platform.kernelArch or (throw "missing kernelArch"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this, there's tons of eval failures in pkgs
in release.nix
. This is from downstream portable packages depending on transitive glibc
, since meta platform throwing is disabled.
Motivation for this change
This is used to build software working with ELF on platforms that don't provide that header as part of their libc. This is used for Darwin->Linux cross compilation.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)