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
nativesdk support #236
Comments
I'm using rust for a personal project with Yocto, and I was very happy to see that meta-rust exists and adds support for building rust apps with my image.
llvm-config does exist at that path, but it seems it can't be run and I'm a bit confused where the problem is. |
Has there been any update on this? I'm having the same problem. |
Usually a strange "file not found" error is related to shared objects. Either a necessary shared object can't be found, or else the interpreter (i.e. ld-linux.so.2) can't be found. You can use readelf to dump the paths to those things and see which is the case. I thought that bitbake was supposed to fix those things up for SDK's, however |
I am also surprised to discover the SDK doesn't have I suppose an alternative workflow for manual compiles is to do
But, doing this, I find that But, if I examine the build logs for my-rust-app, in Is there something that I'm missing about using |
In the
In
to:
and that allows |
There is a pull request open to add SDK support. It works on released branches I'm told but didn't work on the master branch as of ~2 weeks ago due to a linking problems with glibc-2.33. I'll be looking into it some time in April or worst case, May. |
Is there a well-defined workflow for doing manual cross-compiles by some other method, eg
|
Not that I'm aware of.
One could also get the linker from the Yocto SDK but I haven't tried that. Maybe we should continue this discussion on the yocto email list rather than on this thread. |
This addition closes meta-rust#236 requesting the SDK support. The implementation consists on a yet minimum set of worky functionality; - Includes rustc, rustdoc and cargo. - Includes libstd and accompanying lib archives for host and for target. - Integrates with the standard environment setup script. - Integrates configurations automatically build for target. The supported build host is still AMD64 only. Note that there's no need on introducing crosssdk package as the official snapshot package serves same way as a non SDK build. Possible future directions: - Offline build: - Support pre-cached set of crates that can be vendored. - Support pre-filled cargo registry. - Support further tools like cargo-fmt, cargo-clippy, GDB support and so on. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
@rwmacleod was this conversation continued on the Yocto email list? If so, do you have a link to the email archive, please?
One may need to do
Or you may get errors like:
I'm not sure if |
I realise it's for an entirely different layer, but if it helps anyone, I was able to use the advice in this thread to configure cargo to use the rust toolchain in a Yocto SDK, and I think the steps would be much the same for meta-rust: rust-embedded/meta-rust-bin#35 Unfortunately, as I am using Yocto Langdale, I cannot use meta-rust. |
Version(s) of meta-rust
master branch, 0621067
Version(s) of poky and/or oe-core
poky 2.6.1, thud branch
Expected result
rust is in the SDK and can be used to compile rust applications with the standard sdk, built with bitbake -c populate_sdk
Actual result
meta-rust does not have support for nativesdk
The text was updated successfully, but these errors were encountered: