You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like a bug in either the Rust compiler or in the infrastructure that
builds the binary releases of std for this target so I'm going to move this to
rust-lang/rust.
Hi, I'm trying to cross compile a Rust app for LEDE (fork of OpenWRT) but I'm stuck.
The application is just an
hello_world
example:These are the steps I performed:
In first place I downloaded the LEDE SDK and compiled successfully the image and the toolchain for my device (
mips-openwrt-linux-musl-gcc
).Install the Rust std using
rustup add mips-unknown-linux-musl
.Create a
.cargo/config
file in my project with the following content:Build the app using
cargo build --release --target=mips-unknown-linux-musl
.Deploy the executable to the device using
scp
.Got
Illegal instruction
On target
On host
Disabling jemalloc
If I use rust nightly and disable jemalloc as following:
Then it works! But as I keep adding code the application eventually crashes with another
Illegal instruction
. For example:Works
Does not work
I don't know what I'm doing wrong. Any help will be appreciated.
The text was updated successfully, but these errors were encountered: