Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Sundeep KOKKONDA" <sundeep.kokkonda@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: Yocto reproducibilty issue :: rust-llvm binary differences
Date: Tue, 28 Feb 2023 22:28:37 -0800	[thread overview]
Message-ID: <22315.1677652117161137395@lists.openembedded.org> (raw)
In-Reply-To: <CAMKF1sp8fQHaZw=eyXD6C4qnQhLjNjZ6_upxfauEZ8jBT9egbw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3288 bytes --]

Hello,

I tried to copy the libLTO.so to ${D}. But this shows ERROR: rust-llvm-1.67.0-r0 do_package_qa: QA Issue: -dev package rust-llvm-dev contains non-symlink .so '/usr/lib/llvm-rust/lib/libLTO.so' [dev-elf] and I had a look into symlink where it points... The libLTO.so files RPATH in ${D} & sysroot-destdir are different as below,

$ objdump -x ./image/wdr/poky/buildA/tmp/work/x86_64-linux/rust-llvm-native/1.67.0-r0/recipe-sysroot-native/usr/lib/llvm-rust/lib/libLTO.so | grep 'R.*PATH'

RUNPATH /wdr/poky/buildA/tmp/work/x86_64-linux/rust-llvm-native/1.67.0-r0/recipe-sysroot-native/usr/lib:/wdr/poky/buildA/tmp/work/x86_64-linux/rust-llvm-native/1.67.0-r0/recipe-sysroot-native/lib::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

$ objdump -x ./sysroot-destdir/wdr/poky/buildA/tmp/work/x86_64-linux/rust-llvm-native/1.67.0-r0/recipe-sysroot-native/usr/lib/llvm-rust/lib/libLTO.so | grep 'R.*PATH'

RUNPATH $ORIGIN/../..:$ORIGIN/../../../../lib:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.

Also, the libLTO.so is a symlink for libLTO.so.15. So, I tried copying both libLTO.so & libLTO.so.15 but again getting below QA error:

ERROR : rust-llvm-1.67.0-r0 do_package: QA Issue: File '/usr/lib/llvm-rust/lib/libLTO.so' from rust-llvm was already stripped, this will prevent future debugging! [already-stripped]

ERROR : rust-llvm-1.67.0-r0 do_package: QA Issue: File '/usr/lib/llvm-rust/lib/libLTO.so.15' from rust-llvm was already stripped, this will prevent future debugging! [already-stripped]

WARNING : rust-llvm-1.67.0-r0 do_package: rust-llvm-liblto-1.67.0 was registered as shlib provider for libLTO.so.15, changing it to rust-llvm-dev-1.67.0 because it was built later

ERROR : rust-llvm-1.67.0-r0 do_package: Fatal QA errors were found, failing task.

So, I disabled stripping of binaries in kernel.bbclass (@line 743 : #oe.package.runstrip((kernel_image_stripped, 8, strip, extra_sections))) but still facing below errors.

WARNING : rust-llvm-1.67.0-r0 do_package: rust-llvm-liblto-1.67.0 was registered as shlib provider for libLTO.so.15, changing it to rust-llvm-dev-1.67.0 because it was built later

WARNING : rust-llvm-1.67.0-r0 do_package_qa: QA Issue: File /usr/lib/llvm-rust/lib/libLTO.so.15 in package rust-llvm-liblto contains reference to TMPDIR [buildpaths]

WARNING : rust-llvm-1.67.0-r0 do_package_qa: QA Issue: File /usr/lib/llvm-rust/lib/libLTO.so in package rust-llvm-dev contains reference to TMPDIR [buildpaths]

ERROR : rust-llvm-1.67.0-r0 do_package_qa: QA Issue: -dev package rust-llvm-dev contains non-symlink .so '/usr/lib/llvm-rust/lib/libLTO.so' [dev-elf]

ERROR : rust-llvm-1.67.0-r0 do_package_qa: Fatal QA errors were found, failing task.

I tried to do the same with by adding my own task with ' addtask patchso after do_install ' but that is also having some issues while calling that task and that is not recommended way to do it by Richard.

Is there any way I can fix it or disable these checks for my testing?

Thanks,

Sundeep K.

[-- Attachment #2: Type: text/html, Size: 29163 bytes --]

  reply	other threads:[~2023-03-01  6:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 16:47 Yocto reproducibilty issue :: rust-llvm binary differences Kokkonda, Sundeep
2023-02-21 17:51 ` [OE-core] " Alexander Kanavin
2023-02-22  3:58   ` Sundeep KOKKONDA
2023-02-22  6:11     ` Sundeep KOKKONDA
2023-02-22 11:09     ` [OE-core] " Alexander Kanavin
2023-02-22 19:45       ` Khem Raj
2023-03-01  6:28         ` Sundeep KOKKONDA [this message]
2023-03-01  6:47           ` Alexander Kanavin
2023-03-01  8:21             ` Richard Purdie
2023-03-01  8:26           ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22315.1677652117161137395@lists.openembedded.org \
    --to=sundeep.kokkonda@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox