Failed to build aarch-linux and arm-linux

I am developing a TOML Language Server and am having trouble building aarch-linux and arm-linux.

I have created a CI Workflow based on rust-analyzer, but I need your help as I have not found the cause of the problem.

The error is here.

From the error message, it seems that SSL-related compilation is failing, but it seems that apt-get is installing libraries.

Try setting the CC_aarch64-unknown-linux-gnu env var to the name of the C cross compiler for the target when running cargo. I think it is trying to use the host C compiler and then failing to find libc headers for the host. A cross compiler should look for libc headers for the target which are correctly installed.

1 Like

I followed your advice and was able to build!

Thanks!