Fork me on GitHub
#lsp
<
2022-03-24
>
grzm12:03:31

Hello! I’m updating clojure-lsp with the linux static binaries. However, it doesn’t look like the binaries are statically compiled.

$ wget -O clojure-lsp.zip 
$ unzip clojure-lsp.zip
Archive:  clojure-lsp.zip
  inflating: clojure-lsp  
$ ./clojure-lsp 
-bash: ./clojure-lsp: No such file or directory
$ ldd clojure-lsp
        linux-vdso.so.1 (0x00007ffcf07c4000)
        libpthread.so.0 => /nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74/lib/libpthread.so.0 (0x00007fdcb78be000)
        libdl.so.2 => /nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74/lib/libdl.so.2 (0x00007fdcb78b9000)
        libc.so.6 => /nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74/lib/libc.so.6 (0x00007fdcb76fa000)
        /lib64/ld-linux-x86-64.so.2 => /nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74/lib64/ld-linux-x86-64.so.2 (0x00007fdcbf644000)

dharrigan12:03:43

Have you tried the non-statically compiled one?

dharrigan12:03:05

It does work for me, btw

dharrigan12:03:23

❯ unzip clojure-lsp-native-static-linux-amd64.zip 
Archive:  clojure-lsp-native-static-linux-amd64.zip
  inflating: clojure-lsp             

  ~/Downloads                                                                                                                                                                                                                                               
❯ ./clojure-lsp          
^C

  ~/Downloads                                                                                                                                                                                                                                          ✘ INT
❯ ./clojure-lsp --version
clojure-lsp 2022.02.23-12.12.12
clj-kondo 2022.02.09

grzm12:03:20

Interesting. With my little test script, I start getting failures with the static one with the 2022.02.01-16.53.14 release. (https://github.com/clojure-lsp/clojure-lsp/releases/tag/2022.02.01-16.53.14)

ericdallo12:03:57

Odd, we didn't change any Graal related

ericdallo12:03:02

Is there any exceptions?

ericdallo12:03:22

I use the static one with NixOS and it works

grzm12:03:47

Nope. Just the exit code.

ericdallo12:03:51

The static one is compiled with musl, so it should be a really static one

grzm12:03:17

Yeah, they’ve been working fine until 2022.02.01-16.53.14 release.

ericdallo12:03:06

Please open a issue, I have no idea why it doesn't work for you, maybe your Linux or something we changed/bumped between those versions

grzm12:03:17

Will do.

grzm12:03:59

Linux munge-munge-munge 5.4.94 #1-NixOS SMP Sat Jan 30 12:54:11 UTC 2021 x86_64 GNU/Linux