-
Notifications
You must be signed in to change notification settings - Fork 74
Wrong loader path for HOST and TARGET as same architecture #56
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
Comments
To double-check - this was resolved by your PR #55 correct? |
In fact, no. It still links wrong. Any idea where to look at? |
My guess is that this is caused by the native wrapper script being used for both native and target compilation. I believe native compilation gets some different options so that it links to Yocto-local copies of libraries. Do you get the same thing if the If it doesn't work using the target wrapper script his could be a much deeper issue. As far as I know there's not an existing way to specify "use this linker for build scripts" and "use this linker for the final binary" in cargo. |
Fighting with meta-rust for a while I found your layer and absolutely prefer it over meta-rust. The only problem is that I am running into the same linker issue. I also tried @OtavioS fork but it seems to be the same. Have you found any workarounds yet? |
Did this not work for you? |
I just realized your commit is not in your master branch. Stupid question: how do I get to it? |
@otavio and @nicolaiunrein, could you give a bit more detail on your final work around/solution to this problem? |
For anyone coming to this - see #97. This is currently blocked by changes to the Rust compiler itself. |
When building for an
x86-64
using anx86-64
host, our binary ends with:So when running the binary it fails to find the loader and dies badly.
The text was updated successfully, but these errors were encountered: