* [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM
@ 2018-08-22 9:04 Jens Rehsack
2018-08-22 9:04 ` [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH" Jens Rehsack
2018-08-24 8:06 ` [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM Khem Raj
0 siblings, 2 replies; 10+ messages in thread
From: Jens Rehsack @ 2018-08-22 9:04 UTC (permalink / raw)
To: openembedded-core; +Cc: Jens Rehsack
The modern the time, the improvements in ExtUtils::MakeMaker.
Nowadays, .packlist and perllocal.pod aren't touched anymore when appropriate
flags set during configure stage. Controlling the flags globally avoids
dual-life recipes need share patching.
Further: remove prepending ${PERL_ARCHLIB} in PERL5LIB - it's wrong (search
order is site_lib, vendor_lib, core) - and ${PERL_ARCHLIB} contains core
libpath only ...
Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
meta/classes/cpan.bbclass | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index 8e079e0d55..926c6358a6 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -16,8 +16,7 @@ export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version
export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/"
cpan_do_configure () {
- export PERL5LIB="${PERL_ARCHLIB}"
- yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL INSTALLDIRS=vendor ${EXTRA_CPANFLAGS}
+ yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 ${EXTRA_CPANFLAGS}
# Makefile.PLs can exit with success without generating a
# Makefile, e.g. in cases of missing configure time
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-22 9:04 [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM Jens Rehsack
@ 2018-08-22 9:04 ` Jens Rehsack
2018-08-22 15:56 ` Richard Purdie
2018-08-24 8:06 ` [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM Khem Raj
1 sibling, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-08-22 9:04 UTC (permalink / raw)
To: openembedded-core; +Cc: Jens Rehsack
The perl distribution "XML-Parser" relies for configuration
on the tooling of Devel::CheckLib - which is not aware of
sysroot locations nor of reasonable compiler/link definitions
from outside.
This causes
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue: package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so [rpaths]
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed: do_package_qa
It's strongly encouraged to the maintainer @toddr to rework the
toolchain for up to date environments.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
index c5e0ae6769..4494e2286c 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
@@ -18,8 +18,16 @@ inherit cpan ptest-perl
# fix up sub MakeMaker project as arguments don't get propagated though
# see https://rt.cpan.org/Public/Bug/Display.html?id=28632
+do_configure_append_class-target() {
+ sed -E \
+ -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' \
+ -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
+ -i Makefile Expat/Makefile
+}
+
do_configure_append() {
- sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' -i Makefile Expat/Makefile
+ sed -e 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' \
+ -i Makefile Expat/Makefile
sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
# make sure these two do not build in parallel
sed 's!^$(INST_DYNAMIC):!$(INST_DYNAMIC): $(BOOTSTRAP)!' -i Expat/Makefile
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-22 9:04 ` [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH" Jens Rehsack
@ 2018-08-22 15:56 ` Richard Purdie
2018-08-22 22:26 ` Richard Purdie
0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2018-08-22 15:56 UTC (permalink / raw)
To: Jens Rehsack, openembedded-core
On Wed, 2018-08-22 at 11:04 +0200, Jens Rehsack wrote:
> The perl distribution "XML-Parser" relies for configuration
> on the tooling of Devel::CheckLib - which is not aware of
> sysroot locations nor of reasonable compiler/link definitions
> from outside.
>
> This causes
>
> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue:
> package libxml-parser-perl contains bad RPATH
> ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-
> r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-
> linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-
> perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
> package libxml-parser-perl contains bad RPATH
> ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-
> r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-
> linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-
> perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
> [rpaths]
> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found
> fatal errors. Please consider fixing them.
> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed:
> do_package_qa
>
> It's strongly encouraged to the maintainer @toddr to rework the
> toolchain for up to date environments.
>
> Signed-off-by: Jens Rehsack <sno@netbsd.org>
> ---
> meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb | 10
> +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> index c5e0ae6769..4494e2286c 100644
> --- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> +++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> @@ -18,8 +18,16 @@ inherit cpan ptest-perl
>
> # fix up sub MakeMaker project as arguments don't get propagated
> though
> # see https://rt.cpan.org/Public/Bug/Display.html?id=28632
> +do_configure_append_class-target() {
> + sed -E \
> + -e 's:-L${STAGING_LIBDIR}::g' -e 's:-
> I${STAGING_INCDIR}::g' \
> + -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
> + -i Makefile Expat/Makefile
> +}
> +
> do_configure_append() {
> - sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET}
> :g' -i Makefile Expat/Makefile
> + sed -e 's:--sysroot=.*\(\s\|$\):
> --sysroot=${STAGING_DIR_TARGET} :g' \
> + -i Makefile Expat/Makefile
> sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
> # make sure these two do not build in parallel
> sed 's!^$(INST_DYNAMIC):!$(INST_DYNAMIC): $(BOOTSTRAP)!' -i
> Expat/Makefile
Sorry, this fails to build the nativesdk version:
https://autobuilder.yocto.io/builders/nightly-x86/builds/1261/steps/Building%20Toolchain%20Images/logs/stdio
I suspect you need to strip the RPATH in the nativesdk case...
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-22 15:56 ` Richard Purdie
@ 2018-08-22 22:26 ` Richard Purdie
0 siblings, 0 replies; 10+ messages in thread
From: Richard Purdie @ 2018-08-22 22:26 UTC (permalink / raw)
To: Jens Rehsack, openembedded-core
On Wed, 2018-08-22 at 16:56 +0100, Richard Purdie wrote:
> Sorry, this fails to build the nativesdk version:
>
> https://autobuilder.yocto.io/builders/nightly-x86/builds/1261/steps/B
> uilding%20Toolchain%20Images/logs/stdio
>
> I suspect you need to strip the RPATH in the nativesdk case...
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master-next&id=3fc37317a78b19ce4eea10dad73a17186c68ff58
added to your patch 'fixes' it...
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM
2018-08-22 9:04 [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM Jens Rehsack
2018-08-22 9:04 ` [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH" Jens Rehsack
@ 2018-08-24 8:06 ` Khem Raj
1 sibling, 0 replies; 10+ messages in thread
From: Khem Raj @ 2018-08-24 8:06 UTC (permalink / raw)
To: sno; +Cc: Patches and discussions about the oe-core layer
Hi Jens
This patch has been pushed but its causing several
recipes to break, I can confirm that with reverting this fix
Here is list
http://errors.yoctoproject.org/Errors/Build/66538/
IMO, this fix should be reverted and delayed until
these regressions are fixed.
On Wed, Aug 22, 2018 at 2:04 AM Jens Rehsack <sno@netbsd.org> wrote:
>
> The modern the time, the improvements in ExtUtils::MakeMaker.
>
> Nowadays, .packlist and perllocal.pod aren't touched anymore when appropriate
> flags set during configure stage. Controlling the flags globally avoids
> dual-life recipes need share patching.
>
> Further: remove prepending ${PERL_ARCHLIB} in PERL5LIB - it's wrong (search
> order is site_lib, vendor_lib, core) - and ${PERL_ARCHLIB} contains core
> libpath only ...
>
> Signed-off-by: Jens Rehsack <sno@netbsd.org>
> ---
> meta/classes/cpan.bbclass | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
> index 8e079e0d55..926c6358a6 100644
> --- a/meta/classes/cpan.bbclass
> +++ b/meta/classes/cpan.bbclass
> @@ -16,8 +16,7 @@ export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version
> export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/"
>
> cpan_do_configure () {
> - export PERL5LIB="${PERL_ARCHLIB}"
> - yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL INSTALLDIRS=vendor ${EXTRA_CPANFLAGS}
> + yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 ${EXTRA_CPANFLAGS}
>
> # Makefile.PLs can exit with success without generating a
> # Makefile, e.g. in cases of missing configure time
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-14 16:37 ` Jens Rehsack
@ 2018-08-15 9:01 ` richard.purdie
0 siblings, 0 replies; 10+ messages in thread
From: richard.purdie @ 2018-08-15 9:01 UTC (permalink / raw)
To: Jens Rehsack; +Cc: openembedded-core
Hi Jens,
On Tue, 2018-08-14 at 18:37 +0200, Jens Rehsack wrote:
> I tried:
>
> $ bitbake libxml-parser-perl-native nativesdk-libxml-parser-perl
> libxml-parser-perl
>
> WARNING: Host distribution "ubuntu-18.04" has not been validated with
> this version of the build system; you may possibly experience
> unexpected failures. It is recommended that you use a tested
> distribution.
> Loading cache: 100%
> |####################################################################
> #####################################################################
> #############################| Time: 0:00:00
> Loaded 3693 entries from dependency cache.
> Parsing recipes: 100%
> |####################################################################
> #####################################################################
> ###########################| Time: 0:00:01
> Parsing of 2421 .bb files complete (2417 cached, 4 parsed). 3685
> targets, 100 skipped, 0 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION = "1.39.0"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING = "universal"
> TARGET_SYS = "arm-poky-linux-gnueabi"
> MACHINE = "wendy"
> DISTRO = "gpw"
> DISTRO_VERSION = "1.0.0"
> TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard
> cortexa8"
> TARGET_FPU = "hard"
> meta
> meta-poky
> meta-yocto-bsp =
> "master:e82d2edca398c392309713577859724900b20190"
> meta-oe
> meta-python
> meta-networking
> meta-filesystems
> meta-webserver =
> "master:0691e134bf938e0712cf14d3a441bbba04727cea"
> meta-cpan =
> "master:7ddb7aae38ad9c8fc850026de6636fbe2a4aabdd"
> meta-jens =
> "master:92863f571a9b64aa5b6c6866db9eb0c8972a546f"
> meta-gpw =
> "master:8679df6ae6a22b15bd4127c838915dcf087bf614"
>
> Initialising tasks: 100%
> |####################################################################
> #####################################################################
> ########################| Time: 0:00:00
> Checking sstate mirror object availability: 100%
> |####################################################################
> #####################################################################
> | Time: 0:00:00
> Sstate summary: Wanted 155 Found 0 Missed 310 Current 96 (0% match,
> 38% complete)
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> NOTE: Tasks Summary: Attempted 1007 tasks of which 669 didn't need to
> be rerun and all succeeded.
>
> Unfortunately I don't have a SuSE based build machine nor a
> reasonable MIPS setup to test - but can you please describe what I
> need to do to reproduce that error?
> Further: Ross complained regarding patch corruption by Apple Mail - I
> resent the patches on August, 8th (you replied that on August, 6th)
> using git-send-email. Did you fix the corrupted patch before?
>
> I really want this thing being fixed - does it occurs anywhere else
> or can the reason the missing "--sysroot"?
>
> When I restrict the additional sed commands to target only, how would
> that affect the nativesdk?
I was able to reproduce this if I move my host libexpat out the way
temporarily:
mv /usr/lib/x86_64-linux-gnu/libexpat.so{,.hide}
then:
bitbake libxml-parser-perl-native -c cleansstate
bitbake libxml-parser-perl-native
The issue is that some of our build workers don't have libexpat
installed and the linker isn't finding the native version, presumably
as the native case needs the -L search paths we add.
Hope that helps reproduce!
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-06 15:22 ` richard.purdie
@ 2018-08-14 16:37 ` Jens Rehsack
2018-08-15 9:01 ` richard.purdie
0 siblings, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-08-14 16:37 UTC (permalink / raw)
To: richard.purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 13136 bytes --]
Hi Richard,
I tried:
$ bitbake libxml-parser-perl-native nativesdk-libxml-parser-perl libxml-parser-perl
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |######################################################################################################################################################################| Time: 0:00:00
Loaded 3693 entries from dependency cache.
Parsing recipes: 100% |####################################################################################################################################################################| Time: 0:00:01
Parsing of 2421 .bb files complete (2417 cached, 4 parsed). 3685 targets, 100 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.39.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "wendy"
DISTRO = "gpw"
DISTRO_VERSION = "1.0.0"
TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "master:e82d2edca398c392309713577859724900b20190"
meta-oe
meta-python
meta-networking
meta-filesystems
meta-webserver = "master:0691e134bf938e0712cf14d3a441bbba04727cea"
meta-cpan = "master:7ddb7aae38ad9c8fc850026de6636fbe2a4aabdd"
meta-jens = "master:92863f571a9b64aa5b6c6866db9eb0c8972a546f"
meta-gpw = "master:8679df6ae6a22b15bd4127c838915dcf087bf614"
Initialising tasks: 100% |#################################################################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |#########################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 155 Found 0 Missed 310 Current 96 (0% match, 38% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1007 tasks of which 669 didn't need to be rerun and all succeeded.
Unfortunately I don't have a SuSE based build machine nor a reasonable MIPS setup to test - but can you please describe what I need to do to reproduce that error?
Further: Ross complained regarding patch corruption by Apple Mail - I resent the patches on August, 8th (you replied that on August, 6th) using git-send-email. Did you fix the corrupted patch before?
I really want this thing being fixed - does it occurs anywhere else or can the reason the missing "--sysroot"?
When I restrict the additional sed commands to target only, how would that affect the nativesdk?
Cheers,
Jens
> Am 06.08.2018 um 17:22 schrieb richard.purdie@linuxfoundation.org:
>
> On Thu, 2018-08-02 at 10:21 +0200, Jens Rehsack wrote:
>> The perl distribution "XML-Parser" relies for configuration
>> on the tooling of Devel::CheckLib - which is not aware of
>> sysroot locations nor of reasonable compiler/link definitions
>> from outside.
>>
>> This causes
>>
>> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue: package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
>> package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so [rpaths]
>> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
>> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed: do_package_qa
>>
>> It's strongly encouraged to the maintainer @toddr to rework the
>> toolchain for up to date environments.
>>
>> Signed-off-by: Jens Rehsack <sno@netbsd.org>
>> ---
>> meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
>> index c5e0ae6769..2ca8d506f4 100644
>> --- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
>> +++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
>> @@ -19,7 +19,11 @@ inherit cpan ptest-perl
>> # fix up sub MakeMaker project as arguments don't get propagated though
>> # see https://rt.cpan.org/Public/Bug/Display.html?id=28632
>> do_configure_append() {
>> - sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' -i Makefile Expat/Makefile
>> + sed -E \
>> + -e 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' \
>> + -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' \
>> + -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
>> + -i Makefile Expat/Makefile
>> sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
>> # make sure these two do not build in parallel
>> sed 's!^$(INST_DYNAMIC):!$(INST_DYNAMIC): $(BOOTSTRAP)!' -i Expat/Makefile
>
> Hi Jens,
>
> Thanks for looking into this. Unfortunately its still not working, see
> the error below for the -native version.
>
> Cheers,
>
> Richard
>
>
> NOTE: recipe libtest-needs-perl-0.002005-r0: task do_compile: Started
> ERROR: libxml-parser-perl-native-2.44-r0 do_compile: oe_runmake failed
> ERROR: libxml-parser-perl-native-2.44-r0 do_compile: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/log.do_compile.34225)
> NOTE: recipe librepo-1.8.1-r0: task do_patch: Succeeded
> NOTE: recipe libxml-namespacesupport-perl-1.12-r0: task do_configure: Succeeded
> ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/log.do_compile.34225
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 28 PASTHRU_INC=-isystem/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/include -O2 -pipe LD=gcc
> | make[1]: Entering directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/XML-Parser-2.44/Expat'
> | "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/bin/perl-native/perl" "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib/perl-native/perl/5.24.4/ExtUtils/xsubpp" -noprototypes -typemap "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib/perl-native/perl/5.24.4/ExtUtils/typemap" -typemap "typemap" Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
> | gcc -c -isystem/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/include -O2 -pipe -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -fPIC "-I/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib/perl-native/perl/5.24.4/CORE" Expat.c
> | cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
> | Running Mkbootstrap for XML::Parser::Expat ()
> | cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
> | cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
> | cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
> | cp Parser/Encodings/windows-1251.enc blib/lib/XML/Parser/Encodings/windows-1251.enc
> | cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
> | cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
> | cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
> | cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
> | cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
> | cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
> | cp Parser/Encodings/ibm866.enc blib/lib/XML/Parser/Encodings/ibm866.enc
> | cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
> | cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
> | cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
> | cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
> | cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
> | cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
> | cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
> | cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
> | cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
> | cp Parser.pm blib/lib/XML/Parser.pm
> | cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
> | cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
> | cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
> | cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
> | cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
> | cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
> | cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
> | cp Parser/Encodings/koi8-r.enc blib/lib/XML/Parser/Encodings/koi8-r.enc
> | cp Parser/Encodings/windows-1255.enc blib/lib/XML/Parser/Encodings/windows-1255.enc
> | chmod 644 "Expat.bs"
> | rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
> | gcc -L/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -shared -L/usr/local/lib Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.so \
> | -lexpat \
> |
> | /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: cannot find -lexpat
> | collect2: error: ld returned 1 exit status
> | make[1]: *** [Makefile:462: ../blib/arch/auto/XML/Parser/Expat/Expat.so] Error 1
> | make[1]: Leaving directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/XML-Parser-2.44/Expat'
> | make: *** [Makefile:594: subdirs] Error 2
> | ERROR: oe_runmake failed
> | WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/run.do_compile.34225:1 exit 1 from 'exit 1'
> | ERROR: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/log.do_compile.34225)
> NOTE: recipe libxml-parser-perl-native-2.44-r0: task do_compile: Failed
--
Jens Rehsack - rehsack@gmail.com
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-08 15:58 Jens Rehsack
@ 2018-08-08 15:58 ` Jens Rehsack
0 siblings, 0 replies; 10+ messages in thread
From: Jens Rehsack @ 2018-08-08 15:58 UTC (permalink / raw)
To: openembedded-core; +Cc: Jens Rehsack
The perl distribution "XML-Parser" relies for configuration
on the tooling of Devel::CheckLib - which is not aware of
sysroot locations nor of reasonable compiler/link definitions
from outside.
This causes
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue: package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so [rpaths]
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed: do_package_qa
It's strongly encouraged to the maintainer @toddr to rework the
toolchain for up to date environments.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
index c5e0ae6769..2ca8d506f4 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
@@ -19,7 +19,11 @@ inherit cpan ptest-perl
# fix up sub MakeMaker project as arguments don't get propagated though
# see https://rt.cpan.org/Public/Bug/Display.html?id=28632
do_configure_append() {
- sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' -i Makefile Expat/Makefile
+ sed -E \
+ -e 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' \
+ -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' \
+ -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
+ -i Makefile Expat/Makefile
sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
# make sure these two do not build in parallel
sed 's!^$(INST_DYNAMIC):!$(INST_DYNAMIC): $(BOOTSTRAP)!' -i Expat/Makefile
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
2018-08-02 8:21 Jens Rehsack
@ 2018-08-06 15:22 ` richard.purdie
2018-08-14 16:37 ` Jens Rehsack
0 siblings, 1 reply; 10+ messages in thread
From: richard.purdie @ 2018-08-06 15:22 UTC (permalink / raw)
To: Jens Rehsack, openembedded-core
On Thu, 2018-08-02 at 10:21 +0200, Jens Rehsack wrote:
> The perl distribution "XML-Parser" relies for configuration
> on the tooling of Devel::CheckLib - which is not aware of
> sysroot locations nor of reasonable compiler/link definitions
> from outside.
>
> This causes
>
> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue: package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
> package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so [rpaths]
> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
> ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed: do_package_qa
>
> It's strongly encouraged to the maintainer @toddr to rework the
> toolchain for up to date environments.
>
> Signed-off-by: Jens Rehsack <sno@netbsd.org>
> ---
> meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> index c5e0ae6769..2ca8d506f4 100644
> --- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> +++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
> @@ -19,7 +19,11 @@ inherit cpan ptest-perl
> # fix up sub MakeMaker project as arguments don't get propagated though
> # see https://rt.cpan.org/Public/Bug/Display.html?id=28632
> do_configure_append() {
> - sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' -i Makefile Expat/Makefile
> + sed -E \
> + -e 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' \
> + -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' \
> + -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
> + -i Makefile Expat/Makefile
> sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
> # make sure these two do not build in parallel
> sed 's!^$(INST_DYNAMIC):!$(INST_DYNAMIC): $(BOOTSTRAP)!' -i Expat/Makefile
Hi Jens,
Thanks for looking into this. Unfortunately its still not working, see
the error below for the -native version.
Cheers,
Richard
NOTE: recipe libtest-needs-perl-0.002005-r0: task do_compile: Started
ERROR: libxml-parser-perl-native-2.44-r0 do_compile: oe_runmake failed
ERROR: libxml-parser-perl-native-2.44-r0 do_compile: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/log.do_compile.34225)
NOTE: recipe librepo-1.8.1-r0: task do_patch: Succeeded
NOTE: recipe libxml-namespacesupport-perl-1.12-r0: task do_configure: Succeeded
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/log.do_compile.34225
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 28 PASTHRU_INC=-isystem/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/include -O2 -pipe LD=gcc
| make[1]: Entering directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/XML-Parser-2.44/Expat'
| "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/bin/perl-native/perl" "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib/perl-native/perl/5.24.4/ExtUtils/xsubpp" -noprototypes -typemap "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib/perl-native/perl/5.24.4/ExtUtils/typemap" -typemap "typemap" Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
| gcc -c -isystem/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/include -O2 -pipe -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -fPIC "-I/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib/perl-native/perl/5.24.4/CORE" Expat.c
| cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
| Running Mkbootstrap for XML::Parser::Expat ()
| cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
| cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
| cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
| cp Parser/Encodings/windows-1251.enc blib/lib/XML/Parser/Encodings/windows-1251.enc
| cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
| cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
| cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
| cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
| cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
| cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
| cp Parser/Encodings/ibm866.enc blib/lib/XML/Parser/Encodings/ibm866.enc
| cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
| cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
| cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
| cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
| cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
| cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
| cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
| cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
| cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
| cp Parser.pm blib/lib/XML/Parser.pm
| cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
| cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
| cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
| cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
| cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
| cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
| cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
| cp Parser/Encodings/koi8-r.enc blib/lib/XML/Parser/Encodings/koi8-r.enc
| cp Parser/Encodings/windows-1255.enc blib/lib/XML/Parser/Encodings/windows-1255.enc
| chmod 644 "Expat.bs"
| rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.so
| gcc -L/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -shared -L/usr/local/lib Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.so \
| -lexpat \
|
| /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: cannot find -lexpat
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:462: ../blib/arch/auto/XML/Parser/Expat/Expat.so] Error 1
| make[1]: Leaving directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/XML-Parser-2.44/Expat'
| make: *** [Makefile:594: subdirs] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/run.do_compile.34225:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips-lsb/build/build/tmp/work/x86_64-linux/libxml-parser-perl-native/2.44-r0/temp/log.do_compile.34225)
NOTE: recipe libxml-parser-perl-native-2.44-r0: task do_compile: Failed
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH"
@ 2018-08-02 8:21 Jens Rehsack
2018-08-06 15:22 ` richard.purdie
0 siblings, 1 reply; 10+ messages in thread
From: Jens Rehsack @ 2018-08-02 8:21 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2445 bytes --]
The perl distribution "XML-Parser" relies for configuration
on the tooling of Devel::CheckLib - which is not aware of
sysroot locations nor of reasonable compiler/link definitions
from outside.
This causes
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA Issue: package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so
package libxml-parser-perl contains bad RPATH ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/recipe-sysroot/usr/lib in file ${BUILDDIR}/tmp/work/core2-64-poky-linux/libxml-parser-perl/2.44-r0/packages-split/libxml-parser-perl/usr/lib/perl/vendor_perl/5.24.4/auto/XML/Parser/Expat/Expat.so [rpaths]
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: libxml-parser-perl-2.44-r0 do_package_qa: Function failed: do_package_qa
It's strongly encouraged to the maintainer @toddr to rework the
toolchain for up to date environments.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
index c5e0ae6769..2ca8d506f4 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.44.bb
@@ -19,7 +19,11 @@ inherit cpan ptest-perl
# fix up sub MakeMaker project as arguments don't get propagated though
# see https://rt.cpan.org/Public/Bug/Display.html?id=28632
do_configure_append() {
- sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' -i Makefile Expat/Makefile
+ sed -E \
+ -e 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' \
+ -e 's:-L${STAGING_LIBDIR}::g' -e 's:-I${STAGING_INCDIR}::g' \
+ -e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g' \
+ -i Makefile Expat/Makefile
sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
# make sure these two do not build in parallel
sed 's!^$(INST_DYNAMIC):!$(INST_DYNAMIC): $(BOOTSTRAP)!' -i Expat/Makefile
--
2.17.1
--
Jens Rehsack - rehsack@gmail.com
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-08-24 8:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 9:04 [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM Jens Rehsack
2018-08-22 9:04 ` [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH" Jens Rehsack
2018-08-22 15:56 ` Richard Purdie
2018-08-22 22:26 ` Richard Purdie
2018-08-24 8:06 ` [PATCH 1/2] cpan.bbclass: adopt to recent EU::MM Khem Raj
-- strict thread matches above, loose matches on Subject: below --
2018-08-08 15:58 Jens Rehsack
2018-08-08 15:58 ` [PATCH 2/2] libxml-parser-perl: fix "...contains bad RPATH" Jens Rehsack
2018-08-02 8:21 Jens Rehsack
2018-08-06 15:22 ` richard.purdie
2018-08-14 16:37 ` Jens Rehsack
2018-08-15 9:01 ` richard.purdie
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.