On Tue, 2023-02-28 at 22:28 -0800, Sundeep KOKKONDA wrote:
> 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:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
>  

It is expected that the system would adjust the RUNPATH in the binary
to be relocatable so that isn't surprising.

> Also, the libLTO.so is a symlink for libLTO.so.15.

Right, so you only need to replace libTLO.so.15 and not the symlink.

>  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. 

You can avoid that with:

ERROR_QA:remove = "already-stripped"

> 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.

Adding to do_install will be much easier than trying to get the
dependencies right for that new task.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177874): 
https://lists.openembedded.org/g/openembedded-core/message/177874
Mute This Topic: https://lists.openembedded.org/mt/97113152/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