-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arm-unknown-linux-gnueabihf produces armv7 output not armv6 #38570
Comments
I think this may be your cross toolchain's fault because all the Rust side is v6, AFAICT:
If you are using the
You should use the toolchain in the raspberrypi/tools repo or build your own but that targets v6. |
Thank you @japaric , that is the problem. I was using the Ubuntu toolchain, the raspberrypi one works as expected. |
I don't understand what to do. I do face a similar issue, I am trying to cross-compile to ARMv6 from Ubuntu. How am I supposed to do this? |
Any update? I also need some directions to cross-compile to ARMv6 from Ubuntu. Regards. |
Sorry, I have understood how to use it. BurntSushi/ripgrep#676 (comment) This comment told me how I should specify the linker in raspberrypi/tools. Thank you. |
I'm cross compiling on x64 Linux to a Raspberry Pi 1, Raspbian Jessie. Binaries produced by arm-unknown-linux-gnueabi target work fine, binaries from arm-unknown-linux-gnueabihf segfault in _start().
Readelf tells me that the arm-unknown-linux-gnueabihf target is actually armv7, which contradicts https://forge.rust-lang.org/platform-support.html
The text was updated successfully, but these errors were encountered: