[yocto] Recursions problem with pre-built versioned libraries and oe_soinstall

Burton, Ross ross.burton at intel.com
Fri Jun 28 03:53:41 PDT 2019


On Thu, 27 Jun 2019 at 17:58, John McCabe <JMcCabe at kirintec.com> wrote:

> Exception: OSError: [Errno 40] too much recursions while resolving
> '<project-base>/build/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/opendds/1.0-r0/packages-split/opendds/usr/lib/libTAO_PI_Server.so.2.2a_p15';
> loop in
> '<project-base>/build/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/opendds/1.0-r0/packages-split/opendds/usr/lib/libTAO_PI_Server.so.2.2a_p15'



> lrwxrwxrwx 1 jmccabe jmccabe 28 Jun 27 17:38 libTAO_PI_Server.so.2.2a_p15
> -> libTAO_PI_Server.so.2.2a_p15
>

You can't deny that this is a symlink loop.

Note that these are all the users of oe_libinstall in oe-core:

$ git grep -l oe_soinstall
meta/classes/utils.bbclass

So I'm not massively surprised that it's buggy.  In this case, it looks
like the library either has an incorrect soname, or the install function
isn't handling the soname being the same: it assumes that it is being
passed libfoo.so.1.2.3 which has a soname of libfoo.so.1 and will copy
libfoo.so.1.2.3 and then create libfoo.so.1 and libfoo.so symlinks.    My
recommendations:

1) Write a proper recipe instead of building code outside of OE and trying
to copy it in by hand.  Or,
2) Determine what the correct structure is regarding sonames, and either
fix oe_soinstall or just use install/ln directly.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image584022.png
Type: image/png
Size: 10433 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image743201.png
Type: image/png
Size: 341 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image289906.png
Type: image/png
Size: 370 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image885432.png
Type: image/png
Size: 490 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image679662.png
Type: image/png
Size: 641 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image231032.png
Type: image/png
Size: 642 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image469003.png
Type: image/png
Size: 675 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image018193.jpg
Type: image/jpeg
Size: 85123 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190628/6c03e9aa/attachment-0001.jpg>


More information about the yocto mailing list