On Wed, Mar 8, 2023 at 5:30 PM Sundeep KOKKONDA
<sundeep.kokko...@gmail.com> wrote:
>
> [YOCTO #14975]
> rust files are not linking on target due to missing dependencies and observed 
> below error.
> error: linker `x86_64-poky-linux-gcc` not found
>
> Added the required dependencies to run rust on target machine.
>
> Signed-off-by: Sundeep KOKKONDA <sundeep.kokko...@windriver.com>
> ---
>  meta/recipes-devtools/rust/rust_1.67.1.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-devtools/rust/rust_1.67.1.bb 
> b/meta/recipes-devtools/rust/rust_1.67.1.bb
> index 2118faec8f..f4c6d9511d 100644
> --- a/meta/recipes-devtools/rust/rust_1.67.1.bb
> +++ b/meta/recipes-devtools/rust/rust_1.67.1.bb
> @@ -13,6 +13,8 @@ DEPENDS:append:class-nativesdk = " nativesdk-rust-llvm"
>
>  DEPENDS += "rust-llvm (=${PV})"
>
> +RDEPENDS:${PN}:append:class-target = " gcc g++ binutils"
> +

I did some digging a while ago (so it may have drifted) - I got to
this list, which avoided g++

gcc gcc-symlinks binutils ${LIBC_DEPENDENCIES} libgcc-dev

What I don't understand is why doesn't gcc have a dependency on binutils?

>  # Otherwise we'll depend on what we provide
>  INHIBIT_DEFAULT_RUST_DEPS:class-native = "1"
>  # We don't need to depend on gcc-native because yocto assumes it exists
> --
> 2.34.1
>
>
> 
>


-- 
Alex Kiernan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#178188): 
https://lists.openembedded.org/g/openembedded-core/message/178188
Mute This Topic: https://lists.openembedded.org/mt/97477865/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to