All of lore.kernel.org
 help / color / mirror / Atom feed
* opencv QA issue
@ 2014-01-27 16:18 Steffen Sledz
  2014-01-27 16:29 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Sledz @ 2014-01-27 16:18 UTC (permalink / raw)
  To: openembedded-core

After the latest update of our build host (Fedora-18) the opencv build fails with an QA issue.

-------------> snip <-------------
ERROR: QA Issue: non debug package contains .debug directory: opencv-apps path /work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-apps/usr/share/OpenCV/java/.debug/libopencv_java246.so
WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
opencv-apps: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /CACHE/jenkins-workspace/hipos-dfe-closed/build-closed/tmp-eglibc/work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/temp/log.do_package.15005
NOTE: recipe opencv-2.4.6+gitAUTOINC+c5afaa4e8d-r0: task do_package: Failed
ERROR: Task 502 (/CACHE/jenkins-workspace/hipos-dfe-closed/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_package) failed with exit code '1'
-------------> snap <-------------

After some research we found that the libopencv_java246.so wasn't build before the mentioned build host update. I'm not a cmake guru, so i can't determine why it is build after this update.

But it seems to be clear that the path /usr/share/OpenCV/java/.debug/libopencv_java246.so is not covered by the package-split definition in meta-oe/recipes-support/opencv/opencv_2.4.bb:

-------------> snip <-------------
FILES_${PN} = ""
FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
FILES_${PN}-dbg += "${libdir}/.debug"
FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig"
FILES_${PN}-doc = "${datadir}/OpenCV/doc"
-------------> snap <-------------

Can someone of the maintainers please have a look at that!

Thx,
Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058


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

* Re: opencv QA issue
  2014-01-27 16:18 opencv QA issue Steffen Sledz
@ 2014-01-27 16:29 ` Khem Raj
  2014-01-28  8:09   ` Steffen Sledz
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2014-01-27 16:29 UTC (permalink / raw)
  To: Steffen Sledz; +Cc: openembeded-devel

Steffen

On Mon, Jan 27, 2014 at 8:18 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
> After the latest update of our build host (Fedora-18) the opencv build fails with an QA issue.
>
> -------------> snip <-------------
> ERROR: QA Issue: non debug package contains .debug directory: opencv-apps path /work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-apps/usr/share/OpenCV/java/.debug/libopencv_java246.so
> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
> opencv-apps: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
> ERROR: QA run found fatal errors. Please consider fixing them.
> ERROR: Function failed: do_package_qa
> ERROR: Logfile of failure stored in: /CACHE/jenkins-workspace/hipos-dfe-closed/build-closed/tmp-eglibc/work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/temp/log.do_package.15005
> NOTE: recipe opencv-2.4.6+gitAUTOINC+c5afaa4e8d-r0: task do_package: Failed
> ERROR: Task 502 (/CACHE/jenkins-workspace/hipos-dfe-closed/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_package) failed with exit code '1'
> -------------> snap <-------------
>
> After some research we found that the libopencv_java246.so wasn't build before the mentioned build host update. I'm not a cmake guru, so i can't determine why it is build after this update.
>
> But it seems to be clear that the path /usr/share/OpenCV/java/.debug/libopencv_java246.so is not covered by the package-split definition in meta-oe/recipes-support/opencv/opencv_2.4.bb:
>
> -------------> snip <-------------
> FILES_${PN} = ""
> FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
> FILES_${PN}-dbg += "${libdir}/.debug"

it should be added like something below

FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug"

can you try it out if it fixes the problem.

> FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig"
> FILES_${PN}-doc = "${datadir}/OpenCV/doc"
> -------------> snap <-------------
>
> Can someone of the maintainers please have a look at that!
>
> Thx,
> Steffen
>
> --
> DResearch Fahrzeugelektronik GmbH
> Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
> Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
> Fax: +49 30 515932-299
> Geschäftsführer: Dr. Michael Weber, Werner Mögle;
> Amtsgericht Berlin Charlottenburg; HRB 130120 B;
> Ust.-IDNr. DE273952058


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

* Re: opencv QA issue
  2014-01-27 16:29 ` Khem Raj
@ 2014-01-28  8:09   ` Steffen Sledz
  2014-01-28  8:20     ` Henning Heinold
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Sledz @ 2014-01-28  8:09 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

On 27.01.2014 17:29, Khem Raj wrote:
> On Mon, Jan 27, 2014 at 8:18 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
>> After the latest update of our build host (Fedora-18) the opencv build fails with an QA issue.
>>
>> -------------> snip <-------------
>> ERROR: QA Issue: non debug package contains .debug directory: opencv-apps path /work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-apps/usr/share/OpenCV/java/.debug/libopencv_java246.so
>> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
>> opencv-apps: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
>> ERROR: QA run found fatal errors. Please consider fixing them.
>> ERROR: Function failed: do_package_qa
>> ERROR: Logfile of failure stored in: /CACHE/jenkins-workspace/hipos-dfe-closed/build-closed/tmp-eglibc/work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/temp/log.do_package.15005
>> NOTE: recipe opencv-2.4.6+gitAUTOINC+c5afaa4e8d-r0: task do_package: Failed
>> ERROR: Task 502 (/CACHE/jenkins-workspace/hipos-dfe-closed/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_package) failed with exit code '1'
>> -------------> snap <-------------
>>
>> After some research we found that the libopencv_java246.so wasn't build before the mentioned build host update. I'm not a cmake guru, so i can't determine why it is build after this update.
>>
>> But it seems to be clear that the path /usr/share/OpenCV/java/.debug/libopencv_java246.so is not covered by the package-split definition in meta-oe/recipes-support/opencv/opencv_2.4.bb:
>>
>> -------------> snip <-------------
>> FILES_${PN} = ""
>> FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
>> FILES_${PN}-dbg += "${libdir}/.debug"
> 
> it should be added like something below
> 
> FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug"
> 
> can you try it out if it fixes the problem.

The error is gone. But there's still a QA warning.

-------------> snip <-------------
WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
opencv-dbg: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
-------------> snap <-------------

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058


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

* Re: opencv QA issue
  2014-01-28  8:09   ` Steffen Sledz
@ 2014-01-28  8:20     ` Henning Heinold
  2014-01-28  9:08       ` Stefan Herbrechtsmeier
  0 siblings, 1 reply; 6+ messages in thread
From: Henning Heinold @ 2014-01-28  8:20 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Jan 28, 2014 at 09:09:47AM +0100, Steffen Sledz wrote:
> On 27.01.2014 17:29, Khem Raj wrote:
> > On Mon, Jan 27, 2014 at 8:18 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
> >> After the latest update of our build host (Fedora-18) the opencv build fails with an QA issue.
> >>
> >> -------------> snip <-------------
> >> ERROR: QA Issue: non debug package contains .debug directory: opencv-apps path /work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-apps/usr/share/OpenCV/java/.debug/libopencv_java246.so
> >> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
> >> opencv-apps: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
> >> ERROR: QA run found fatal errors. Please consider fixing them.
> >> ERROR: Function failed: do_package_qa
> >> ERROR: Logfile of failure stored in: /CACHE/jenkins-workspace/hipos-dfe-closed/build-closed/tmp-eglibc/work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/temp/log.do_package.15005
> >> NOTE: recipe opencv-2.4.6+gitAUTOINC+c5afaa4e8d-r0: task do_package: Failed
> >> ERROR: Task 502 (/CACHE/jenkins-workspace/hipos-dfe-closed/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_package) failed with exit code '1'
> >> -------------> snap <-------------
> >>
> >> After some research we found that the libopencv_java246.so wasn't build before the mentioned build host update. I'm not a cmake guru, so i can't determine why it is build after this update.
> >>
> >> But it seems to be clear that the path /usr/share/OpenCV/java/.debug/libopencv_java246.so is not covered by the package-split definition in meta-oe/recipes-support/opencv/opencv_2.4.bb:
> >>
> >> -------------> snip <-------------
> >> FILES_${PN} = ""
> >> FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
> >> FILES_${PN}-dbg += "${libdir}/.debug"
> > 
> > it should be added like something below
> > 
> > FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug"
> > 
> > can you try it out if it fixes the problem.
> 
> The error is gone. But there's still a QA warning.
> 
> -------------> snip <-------------
> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
> opencv-dbg: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
> -------------> snap <-------------

Hm either it's a jni-lib or opencv using jna, but installing it under /usr/share is wrong. If it is a jni-lib /usr/lib/jni
would be a good place if it is used by jna /usr/lib would be sufficient.


Bye Henning


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

* Re: opencv QA issue
  2014-01-28  8:20     ` Henning Heinold
@ 2014-01-28  9:08       ` Stefan Herbrechtsmeier
  2014-02-11 12:09         ` Steffen Sledz
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Herbrechtsmeier @ 2014-01-28  9:08 UTC (permalink / raw)
  To: openembedded-devel

Am 28.01.2014 09:20, schrieb Henning Heinold:
> On Tue, Jan 28, 2014 at 09:09:47AM +0100, Steffen Sledz wrote:
>> On 27.01.2014 17:29, Khem Raj wrote:
>>> On Mon, Jan 27, 2014 at 8:18 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
>>>> After the latest update of our build host (Fedora-18) the opencv build fails with an QA issue.
>>>>
>>>> -------------> snip <-------------
>>>> ERROR: QA Issue: non debug package contains .debug directory: opencv-apps path /work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-apps/usr/share/OpenCV/java/.debug/libopencv_java246.so
>>>> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
>>>> opencv-apps: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
>>>> ERROR: QA run found fatal errors. Please consider fixing them.
>>>> ERROR: Function failed: do_package_qa
>>>> ERROR: Logfile of failure stored in: /CACHE/jenkins-workspace/hipos-dfe-closed/build-closed/tmp-eglibc/work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/temp/log.do_package.15005
>>>> NOTE: recipe opencv-2.4.6+gitAUTOINC+c5afaa4e8d-r0: task do_package: Failed
>>>> ERROR: Task 502 (/CACHE/jenkins-workspace/hipos-dfe-closed/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_package) failed with exit code '1'
>>>> -------------> snap <-------------
>>>>
>>>> After some research we found that the libopencv_java246.so wasn't build before the mentioned build host update. I'm not a cmake guru, so i can't determine why it is build after this update.
>>>>
>>>> But it seems to be clear that the path /usr/share/OpenCV/java/.debug/libopencv_java246.so is not covered by the package-split definition in meta-oe/recipes-support/opencv/opencv_2.4.bb:
>>>>
>>>> -------------> snip <-------------
>>>> FILES_${PN} = ""
>>>> FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
>>>> FILES_${PN}-dbg += "${libdir}/.debug"
>>> it should be added like something below
>>>
>>> FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug"
>>>
>>> can you try it out if it fixes the problem.
>> The error is gone. But there's still a QA warning.
>>
>> -------------> snip <-------------
>> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
>> opencv-dbg: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
>> -------------> snap <-------------
> Hm either it's a jni-lib or opencv using jna, but installing it under /usr/share is wrong. If it is a jni-lib /usr/lib/jni
> would be a good place if it is used by jna /usr/lib would be sufficient.
This path (share/OpenCV/java(JAR_INSTALL_DIR)) is hard coded in the 
modules/java/CMakeLists.txt file.

I expect that the FindJNI.cmake from the CMake Modules detects something 
from the host system or you have add Java to your sysroot. Have you 
check the output of the CMake configuration for the ANT_EXECUTABLE and 
JNI_INCLUDE_DIRS.

In any case the opencv recipe is not deterministic in case of the Java 
support.

You could try to add "-DBUILD_FAT_JAVA_LIB=OFF" to the EXTRA_OECMAKE but 
this doesn't disable the whole Java support.



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

* Re: opencv QA issue
  2014-01-28  9:08       ` Stefan Herbrechtsmeier
@ 2014-02-11 12:09         ` Steffen Sledz
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Sledz @ 2014-02-11 12:09 UTC (permalink / raw)
  To: openembedded-devel

On 28.01.2014 10:08, Stefan Herbrechtsmeier wrote:
> Am 28.01.2014 09:20, schrieb Henning Heinold:
>> On Tue, Jan 28, 2014 at 09:09:47AM +0100, Steffen Sledz wrote:
>>> On 27.01.2014 17:29, Khem Raj wrote:
>>>> On Mon, Jan 27, 2014 at 8:18 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
>>>>> After the latest update of our build host (Fedora-18) the opencv build fails with an QA issue.
>>>>>
>>>>> -------------> snip <-------------
>>>>> ERROR: QA Issue: non debug package contains .debug directory: opencv-apps path /work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/packages-split/opencv-apps/usr/share/OpenCV/java/.debug/libopencv_java246.so
>>>>> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
>>>>> opencv-apps: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
>>>>> ERROR: QA run found fatal errors. Please consider fixing them.
>>>>> ERROR: Function failed: do_package_qa
>>>>> ERROR: Logfile of failure stored in: /CACHE/jenkins-workspace/hipos-dfe-closed/build-closed/tmp-eglibc/work/cortexa9hf-vfp-neon-angstrom-linux-gnueabi/opencv/2.4.6+gitAUTOINC+c5afaa4e8d-r0/temp/log.do_package.15005
>>>>> NOTE: recipe opencv-2.4.6+gitAUTOINC+c5afaa4e8d-r0: task do_package: Failed
>>>>> ERROR: Task 502 (/CACHE/jenkins-workspace/hipos-dfe-closed/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_package) failed with exit code '1'
>>>>> -------------> snap <-------------
>>>>>
>>>>> After some research we found that the libopencv_java246.so wasn't build before the mentioned build host update. I'm not a cmake guru, so i can't determine why it is build after this update.
>>>>>
>>>>> But it seems to be clear that the path /usr/share/OpenCV/java/.debug/libopencv_java246.so is not covered by the package-split definition in meta-oe/recipes-support/opencv/opencv_2.4.bb:
>>>>>
>>>>> -------------> snip <-------------
>>>>> FILES_${PN} = ""
>>>>> FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV"
>>>>> FILES_${PN}-dbg += "${libdir}/.debug"
>>>> it should be added like something below
>>>>
>>>> FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug"
>>>>
>>>> can you try it out if it fixes the problem.
>>> The error is gone. But there's still a QA warning.
>>>
>>> -------------> snip <-------------
>>> WARNING: QA Issue: opencv-apps: found library in wrong location: /usr/share/OpenCV/java/libopencv_java246.so
>>> opencv-dbg: found library in wrong location: /usr/share/OpenCV/java/.debug/libopencv_java246.so
>>> -------------> snap <-------------
>> Hm either it's a jni-lib or opencv using jna, but installing it under /usr/share is wrong. If it is a jni-lib /usr/lib/jni
>> would be a good place if it is used by jna /usr/lib would be sufficient.
> This path (share/OpenCV/java(JAR_INSTALL_DIR)) is hard coded in the modules/java/CMakeLists.txt file.
> 
> I expect that the FindJNI.cmake from the CMake Modules detects something from the host system or you have add Java to your sysroot. Have you check the output of the CMake configuration for the ANT_EXECUTABLE and JNI_INCLUDE_DIRS.
> 
> In any case the opencv recipe is not deterministic in case of the Java support.
> 
> You could try to add "-DBUILD_FAT_JAVA_LIB=OFF" to the EXTRA_OECMAKE but this doesn't disable the whole Java support.

Ping!

Is someone working on this non deterministic problem?

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058


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

end of thread, other threads:[~2014-02-11 12:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27 16:18 opencv QA issue Steffen Sledz
2014-01-27 16:29 ` Khem Raj
2014-01-28  8:09   ` Steffen Sledz
2014-01-28  8:20     ` Henning Heinold
2014-01-28  9:08       ` Stefan Herbrechtsmeier
2014-02-11 12:09         ` Steffen Sledz

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.