Skip to content

Linux ARM support #429

Closed
Closed

Description

Is it possible to add support for Linux on ARM CPUs?

Activity

  1. sean-mcmanus commented on Jan 5, 2017

    @sean-mcmanus
    Contributor

    Do you mean running VS Code on ARM CPUs? That doesn't work as far as I know. You can target an ARM CPU for debugging.

  2. atilimcetin commented on Jan 5, 2017

    @atilimcetin
    Author

    I've built VS Code on ARM Linux and can use it without any problem. But cpptools is not working well because Microsoft.VSCode.CPP.Extension.linux is a x86-64 binary. I wonder if there is a way to obtain ARM version of that executable.

  3. sean-mcmanus commented on Jan 5, 2017

    @sean-mcmanus
    Contributor

    Ok, that's interesting to know. It's theoretically possible to add, but we're not planning to currently (it hasn't shown up enough in our telemetry).

  4. atilimcetin commented on Jan 5, 2017

    @atilimcetin
    Author

    I understand. Thank you.

  5. arnaudbuy commented on Feb 24, 2018

    @arnaudbuy

    +1, I am also interested ...

  6. tehKaiN commented on Feb 3, 2019

    @tehKaiN

    At the moment of writing there are unofficial vscode builds for raspi and I had to use one to deploy some hotfixes on my app. Having this addon available in such build would simplify stuff when cross-compiling is out of option.

  7. PodyNoo commented on Feb 10, 2019

    @PodyNoo

    i would be also interested in support for Linux on ARM CPUs

  8. yorandrei commented on Mar 29, 2019

    @yorandrei

    +1 It would be great to have it work on arm

  9. 185 remaining items

  10. bigOconstant commented on Aug 3, 2020

    @bigOconstant

    Sorry my bad, my comment was not clear. I should have said 'path back to VScode'. i.e. Not meaning Visual Studio.

    We could have used Visual Studio (with or without VisualGDB) except that some of the team are on Mac's instead of Win10. Although VS is available on the Mac now it is not the same product as on Windows. VScode would have offered an IDE environment capable of running on Windows, Mac's amd indeed Linux. If were doing python to ARM64 target no problem. But with C/C++ we are currently struck with the 'ARM not supported issue'.

    There is other options for c++. I've been using kdevelop on my pi4 directly. Use what works for you and your team I just hate to see someone pay for an ide when there are so many good free one's out there.

    I do love using VSCode for everything so you don't get that context switch slow down.

  11. sean-mcmanus commented on Aug 5, 2020

    @sean-mcmanus
    Contributor

    0.30.0-insiders adds ARM (armhf) support when using the VS Code Remote Development extension (we tested it using Remote SSH). ARM64/AARCH64 support is still in progress (expected for the final 0.30.0 release). Let us know if there are other ARM targets that you would like us to add support for. Non-remote support would require VS Code to resolve issue microsoft/vscode#6442 . Our license doesn't allow using the C/C++ extension with headmelted/code-server/etc. and the debugger will explicitly disable itself -- someone could open an issue to track how many users would like the license changed if they want.

    The install steps are to download https://github.com/microsoft/vscode-cpptools/releases/download/0.30.0-insiders/cpptools-linux-armhf.vsix (on the ARM device), open VS Code (on your non-ARM remote machine), use the Remote-SSH: Connect to Host... command, use the Extensions: Install from VSIX... command and select the vsix file. After we release the final 0.30.0, those manual vsix install steps won't be required since it could be installed via the marketplace or updateChannel mechanism (which doesn't work with 0.29.0 because it has the check to disable itself for ARM before it runs the updateChannel code).

    If you find bugs, it would probably be better to create a new issue instead of adding it to this one.

    UPDATE: Our clang-format dependency on ARM currently requires libtinfo5 be installed.

  12. Misery42 commented on Aug 12, 2020

    @Misery42

    +1 using code-server on my ARM-32 Revolution Pi

  13. locked as resolved and limited conversation to collaborators on Aug 13, 2020
  14. unlocked this conversation on Aug 13, 2020
  15. sean-mcmanus commented on Aug 18, 2020

    @sean-mcmanus
    Contributor

    We encourage everyone who wants to use our extension with a local ARM release of VS Code to upvote microsoft/vscode#6442 . It is currently number 24 on VS Code's list of upvotes and behind releasing for ipad and Windows store.

  16. jgoeders commented on Aug 19, 2020

    @jgoeders

    I tried out the insiders build. It is crashing and I see these errors:

    /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools)
    /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools)
    

    My arm system is running Ubuntu 16.04. I believe (could be wrong) this is limited to libc-2.23. Any suggestions? Will this be limited to newer libc versions?

  17. Misery42 commented on Aug 21, 2020

    @Misery42

    /home/byu/.vscode-server/extensions/ms-vscode.cpptools-0.30.0-insiders/bin/cpptools: /lib/arm-linux-gnueabihf/libm.so.6:
    My arm system is running Ubuntu 16.04. I believe (could be wrong) this is limited to libc-2.23. Any suggestions? Will this be limited to newer libc versions?

    I had the same issue on Raspberry Pi, i solved it by downloading the requested version. But this should be done carefully, it can damage the system and prevent it working properly.

    http://ftp.de.debian.org/debian/pool/main/g/glibc/libc6_2.28-10_armhf.deb

    sudo dpkg -i --auto-deconfigure libc6_2.28-10_armhf.deb

    This works for me.

    UPDATE
    https://github.com/microsoft/vscode-cpptools/releases/tag/0.30.0-insiders4

  18. ablankenship10 commented on Aug 22, 2020

    @ablankenship10

    Excited to try this out when support is added for the Jetson Nano (arm64/aarch64)! Working with OpenCV is quite unpleasant without intellisense :)

  19. zengming00 commented on Sep 6, 2020

    @zengming00

    我在我的安卓手机上利用linux deploy部署了一个linux环境
    I deployed a linux environment using "linux deploy" on my Android phone

    然后通过"npm install -g code-server"安装了code-server
    Then installed code-server through "npm install -g code-server"

    发现两个问题
    Two problems found

    首先C源码无法格式化
    First, the C source code cannot be formatted

    原因是以下文件没有可执行权限
    The reason is that the following files do not have executable permissions

    ~/.local/share/code-server/extensions/ms-vscode.cpptools-0.30.0-insiders/LLVM/bin/clang-format
    

    还有libtinfo5不存在,我通过以下命令解决
    And libtinfo5 does not exist, I solved it with the following command

    chmod +x clang-format
    apt install libncurses5
    

    第二个问题是无法启动debug
    The second problem is unable to start debug

    这三个其中一个没有执行权限:mono.linux-arm64 mono.linux-armhf OpenDebugAD7
    One of these three has no executable permission: mono.linux-arm64 mono.linux-armhf OpenDebugAD7

    ~/.local/share/code-server/extensions/ms-vscode.cpptools-0.30.0-insiders/debugAdapters$ ls
    bin  framework  mono.linux-arm64  mono.linux-armhf  OpenDebugAD7
    

    ./OpenDebugAD7 是个shell脚本,会根据uname -m的结果来执行"mono.linux-arm64"或"mono.linux-armhf",在我的设备上uname -m的结果是aarch64,所以它会执行"mono.linux-arm64",但实际我设备上只能运行"mono.linux-armhf"
    ./OpenDebugAD7 is a shell script that will execute "mono.linux-arm64" or "mono.linux-armhf" according to the result of uname -m, and the result of uname -m on my device is aarch64, so It will execute "mono.linux-arm64", but actually only "mono.linux-armhf" can be run on my device

  20. sean-mcmanus commented on Sep 28, 2020

    @sean-mcmanus
    Contributor

    VS Code supports Linux ARM now on Insiders at microsoft/vscode#106289 (comment) . However, be careful about installing too many extensions, e.g. with the C/C++ Extension Pack (by Microsoft) it froze/crashed due to memory usage, but just installing the C/C++ (1.0.1) extension worked (with 300+ MB memory usage)....on a machine with 1 GB of memory.

  21. bigOconstant commented on Sep 29, 2020

    @bigOconstant

    VS Code supports Linux ARM now on Insiders at microsoft/vscode#106289 (comment) . However, be careful about installing too many extensions, e.g. with the C/C++ Extension Pack (by Microsoft) it froze/crashed due to memory usage, but just installing the C/C++ (1.0.1) extension worked (with 300+ MB memory usage).

    I've been using it on a raspberry pi with 8gigs of ram for a week and it works pretty well

  22. locked and limited conversation to collaborators on Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions