From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A61AEC64ED6 for ; Wed, 1 Mar 2023 06:28:45 +0000 (UTC) Subject: Re: Yocto reproducibilty issue :: rust-llvm binary differences To: openembedded-core@lists.openembedded.org From: "Sundeep KOKKONDA" X-Originating-Location: Hyderabad, Telangana, IN (183.83.146.54) X-Originating-Platform: Windows Chrome 110 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 28 Feb 2023 22:28:37 -0800 References: In-Reply-To: Message-ID: <22315.1677652117161137395@lists.openembedded.org> Content-Type: multipart/alternative; boundary="E7BFT78VwhE41NNgfvLR" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 01 Mar 2023 06:28:45 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177868 --E7BFT78VwhE41NNgfvLR Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-syml= ink .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-dest= dir 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/r= ecipe-sysroot-native/usr/lib:/wdr/poky/buildA/tmp/work/x86_64-linux/rust-ll= vm-native/1.67.0-r0/recipe-sysroot-native/lib::::::::::::::::::::::::::::::= :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::= ::::::::::::: $ objdump -x ./sysroot-destdir/wdr/poky/buildA/tmp/work/x86_64-linux/rust-l= lvm-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 futur= e 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 fu= ture debugging! [already-stripped] WARNING : rust-llvm-1.67.0-r0 do_package: rust-llvm-liblto-1.67.0 was regis= tered 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.pac= kage.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 regis= tered 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-r= ust/lib/libLTO.so.15 in package rust-llvm-liblto contains reference to TMPD= IR [buildpaths] WARNING : rust-llvm-1.67.0-r0 do_package_qa: QA Issue: File /usr/lib/llvm-r= ust/lib/libLTO.so in package rust-llvm-dev contains reference to TMPDIR [bu= ildpaths] 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, fail= ing task. I tried to do the same with by adding my own task with ' addtask patchso af= ter do_install ' but that is also having some issues while calling that tas= k and that is not recommended=C2=A0way to do it by Richard. Is there any way I can fix it or disable these checks for my testing? Thanks, Sundeep K. --E7BFT78VwhE41NNgfvLR Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">Hello,

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">=C2=A0

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">I tried to copy the=C2=A0libLTO.so=C2=A0to $= {D}. But this shows=C2=A0ERROR: rust-llvm-1.67.0-r0 do_package_qa: QA Iss= ue: -dev package rust-llvm-dev contains non-symlink .so '/usr/lib/llvm-= rust/lib/libLTO.so' [dev-elf]=C2=A0a= nd I had a look into symlink where it points... The libLTO.so files RPATH i= n ${D} & sysroot-destdir are different as below,

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #388= 89f; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">$=C2=A0objdump= -x ./image/wdr/poky/buildA/tmp/work/x86_64-linux/rust-llvm-native/1.67.0-r= 0/recipe-sysroot-native/usr/lib/llvm-rust/lib/libLTO.so | grep 'R.*PATH= '=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: blac= k; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; padd= ing: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">=C2=A0=C2=A0= RUNPATH=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0/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-sy= sroot-native/lib:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::= :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #388= 89f; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">$=C2=A0objdump= -x ./sysroot-destdir/wdr/poky/buildA/tmp/work/x86_64-linux/rust-llvm-nativ= e/1.67.0-r0/recipe-sysroot-native/usr/lib/llvm-rust/lib/libLTO.so | grep &#= 39;R.*PATH'=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: blac= k; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; padd= ing: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">=C2=A0=C2=A0= RUNPATH=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0$ORIGIN/../..:$ORIGIN= /../../../../lib:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:= .:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.= :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:= .:.:.:.:.:.:.:.:.:.:.:.:.:.=C2=A0=

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; mso-fareast-language: EN-IN; mso-bidi-languag= e: TE;">=C2=A0

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-color-alt: windowtext; mso-= fareast-language: EN-IN; mso-bidi-language: TE;">Also, the libLTO.so is a s= ymlink for libLTO.so.15. So,=C2=A0I tried copying both libLTO.so & l= ibLTO.so.15 but again getting below QA error:

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #aa5= 555; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">ERROR:=C2=A0rust= -llvm-1.67.0-r0 do_package: QA Issue: File '/usr/lib/llvm-rust/lib/libL= TO.so' from rust-llvm was already stripped, this will prevent future de= bugging! [already-stripped]=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #aa5= 555; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">ERROR:=C2=A0rust= -llvm-1.67.0-r0 do_package: QA Issue: File '/usr/lib/llvm-rust/lib/libL= TO.so.15' from rust-llvm was already stripped, this will prevent future= debugging! [already-stripped]=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #949= 20c; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">WARNING:=C2=A0= ru= st-llvm-1.67.0-r0 do_package: rust-llvm-liblto-1.67.0 was registered as shl= ib provider for libLTO.so.15, changing it to rust-llvm-dev-1.67.0 because i= t was built later=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #aa5= 555; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">ERROR:=C2=A0rust= -llvm-1.67.0-r0 do_package: Fatal QA errors were found, failing task.=C2=A0

<= span style=3D"mso-ascii-font-family: Calibri; mso-fareast-font-family: '= ;Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family= : Calibri; color: black; mso-fareast-language: EN-IN; mso-bidi-language: TE= ;">=C2=A0

<= u>So, I disabled stripping of binaries in=C2=A0k= ernel.bbclass (@line 743 : #oe.package.runstrip((kernel_image_stripped, 8, = strip, extra_sections)))=C2=A0but still facing below errors.

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #949= 20c; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">WARNING:=C2=A0= ru= st-llvm-1.67.0-r0 do_package: rust-llvm-liblto-1.67.0 was registered as shl= ib provider for libLTO.so.15, changing it to rust-llvm-dev-1.67.0 because i= t was built later=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #949= 20c; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">WARNING:=C2=A0= ru= st-llvm-1.67.0-r0 do_package_qa: QA Issue: File /usr/lib/llvm-rust/lib/libL= TO.so.15 in package rust-llvm-liblto contains reference to TMPDIR [buildpat= hs]=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #949= 20c; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">WARNING:=C2=A0= ru= st-llvm-1.67.0-r0 do_package_qa: QA Issue: File /usr/lib/llvm-rust/lib/libL= TO.so in package rust-llvm-dev contains reference to TMPDIR [buildpaths]=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #aa5= 555; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">ERROR:=C2=A0rust= -llvm-1.67.0-r0 do_package_qa: QA Issue: -dev package rust-llvm-dev contain= s non-symlink .so '/usr/lib/llvm-rust/lib/libLTO.so' [dev-elf]=C2=A0

<= span style=3D"font-size: 10.0pt; font-family: Consolas; mso-fareast-font-fa= mily: 'Times New Roman'; mso-bidi-font-family: Calibri; color: #aa5= 555; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0cm; pa= dding: 0cm; mso-fareast-language: EN-IN; mso-bidi-language: TE;">ERROR:=C2=A0rust= -llvm-1.67.0-r0 do_package_qa: Fatal QA errors were found, failing task.=C2=A0

<= br/>I tried to do the same with by adding m= y own task with 'addtask patchso aft= er do_install' but that is also ha= ving some issues while calling that task and that is not recommended=C2=A0w= ay to do it by Richard.

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; border: none windowtext 1.0pt; = mso-border-alt: none windowtext 0cm; padding: 0cm; mso-fareast-language: EN= -IN; mso-bidi-language: TE;">Is there any way I can fix it or disable these= checks for my testing?

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">=C2=A0

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">=C2=A0

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">Thanks,

<= span style=3D"font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-fareas= t-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; m= so-bidi-font-family: Calibri; color: black; mso-fareast-language: EN-IN; ms= o-bidi-language: TE;">Sundeep K.

--E7BFT78VwhE41NNgfvLR--