Open sefidel opened 3 years ago
This does not seem to work. Same result before and after patching.
❯ strace ./vadimcn.vscode-lldb-1.6.10/adapter/codelldb
execve("./vadimcn.vscode-lldb-1.6.10/adapter/codelldb", ["./vadimcn.vscode-lldb-1.6.10/ada"...], 0x7ffc66f38c20 /* 88 vars */) = -1 ENOENT (No such file or directory)
strace: exec: No such file or directory
+++ exited with 1 +++
Also no luck installing and running this extension in nix-shell -p zlib
.
vscode-fhs is a workaround.
CODELLDB=~/.vscode-oss/extensions/vadimcn.vscode-lldb-1.10.0-universal/adapter/codelldb
patchelf --set-interpreter /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/ld-linux-x86-64.so.2 "$CODELLDB"
patchelf --add-rpath /nix/store/lprrvg44cyn9ajpq77lh7rlnp4kzdqzs-zlib-1.3/lib "$CODELLDB"
patchelf --add-needed libz.so.1 "$CODELLDB"
"$CODELLDB" -V
While the first 3 patchelf command makes the binary "start", it immediately quits with error regarding libz. I was able to get it to work after running those 3 commands, so I think it'd be better to add those to the wiki:
where
LIBZ
is a path to libz.so.1 e.g/nix/store/*zlib*/lib/libz.so.1