jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
279 stars 38 forks source link

RPI4, raspbian: installs node for wrong architecture (64-bit vs 32-bit) #167

Open jamincollins opened 4 weeks ago

jamincollins commented 4 weeks ago
$ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

The installed node binary appears to be built for ARM 64-bit:

$ cat /home/jamin/.vscodium-server/.1ff04139c0ffdd7ef85760b15566fe2de88da2ec.log
/home/jamin/.vscodium-server/bin/1ff04139c0ffdd7ef85760b15566fe2de88da2ec/bin/codium-server: 12: /home/jamin/.vscodium-server/bin/1ff04139c0ffdd7ef85760b15566fe2de88da2ec/node: not found
$ file /home/jamin/.vscodium-server/bin/1ff04139c0ffdd7ef85760b15566fe2de88da2ec/node
/home/jamin/.vscodium-server/bin/1ff04139c0ffdd7ef85760b15566fe2de88da2ec/node: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=e31c9123b36e0941edf70c03f15ddb12dda08ba2, with debug_info, not stripped

However, the OS binaries appear to be 32-bit:

$ file -L /sbin/init
/sbin/init: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=c6a746c11c85c9618f5b75053e862129a4134310, for GNU/Linux 3.2.0, stripped
AxelDuerrbaum commented 1 week ago

Exactly the same problem for me!

SSH Debian amd64 -> Raspberry armhf 32bit