JuliaPackaging / BinaryBuilder.jl

Binary Dependency Builder for Julia
https://binarybuilder.org
Other
392 stars 101 forks source link

Dynamic Loader (ELF interpreter) not working under NixOS #1214

Closed schlichtanders closed 2 years ago

schlichtanders commented 2 years ago

The documentation states that the BinaryBuilder.jl julia binaries are meant to be run on every linux where julia can be installed.

On NixOS there is julia installable (called julia-bin), but the binarybuild packages sometimes fail, because of dynamic linking and assumptions on the linux file system.

See the following issues for concrete failures and nixos-specific explanations of the error

The linked nixos resources for explanation are:

It would be great to have a full julia support on NixOS in the near future.

giordano commented 2 years ago

See https://github.com/JuliaPackaging/Yggdrasil/issues/5022 and https://github.com/JuliaPackaging/Yggdrasil/issues/4046

schlichtanders commented 2 years ago

Thank you so much for the additional link 5022, as it indeed referred to the discourse thread https://discourse.nixos.org/t/making-lib64-ld-linux-x86-64-so-2-available/19679/2 where two generic fixes for Julia on Nixos are listed

schlichtanders commented 2 years ago

To summarize: the only missing piece is the hardcoded dependency on /lib64/ld-linux-x86-64.so.2 if this could be solved without using a hard-coded path, it would run under NixOS without the above mentioned fixes

giordano commented 2 years ago

All other distributions on this planet need that hardcode path.