-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Alacritty does not include glibc in rpath #219213
Comments
AFAIU I suspect you are loading wrong |
I think I've seen something like that with What I was doing instead, is appending That's an example of what I do for other package using the exact same dependencies as alacritty.
Which makes it start when |
I think the correct way to override default search paths of |
https://github.com/nixpkgs-architecture/issues/issues/15 is a related issue in nixpkgs-architecture component. |
The |
I think Initial report claims |
But I think it's sort of expected given that you I might be not experienced here, but if you
With all the libs alacritty wants. Be aware, it's
@blucoat Could you |
Running it under |
I encountered this too, and cheated with |
I do something like that in my overlay, works in my cases with cross https://git.sr.ht/~kchibisov/nixos-config/tree/main/item/overlay/alacritty.nix#L107 , setting |
Yeah, I agree |
Unfortunately there are serious problems with the Fortunately there is a fix: #238154. Now that that is taken care of I will work on this issue next. @kchibisov, I think you have the right strategy with this idea:
... that is the first thing I will try. |
As reported by @blucoat in NixOS#219213 alacritty's RPATH is missing many of the libraries which it links to, including for example glibc. The problem was diagnosed by @kchibisov as being caused by alacritty's use of `--set-rpath` (which completely replaces the rpath) instead of `--add-rpath` (which adds additional entries to the rpath): NixOS#219213 (comment) This commit implements @kchibisov's idea to change `--set-rpath` to `--add-rpath`: NixOS#219213 (comment) Closes NixOS#219213
Describe the bug
Alacritty has the wrong RPATH. It does not include glibc or libgcc, which causes it to use the system's libraries on non-nixos systems.
This is likely because the derivation for Alacritty sets RPATH manually, and does not include these libraries (probably just an oversight, since these are normally taken care of by
stdenv.mkDerivation
).Steps To Reproduce
Notice that
libgcc_s
,libm
andlibc
all end up using system libraries. This is because the runpath is wrong:Expected behavior
Alacritty should link to the libc in the nix store at runtime.
Notify maintainers
@Br1ght0ne @Mic92 @Ma27
Metadata
The text was updated successfully, but these errors were encountered: