thiagokokada/nix-alien

Fails to run llvm binaries, relocation errors

dankeyy opened this issue · 1 comments

Hi
I've come to need llvm16 binaries, which are not yet on nixpkgs,
so been trying out nix-alien(-ld) on some of these binaries

Basically if you'd try to run, say, llvm-addr2line on nixos it would complain about $NIX_LD not being set.

When running nix-alien-ld I get many relocation errors (which I thought alien could solve for me).
Perhaps I should mention I do have glibc, libgcc, gcc and clang installed upto their latest versions on nixpkgs stable.

Am I missing something in my usage of alien?
Or is it not possible to use alien to run a binary like that for some other reason?

Thanks

Or is it not possible to use alien to run a binary like that for some other reason?

Yes, this is out-of-scope for nix-alien. We do not patch the binaries or anything, we just create a FHSUserEnv (or set the NIX_LD_LIBRARY_PATH if using nix-alien-ld, but the result is the same) for the binary. We can't really fix binaries needing newer versions of glibc/LLVM that are not available in nixpkgs yet.

Closing this ticket since it is out-of-scope of the project.