Linker error with arm-unknown-linux-musleabi

Targeting a Raspberry PI Zero W building static binaries with the target arm-unknown-linux-musleabi and I cannot work out which linker to use.

I have a entry in .cargo/config

[target.arm-unknown-linux-musleabi]
linker = "arm-linux-musleabi"

but error: linker arm-linux-musleabi not found

How do I determine which linker to use with which target?

Trial and error has lead me to arm-linux-gnueabi-gcc

Is a more important question that I do not know how to answer. There should be a document some place?

Also I am defining the linker in ~/.cargo/config. It would be much better to define it on cargo's command line. Then it could live in my build scripts where it would be under version control. For me this wasted half day searching for the magic incantation to put in ~/.cargo/config started when my config file got accidentally deleted.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.