Galarius/vscode-opencl

Shipped LSP is built for x64, but what about arm?

Closed this issue · 2 comments

When this extention is installed, I got the following error message in OUTPUT:

State changed: Stopped -> Starting
Failed to initialize language server due to undefined
State changed: Starting -> Stopped
[Error - 8:20:51 AM] OpenCL Language Server client: couldn't create connection to server.
  Message: Cannot call write after a stream was destroyed
  Code: -32099 
[Info  - 8:20:51 AM] Connection to server got closed. Server will restart.
true
State changed: Stopped -> Starting
/home/khadas/.vscode-server/extensions/galarius.vscode-opencl-0.8.2/bin/linux/opencl-language-server: 1: Syntax error: word unexpected (expecting ")")
Failed to initialize language server due to undefined

Turns out my platform is ARM and the shipped LSP is built for x64:

$ file /home/khadas/.vscode-server/extensions/galarius.vscode-opencl-0.8.2/bin/linux/opencl-language-server
/home/khadas/.vscode-server/extensions/galarius.vscode-opencl-0.8.2/bin/linux/opencl-language-server: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=efcf66123e904baddeb167bbe4b83bcf557e247f, for GNU/Linux 3.2.0, not stripped

Thank you! It works now!