binutils-cross-canadian: add gprofng package as runtime dependency
PATCH v2 1/3 binutils-cross-canadian: add gprofng package as runtime dependency
From: Harish Sadineni <[email protected]>
In SDK, while running "x86_64-poky-linux-gp-collect-app ./exe" fails to create 'test.1.er' due to missing gprofng configure file in sysconfdir and aborting with below error while generating the profiling data.
- configuration error: can not find libgp-collector.so. run aborted
--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +1 -0
@@ -30,3 +30,4 @@ do_install () { } BBCLASSEXTEND = "" +RDEPENDS:${PN} = "nativesdk-gprofng"
Signature · 1 line
2.43.0
PATCH v2 2/3 autoconf: Add missing perl modules to RDEPENDS
From: Harish Sadineni <[email protected]>
In SDK, missing perl modules causes 'x86_64-wrlinuxsdk-linux-gp-display-html --help' to abort with below errors..
- Can't locate bignum.pm in @INC (you may need to install the feature module).
- Can't locate Math/BigInt.pm in @INC (you may need to install the Math::BigInt module)
--- meta/recipes-devtools/autoconf/autoconf_2.72e.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-devtools/autoconf/autoconf_2.72e.bb +3 -0
@@ -52,6 +52,9 @@ RDEPENDS:${PN} = "m4 gnu-config \ perl-module-thread-queue \ perl-module-threads \ perl-module-feature \ + perl-module-bignum \ + perl-module-bigint \ + perl-module-math-bigint \ " RDEPENDS:${PN}:class-native = "m4-native gnu-config-native hostperl-runtime-native"
Signature · 1 line
2.43.0
PATCH v2 3/3 binutils: gprofng - change use of bignum to use of bignint
In reply to [email protected]From: Harish Sadineni <[email protected]>
In SDK, The "x86_64-pokysdk-linux-gp-display-html" fails with below error while genearting profiling html reports from test experiment file (eg., test.1.er)
Error: Undefined subroutine &bigint::hex called at .../sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-pokysdk-linux-gp-display-html line 4059, <MAP_XML> line 1.
Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]
--- .../binutils/binutils-2.42.inc | 1 + ...rofng-change-use-of-bignum-to-bigint.patch | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
meta/recipes-devtools/binutils/binutils-2.42.inc +1 -0
@@ -35,5 +35,6 @@ SRC_URI = "\ file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \ file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \ file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ + file://0015-gprofng-change-use-of-bignum-to-bigint.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch new file +27 -0
@@ -0,0 +1,27 @@ +From: Ruud van der Pas <[email protected]> +Date: Tue, 27 Feb 2024 18:29:55 +0000 (+0000) +Subject: gprofng: change use of bignum to use of bigint +X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87 + +gprofng: change use of bignum to use of bigint + +Change the statement "use bignum" to "use bigint". This is sufficient +for gp-display-html to work and removes the dependency on bignum. + +Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87] + +Signed-off-by: Harish Sadineni <[email protected]> + +diff --git a/gprofng/gp-display-html/gp-display-html.in b/gprofng/gp-display-html/gp-display-html.in +index 6f37ca282e7..306c99a0ec3 100644 +--- a/gprofng/gp-display-html/gp-display-html.in ++++ b/gprofng/gp-display-html/gp-display-html.in +@@ -25,7 +25,7 @@ use warnings; + # Disable before release + # use Perl::Critic; + +-use bignum; ++use bigint; + use List::Util qw (max); + use Cwd qw (abs_path cwd); + use File::Basename;
Signature · 1 line
2.43.0
I believe this causes these failures:
https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/8798/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/9202/steps/12/logs/stdio
Quoted 32 lines · Harish via lists.openembedded.org
From: Harish Sadineni <[email protected]>
In SDK, while running "x86_64-poky-linux-gp-collect-app ./exe" fails to create 'test.1.er' due to missing gprofng configure file in sysconfdir and aborting with below error while generating the profiling data.
- configuration error: can not find libgp-collector.so. run abortedSigned-off-by Harish Sadineni <[email protected]>--- meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 + 1 file changed, 1 insertion(+)meta/recipes-devtools/binutils/binutils-cross-canadian.inc +1
-0@@ -30,3 +30,4 @@ do_install () { } BBCLASSEXTEND = "" +RDEPENDS:${PN} = "nativesdk-gprofng"Signature · 11 lines
2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#197632): https://lists.openembedded.org/g/openembedded-core/message/197632 Mute This Topic: https://lists.openembedded.org/mt/105216924/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
I tried with bitbake core-image-minimal -c populate_sdk build is successful and sdk is also installing successfully. I tried to do bitbake core-image-mingw-sdktest:do_populate_sdk -k got following ERROR: Nothing PROVIDES 'core-image-mingw-sdktest'.
Thanks,
Harish Sadineni
Hello Alex,
can you provide more details to reproduce the issue?.
Thanks,
Harish Sadineni