rust (fd, bat, etc ..) and java packages are broken on my machine with WSL1 #2777
-
|
for a long time my rust apps like bat, fd and java are broken:
Ok let me check if they are wrongly compiled: But If pass:
the command works and others too .... what I miss ? If I install a package outside brew like bat (download from the release at github). the ld.so its different .. I think i missing something from the /etc/ld.so.conf.d/ but I'm not sure ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
CC @Homebrew/linux |
Beta Was this translation helpful? Give feedback.
-
|
It appears you are using Windows Subsystem for Linux (WSL). If you are using WSL v1, this is a well known issue https://github.com/Homebrew/linuxbrew-core/issues/20393, https://github.com/Homebrew/linuxbrew-core/issues/21293. I've reproduced this myself before, and noticed that someone found this interesting workaround microsoft/WSL#5875 (comment). Through some digging I did here: https://github.com/Homebrew/linuxbrew-core/pull/22620#issuecomment-854383299, it ultimately may be that this problem is due to a rather arcane issue with some ELF sections using inconsistent byte lengths for alignment: NixOS/patchelf#275. I suspect that the way WSLv1 emulates dynamic linking can't handle these unusual section alignments (similar to the problem There are probably 2 solutions to this issue:
|
Beta Was this translation helpful? Give feedback.
It appears you are using Windows Subsystem for Linux (WSL). If you are using WSL v1, this is a well known issue https://github.com/Homebrew/linuxbrew-core/issues/20393, https://github.com/Homebrew/linuxbrew-core/issues/21293. I've reproduced this myself before, and noticed that someone found this interesting workaround microsoft/WSL#5875 (comment). Through some digging I did here: https://github.com/Homebrew/linuxbrew-core/pull/22620#issuecomment-854383299, it ultimately may be that this problem is due to a rather arcane issue with some ELF sections using inconsistent byte lengths for alignment: NixOS/patchelf#275. I suspect that the way WSLv1 emulates dynamic linking can't handle these u…