Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
@ 2014-06-18 22:48 Paul Gortmaker
  2014-06-19 13:26 ` Koen Kooi
  2014-07-16  3:00 ` João Henrique Ferreira de Freitas
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Gortmaker @ 2014-06-18 22:48 UTC (permalink / raw)
  To: openembedded-core

To fix:

ERROR: QA Issue: package libxml-parser-perl contains bad RPATH /home/paul/poky/build/tmp/sysroots/intel-corei7-64/usr/lib64 in file /home/paul/poky/build/tmp/work/corei7-64-poky-linux/libxml-parser-perl/2.41-r3/packages-split/libxml-parser-perl/usr/lib64/perl/vendor_perl/5.14.3/auto/XML/Parser/Expat/Expat.so
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/paul/poky/build/tmp/work/corei7-64-poky-linux/libxml-parser-perl/2.41-r3/temp/log.do_package.28544
ERROR: Task 4102 (/home/paul/poky/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb, do_package) failed with exit code '1'

...which showed up when enabling a multilib build.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
index 43a8a84518d3..2488aacb682c 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
@@ -27,6 +27,7 @@ do_configure_append() {
 do_compile() {
 	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
 	cpan_do_compile
+	chrpath -d ${S}/blib/arch/auto/XML/Parser/Expat/Expat.so
 }
 
 do_compile_class-native() {
-- 
1.9.1



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

* Re: [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
  2014-06-18 22:48 [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so Paul Gortmaker
@ 2014-06-19 13:26 ` Koen Kooi
  2014-07-16  3:00 ` João Henrique Ferreira de Freitas
  1 sibling, 0 replies; 7+ messages in thread
From: Koen Kooi @ 2014-06-19 13:26 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: openembedded-core


Op 19 jun. 2014, om 00:48 heeft Paul Gortmaker <paul.gortmaker@windriver.com> het volgende geschreven:

> To fix:
> 
> ERROR: QA Issue: package libxml-parser-perl contains bad RPATH /home/paul/poky/build/tmp/sysroots/intel-corei7-64/usr/lib64 in file /home/paul/poky/build/tmp/work/corei7-64-poky-linux/libxml-parser-perl/2.41-r3/packages-split/libxml-parser-perl/usr/lib64/perl/vendor_perl/5.14.3/auto/XML/Parser/Expat/Expat.so
> ERROR: QA run found fatal errors. Please consider fixing them.
> ERROR: Function failed: do_package_qa
> ERROR: Logfile of failure stored in: /home/paul/poky/build/tmp/work/corei7-64-poky-linux/libxml-parser-perl/2.41-r3/temp/log.do_package.28544
> ERROR: Task 4102 (/home/paul/poky/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb, do_package) failed with exit code '1'
> 
> ...which showed up when enabling a multilib build.
> 
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> 
> diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
> index 43a8a84518d3..2488aacb682c 100644
> --- a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
> +++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
> @@ -27,6 +27,7 @@ do_configure_append() {
> do_compile() {
> 	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
> 	cpan_do_compile
> +	chrpath -d ${S}/blib/arch/auto/XML/Parser/Expat/Expat.so

That only works for x86 builds.

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

* Re: [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
  2014-06-18 22:48 [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so Paul Gortmaker
  2014-06-19 13:26 ` Koen Kooi
@ 2014-07-16  3:00 ` João Henrique Ferreira de Freitas
  2014-07-16  8:33   ` Richard Purdie
  1 sibling, 1 reply; 7+ messages in thread
From: João Henrique Ferreira de Freitas @ 2014-07-16  3:00 UTC (permalink / raw)
  To: Paul Gortmaker, openembedded-core

Hi Paul,


I got this error.

On daisy branch, I was using a MACHINE=genericx86 then I changed to 
MACHINE=crownbay and build my image. libxml-parser-perl shows the same 
problem.

So I did 'bitbake perl -c cleansstate' and 'bitbake libxml-parser-perl'. 
No problems anymore, until I change back to genericx86.

But this is odd and I am trying to figure out what is the problem.


Em 18-06-2014 19:48, Paul Gortmaker escreveu:
> To fix:
>
> ERROR: QA Issue: package libxml-parser-perl contains bad RPATH /home/paul/poky/build/tmp/sysroots/intel-corei7-64/usr/lib64 in file /home/paul/poky/build/tmp/work/corei7-64-poky-linux/libxml-parser-perl/2.41-r3/packages-split/libxml-parser-perl/usr/lib64/perl/vendor_perl/5.14.3/auto/XML/Parser/Expat/Expat.so
> ERROR: QA run found fatal errors. Please consider fixing them.
> ERROR: Function failed: do_package_qa
> ERROR: Logfile of failure stored in: /home/paul/poky/build/tmp/work/corei7-64-poky-linux/libxml-parser-perl/2.41-r3/temp/log.do_package.28544
> ERROR: Task 4102 (/home/paul/poky/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb, do_package) failed with exit code '1'
>
> ...which showed up when enabling a multilib build.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
> index 43a8a84518d3..2488aacb682c 100644
> --- a/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
> +++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.41.bb
> @@ -27,6 +27,7 @@ do_configure_append() {
>   do_compile() {
>   	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
>   	cpan_do_compile
> +	chrpath -d ${S}/blib/arch/auto/XML/Parser/Expat/Expat.so
>   }
>   
>   do_compile_class-native() {

-- 
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil



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

* Re: [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
  2014-07-16  3:00 ` João Henrique Ferreira de Freitas
@ 2014-07-16  8:33   ` Richard Purdie
  2014-07-17  1:12     ` João Henrique Ferreira de Freitas
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2014-07-16  8:33 UTC (permalink / raw)
  To: João Henrique Ferreira de Freitas; +Cc: openembedded-core

On Wed, 2014-07-16 at 00:00 -0300, João Henrique Ferreira de Freitas
wrote:
> Hi Paul,
> 
> 
> I got this error.
> 
> On daisy branch, I was using a MACHINE=genericx86 then I changed to 
> MACHINE=crownbay and build my image. libxml-parser-perl shows the same 
> problem.
> 
> So I did 'bitbake perl -c cleansstate' and 'bitbake libxml-parser-perl'. 
> No problems anymore, until I change back to genericx86.
> 
> But this is odd and I am trying to figure out what is the problem.

I've seen this happen before with a half built perl recipe where you've
switched machines half way through a build of perl. Stripping out the
RPATH is not the right fix though.

Cheers,

Richard



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

* Re: [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
  2014-07-16  8:33   ` Richard Purdie
@ 2014-07-17  1:12     ` João Henrique Ferreira de Freitas
  2014-07-17 12:51       ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: João Henrique Ferreira de Freitas @ 2014-07-17  1:12 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core


Em 16-07-2014 05:33, Richard Purdie escreveu:
> On Wed, 2014-07-16 at 00:00 -0300, João Henrique Ferreira de Freitas
> wrote:
> I've seen this happen before with a half built perl recipe where you've
> switched machines half way through a build of perl. Stripping out the
> RPATH is not the right fix though.
>
> Cheers,
>
> Richard
>
>

I agree. And what is the right way to fix it?

Is an issue from perl recipes ? I want to get an start point.

Thanks.

-- 
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil



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

* Re: [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
  2014-07-17  1:12     ` João Henrique Ferreira de Freitas
@ 2014-07-17 12:51       ` Richard Purdie
  2014-07-25  1:33         ` João Henrique Ferreira de Freitas
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2014-07-17 12:51 UTC (permalink / raw)
  To: João Henrique Ferreira de Freitas; +Cc: openembedded-core

On Wed, 2014-07-16 at 22:12 -0300, João Henrique Ferreira de Freitas
wrote:
> Em 16-07-2014 05:33, Richard Purdie escreveu:
> > On Wed, 2014-07-16 at 00:00 -0300, João Henrique Ferreira de Freitas
> > wrote:
> > I've seen this happen before with a half built perl recipe where you've
> > switched machines half way through a build of perl. Stripping out the
> > RPATH is not the right fix though.
> >
> > Cheers,
> >
> > Richard
> >
> >
> 
> I agree. And what is the right way to fix it?
> 
> Is an issue from perl recipes ? I want to get an start point.

First we need to understand the problem exactly. Do you have a
reproducer that always works?

I'm not sure how to fix it at this point, we need to work on
understanding it first.

Cheers,

Richard



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

* Re: [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so
  2014-07-17 12:51       ` Richard Purdie
@ 2014-07-25  1:33         ` João Henrique Ferreira de Freitas
  0 siblings, 0 replies; 7+ messages in thread
From: João Henrique Ferreira de Freitas @ 2014-07-25  1:33 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core


Hi,

On 17-07-2014 09:51, Richard Purdie wrote:
> First we need to understand the problem exactly. Do you have a
> reproducer that always works?

This happens on daisy. And my test case was:

1) add meta-intel and meta-crownbay layers
2) build MACHINE=qemux86 bitbake libxml-parser-perl
3) build MACHINE=genericx86 bitbake libxml-parser-perl
4) build MACHINE=crownbay-noemgd bitbake libxml-parser-perl

The step 4 wont complete because rpath issues.

To get it work:

  MACHINE=crownbay-noemgd bitbake libxml-parser-perl perl -c cleanssate

Then

  MACHINE=crownbay-noemgd bitbake libxml-parser-perl

Until now master is not affected.

I am working to fix the libxml-parser-perl 
(http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=joaohf/daisy-libxml-parser-perl-rpath). 
But I am not sure if it solves the root problem. Because OE should build 
using three differents MACHINEs using the same workdir, sstate-cache.


Thanks.

-- 
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil



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

end of thread, other threads:[~2014-07-25  1:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18 22:48 [PATCH] perl: strip RPATH from libxml-parser-perl Expat.so Paul Gortmaker
2014-06-19 13:26 ` Koen Kooi
2014-07-16  3:00 ` João Henrique Ferreira de Freitas
2014-07-16  8:33   ` Richard Purdie
2014-07-17  1:12     ` João Henrique Ferreira de Freitas
2014-07-17 12:51       ` Richard Purdie
2014-07-25  1:33         ` João Henrique Ferreira de Freitas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox