#Trying to compile for an armv7 linux machine from windows, getting errors.

2 messages · Page 1 of 1 (latest)

frank gust
#

when trying to run cargo build --target=armv7-unknown-linux-gnueabihf

I get: rust-lld: error: unable to find library -lgcc_s rust-lld: error: unable to find library -lutil rust-lld: error: unable to find library -lrt rust-lld: error: unable to find library -lpthread rust-lld: error: unable to find library -lm rust-lld: error: unable to find library -ldl rust-lld: error: unable to find library -lc

I have a config.toml file in my .cargo folder in my project root with the following content:

   linker = "rust-lld"```

I do have GCC installed, if that makes a difference.
heavy vector
#

I don't think the issue is related to gcc, but more missing sys libs (pthread, math ... etc). also these sys libs has to be in arm architecture in order to be able to link for a arm target binary.