spiderlightning icon indicating copy to clipboard operation
spiderlightning copied to clipboard

installation fails on v0.4.1 in wsl (ubuntu 20.04) with "`GLIBC_2.32' not found (required by slight)"

Open squillace opened this issue 2 years ago • 1 comments

Description of the bug ╭── ~ ╰────▶ slight slight: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by slight) slight: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by slight) slight: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by slight)

To Reproduce the "unix" installation instructions. "unix?"

╭── ~ ╰────▶ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/deislabs/spiderlightning/main/install.sh)"

LATEST RELEASE: v0.4.1... DONLOADING FROM: https://github.com/deislabs/spiderlightning/releases/download/v0.4.1/slight-linux-x86_64.tar.gz... DOWNLOADED BINARY TAR. EXTRACTED BINARY TAR. INSTALLED BINARY. CLEANED UP.

Additional context ╭── ~ ╰────▶ uname -a Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Li

squillace avatar Apr 12 '23 16:04 squillace

I believe this is caused by us building the slight binary on the update-to-date Linux so it requires GLIBC_2.32. I am not sure what's the best practices here, but here are a few suggestions

  • build the binary on various versions of GLIBC on CI/CD pipelines
  • statically link like what we build the shim with musl https://github.com/deislabs/containerd-wasm-shims/blob/main/Makefile#L46

Mossaka avatar Apr 12 '23 16:04 Mossaka