All of lore.kernel.org
 help / color / mirror / Atom feed
* dev package non-sym link
@ 2017-11-30 18:10 Rail Shafigulin
  2017-11-30 19:41 ` Alexander Kanavin
  0 siblings, 1 reply; 5+ messages in thread
From: Rail Shafigulin @ 2017-11-30 18:10 UTC (permalink / raw)
  To: yocto

Somewhat new to Yocto. Trying to build a library. It compiled but I'm
having issues during the package task. The error output is

ERROR: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa: QA
Issue: -dev package contains non-symlink .so: anokiwavelib-dev path
'/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/packages-split/anokiwavelib-dev/usr/lib/libAnokiWave.so'
[dev-elf]
ERROR: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa: QA run
found fatal errors. Please consider fixing them.
ERROR: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa:
Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/someuser/projects/petalinux-build-system/petalinux-build-env/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/temp/log.do_package_qa.5765
ERROR: Task (/home/someuser/projects/petalinux-build-system/sources/core/../meta-customlayer/recipes-anokiwave/lib/anokiwavelib_git.bb:do_package_qa)
failed with exit code '1'


I do understand the issue. It doesn't create links for libAnokiWave.so
and libAnokiWave.so.1. I do see the following in
/home/someuser/projects/petalinux-build-system/petalinux-build-env/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/package/usr/lib

drwxr-xr-x 3 someuser someuser  4096 Nov 29 14:10 ./
drwxr-xr-x 4 someuser someuser  4096 Nov 29 14:10 ../
drwxr-xr-x 2 someuser someuser  4096 Nov 29 14:10 .debug/
-rw-r--r-- 2 someuser someuser 45084 Nov 29 14:10 libAnokiWave.so
-rw-r--r-- 2 someuser someuser 45088 Nov 29 14:10 libAnokiWave.so.1
-rwxr-xr-x 2 someuser someuser 45092 Nov 29 14:10 libAnokiWave.so.1.0.1*

and .debug contains

drwxr-xr-x 2 someuser someuser  4096 Nov 29 14:10 ./
drwxr-xr-x 3 someuser someuser  4096 Nov 29 14:10 ../
-rwxr-xr-x 2 someuser someuser 81500 Nov 29 14:10 libAnokiWave.so*
-rwxr-xr-x 2 someuser someuser 81500 Nov 29 14:10 libAnokiWave.so.1*
-rwxr-xr-x 2 someuser someuser 81500 Nov 29 14:10 libAnokiWave.so.1.0.1*

Which is incorrect, libAnokiWave.so and libAnokiWave.so.1 are not links.

I'm not really sure how to fix this. Would appreciate any help with it.

-- 
Rail Shafigulin
Software Engineer
Esencia Technologies

-- 




*ESENCIA TECHNOLOGIES, INC.*3945 Freedom Circle, Suite #360,
Santa Clara CA 95054
________________________________________________________

Phone: +1 408 736 8284 Fax: +1 408 519 3475 
http://www.esenciatech.com | http://www.lnttechservices.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dev package non-sym link
  2017-11-30 18:10 dev package non-sym link Rail Shafigulin
@ 2017-11-30 19:41 ` Alexander Kanavin
  2017-11-30 21:46   ` Rail Shafigulin
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2017-11-30 19:41 UTC (permalink / raw)
  To: Rail Shafigulin, yocto

On 11/30/2017 08:10 PM, Rail Shafigulin wrote:
> Somewhat new to Yocto. Trying to build a library. It compiled but I'm
> having issues during the package task. The error output is
> 
> ERROR: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa: QA
> Issue: -dev package contains non-symlink .so: anokiwavelib-dev path
> '/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/packages-split/anokiwavelib-dev/usr/lib/libAnokiWave.so'
> [dev-elf]
> ERROR: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa: QA run
> found fatal errors. Please consider fixing them.
> ERROR: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa:
> Function failed: do_package_qa
> ERROR: Logfile of failure stored in:
> /home/someuser/projects/petalinux-build-system/petalinux-build-env/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/temp/log.do_package_qa.5765
> ERROR: Task (/home/someuser/projects/petalinux-build-system/sources/core/../meta-customlayer/recipes-anokiwave/lib/anokiwavelib_git.bb:do_package_qa)
> failed with exit code '1'
> 
> 
> I do understand the issue. It doesn't create links for libAnokiWave.so
> and libAnokiWave.so.1. I do see the following in
> /home/someuser/projects/petalinux-build-system/petalinux-build-env/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/package/usr/lib

Check whether the situation is the same in .../image/usr/lib. If so, 
then the upstream is installing .so files incorrectly and you need to 
figure out what it does and how to fix it so that it symlinks .so 
instead of copying or hardlinking it.

Alex


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dev package non-sym link
  2017-11-30 19:41 ` Alexander Kanavin
@ 2017-11-30 21:46   ` Rail Shafigulin
  2017-12-01  8:12     ` Alexander Kanavin
  0 siblings, 1 reply; 5+ messages in thread
From: Rail Shafigulin @ 2017-11-30 21:46 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: yocto

> Check whether the situation is the same in .../image/usr/lib. If so, then
> the upstream is installing .so files incorrectly and you need to figure out
> what it does and how to fix it so that it symlinks .so instead of copying or
> hardlinking it.
>
> Alex

Thanks for the reply. I changed do_install of my recipe

do_install () {
  install -d ${D}${libdir}/
  install -m 0755 ${S}/libAnokiWave.so.1.0.1 ${D}${libdir}
}

Now the error is gone and there are no warnings but if I check

/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/anokiwavelib/1.0+gitAUTOINC+16df62468c-r0/package/usr/lib/

all I see is libAnokiWave.so.1.0.1

If I change my install task to

do_install () {
  install -d ${D}${libdir}/
  install -m 0755 ${S}/libAnokiWave.so.1.0.1 ${D}${libdir}
  ln -s ${D}${libdir}/libAnokiWave.so.1.0.1 ${D}${libdir}/libAnokiwave.so.1
  ln -s ${D}${libdir}/libAnokiWave.so.1 ${D}${libdir}/libAnokiwave.so
}

I get the following warnings

WARNING: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa: QA
Issue: Symlink /usr/lib/libAnokiwave.so.1 in anokiwavelib points to
TMPDIR [symlink-to-sysroot]
WARNING: anokiwavelib-1.0+gitAUTOINC+16df62468c-r0 do_package_qa: QA
Issue: Symlink /usr/lib/libAnokiwave.so in anokiwavelib-dev points to
TMPDIR [symlink-to-sysroot]

I'm not sure how to fix these issues. The links, libAnokiWave.so.1 and
libAnokiWave.so, must exist but right now they don't point to the
right location or doen't exist at all.

Would appreciate any help with this.

Rail Shafigulin
Software Engineer
Esencia Technologies

-- 




*ESENCIA TECHNOLOGIES, INC.*3945 Freedom Circle, Suite #360,
Santa Clara CA 95054
________________________________________________________

Phone: +1 408 736 8284 Fax: +1 408 519 3475 
http://www.esenciatech.com | http://www.lnttechservices.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dev package non-sym link
  2017-11-30 21:46   ` Rail Shafigulin
@ 2017-12-01  8:12     ` Alexander Kanavin
  2017-12-01 19:05       ` Rail Shafigulin
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2017-12-01  8:12 UTC (permalink / raw)
  To: Rail Shafigulin; +Cc: yocto

On 11/30/2017 11:46 PM, Rail Shafigulin wrote:
> do_install () {
>    install -d ${D}${libdir}/
>    install -m 0755 ${S}/libAnokiWave.so.1.0.1 ${D}${libdir}
>    ln -s ${D}${libdir}/libAnokiWave.so.1.0.1 ${D}${libdir}/libAnokiwave.so.1
>    ln -s ${D}${libdir}/libAnokiWave.so.1 ${D}${libdir}/libAnokiwave.so
> }

You need to call 'ln -sr', then you'll get relative symlinks. Better 
yet, add some build system support to the project (meson, cmake), then 
it'll take care of these things for you.

Alex


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dev package non-sym link
  2017-12-01  8:12     ` Alexander Kanavin
@ 2017-12-01 19:05       ` Rail Shafigulin
  0 siblings, 0 replies; 5+ messages in thread
From: Rail Shafigulin @ 2017-12-01 19:05 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: yocto

On Fri, Dec 1, 2017 at 12:12 AM, Alexander Kanavin
<alexander.kanavin@linux.intel.com> wrote:
> On 11/30/2017 11:46 PM, Rail Shafigulin wrote:
>>
>> do_install () {
>>    install -d ${D}${libdir}/
>>    install -m 0755 ${S}/libAnokiWave.so.1.0.1 ${D}${libdir}
>>    ln -s ${D}${libdir}/libAnokiWave.so.1.0.1
>> ${D}${libdir}/libAnokiwave.so.1
>>    ln -s ${D}${libdir}/libAnokiWave.so.1 ${D}${libdir}/libAnokiwave.so
>> }
>
>
> You need to call 'ln -sr', then you'll get relative symlinks. Better yet,
> add some build system support to the project (meson, cmake), then it'll take
> care of these things for you.
>
> Alex

Thanks for the reply. It worked. I will definitely will look into
meson and cmake at a later time.


-- 
Rail Shafigulin
Software Engineer
Esencia Technologies

-- 




*ESENCIA TECHNOLOGIES, INC.*3945 Freedom Circle, Suite #360,
Santa Clara CA 95054
________________________________________________________

Phone: +1 408 736 8284 Fax: +1 408 519 3475 
http://www.esenciatech.com | http://www.lnttechservices.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-01 19:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-30 18:10 dev package non-sym link Rail Shafigulin
2017-11-30 19:41 ` Alexander Kanavin
2017-11-30 21:46   ` Rail Shafigulin
2017-12-01  8:12     ` Alexander Kanavin
2017-12-01 19:05       ` Rail Shafigulin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.