llm-ls: GLIBC_2.32 not found when running under Ubuntu 20.04.6
Getting this:
[Error - 1:44:15 PM] The LLM VS Code server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
/home/user/.vscode-server/extensions/huggingface.huggingface-vscode-0.1.0-linux-x64/server/llm-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/user/.vscode-server/extensions/huggingface.huggingface-vscode-0.1.0-linux-x64/server/llm-ls)
/home/user/.vscode-server/extensions/huggingface.huggingface-vscode-0.1.0-linux-x64/server/llm-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/user/.vscode-server/extensions/huggingface.huggingface-vscode-0.1.0-linux-x64/server/llm-ls)
/home/user/.vscode-server/extensions/huggingface.huggingface-vscode-0.1.0-linux-x64/server/llm-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/user/.vscode-server/extensions/huggingface.huggingface-vscode-0.1.0-linux-x64/server/llm-ls)
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 28 (8 by maintainers)
Commits related to this issue
- fix: #25 — committed to kalinkrustev/llm-ls by kalinkrustev 9 months ago
- fix: #25 — committed to kalinkrustev/llm-ls by kalinkrustev 9 months ago
- fix: #25 — committed to kalinkrustev/llm-ls by kalinkrustev 9 months ago
- fix: #25 — committed to kalinkrustev/llm-ls by kalinkrustev 9 months ago
Check my fork, where I disabled the Alpine build and instead released the Ubuntu binary with statically linked GLIBC. Check the released asset llm-ls-x86_64-unknown-linux-musl.gz, it should be usable under older Ubuntu and others.
There is no need to build on Ubuntu 20.04. The build target should be x86_64-unknown-linux-musl for static linking. I did some experiments and the produced binary runs fine with this target. The bad thing is that for this target name, the build happens under Alpine and produces an Alpine binary, which overwrites the same one built on Ubuntu. Maybe some change on the binary names could help, so that musl target is released for both Alpine and Ubuntu. I am not sure if x86_64-unknown-linux-gnu has any advantage over x86_64-unknown-linux-musl.
See #33, not so perfect solution at the moment.
Well, I guess the solution would be to build on ubuntu 20.04. I’ve had issues setting up the build CI and I won’t be taking a look at this in the short term, I have too many things to do 😅 If someone wants to give it a go, you can play around with the workflows in
.github
, my inspiration came from https://github.com/rust-lang/rust-analyzer.For now the best workaround would be to compile
llm-ls
yourself, which shouldn’t be too hard:cargo build --release
You may encounter some odd compile time errors.