Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: libstdc++.so.6 => not found despite patching #84

Open
steveej opened this issue Jul 18, 2024 · 1 comment
Open

node: libstdc++.so.6 => not found despite patching #84

steveej opened this issue Jul 18, 2024 · 1 comment

Comments

@steveej
Copy link

steveej commented Jul 18, 2024

according to the user journal the patching of the binary gets executed:

auto-fix-vscode-server[1893066]: VS Code server is being installed in /home/dev/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b...
auto-fix-vscode-server[1893066]: Patching Node.js of VS Code server installation in /home/dev/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b...

however, vscodium cannot to the remote successfully.

upon checking, the node binary is still missing a library:

[dev@x64-linux-dev-01:~]$ ldd /home/dev/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b/node
	linux-vdso.so.1 (0x00007ffc90182000)
	libdl.so.2 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libdl.so.2 (0x00007fca9d795000)
	libstdc++.so.6 => not found
	libm.so.6 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libm.so.6 (0x00007fca9d6b5000)
	libgcc_s.so.1 => /nix/store/j6n6ky7pidajcc3aaisd5qpni1w1rmya-xgcc-12.3.0-libgcc/lib/libgcc_s.so.1 (0x00007fca9d694000)
	libpthread.so.0 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libpthread.so.0 (0x00007fca9d68f000)
	libc.so.6 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libc.so.6 (0x00007fca9d4a4000)
	/lib64/ld-linux-x86-64.so.2 => /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib64/ld-linux-x86-64.so.2 (0x00007fca9d79c000)

i used the following config snippet for the remote machine. i tried omitting the nodejsPackage which hasn't made a difference.

      services.vscode-server = {
        enable = true;
        installPath = "$HOME/.vscodium-server";
        nodejsPackage = pkgs.nodejs-18_x;
      };
@steveej
Copy link
Author

steveej commented Jul 18, 2024

this issue occurred because my local vscodium had a setting for for a custom binary name:

"remote.SSH.experimental.serverBinaryName": "openvscode-server"

this it can be worked around by creating a symlink on the remote server.

[dev@x64-linux-dev-01:~/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b/bin]$ ln -s /home/dev/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b/bin/{codium,openvscode}-server

this isn't very convenient as it requires manual intervention on each update. i wonder whether it's worth adding an option for alternative binary names to this module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant