You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As far as I can tell, "the way" to approach both libc and libstdc++ compatibility is to build against the oldest standard libraries available, but load the newest at runtime. The FHS programs built against the old libc and libstdc++ are going to work fine with the newer libraries from nixpkgs. If however, by accident, the FHS standard libraries get loaded first, programs from Nixpkgs are going to start failing with missing (versioned) symbols. This is relevant e.g. when using the cuda_compat driver on NVidia Jetsons, because it impurely depends on host libraries that are apparently written in C++:
Just remember glibc and stdenv.cc.cc.lib from the Nixpkgs revision nixglhost was built with.
This comes with the disadvantage that the users should, in principle, use github:numtide/nix-gl-host with something like --override-input nixpkgs nixpkgs to ensure they're not linking libc older than the current system's.
In practice, however, it is an edge case that cuda_compat loads libstdc++ first
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As far as I can tell, "the way" to approach both libc and libstdc++ compatibility is to build against the oldest standard libraries available, but load the newest at runtime. The FHS programs built against the old libc and libstdc++ are going to work fine with the newer libraries from nixpkgs. If however, by accident, the FHS standard libraries get loaded first, programs from Nixpkgs are going to start failing with missing (versioned) symbols. This is relevant e.g. when using the
cuda_compat
driver on NVidia Jetsons, because it impurely depends on host libraries that are apparently written in C++:Describe the solution you'd like
Just remember
glibc
andstdenv.cc.cc.lib
from the Nixpkgs revision nixglhost was built with.This comes with the disadvantage that the users should, in principle, use
github:numtide/nix-gl-host
with something like--override-input nixpkgs nixpkgs
to ensure they're not linking libc older than the current system's.In practice, however, it is an edge case that
cuda_compat
loads libstdc++ firstDescribe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: