package/elfutils: Add missing glibc and c++ dependencies for progs
v2 cover package/elfutils: Add missing glibc and c++ dependencies for progs
Hi,
This small series addresses a build issue for the elfutils programs that appeared after the bump to 0.192. This release introduced a C++ program (srcfiles.cxx), so we now require a C++ toolchain to build the programs.
As pointed by Yann Morin, the programs also depend on glibc. The first patch adds a missing menuconfig comment to explain the glibc dependency, and the second one introduces the C++ dependency.
V1 : https://lists.buildroot.org/pipermail/buildroot/2025-June/781721.html
Maxime Chevallier (2):
package/elfutils: Show a comment explaining that elfutils progs need
glibc
package/elfutils: elfutils programs now require a c++ toolchain
package/elfutils/Config.in | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/2 package/elfutils: Show a comment explaining that elfutils progs need glibc
The elfutils programs require Glibc to be used as the C library. Show a comment when this libc isn't used in the toolchain.
--- package/elfutils/Config.in | 3 +++ 1 file changed, 3 insertions(+)
package/elfutils/Config.in +3 -0
@@ -28,4 +28,7 @@ config BR2_PACKAGE_ELFUTILS_PROGS This option tells elfutils to not only install the libelf libraries, but also the elfutils programs. +comment "elfutils programs needs a glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC + endif
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/2] package/elfutils: Show a comment explaining that elfutils progs need glibc
Quoted 5 lines · Maxime Chevallier via buildroot
The elfutils programs require Glibc to be used as the C library. Show a comment when this libc isn't used in the toolchain.
Suggested-by Yann E. MORIN <[email protected]>Signed-off-by Maxime Chevallier <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 package/elfutils: elfutils programs now require a c++ toolchain
In reply to Maxime Chevallier via buildrootThe 0.192 release of elfutils introduced the src/srcfiles.cxx program, that lists all source files of a given ELF binary. As this is a C++ program, we need a toolchain that supports it.
Without it, the build system tries to use "no" as the CXX compiler, resulting in the following errors :
/bin/sh: line 1: no: command not found
as can be seen here for example :
https://autobuild.buildroot.net/results/849/849221c794a469a423857a290db775d150b84900
Add a dependency to a CPP toolchain for the elfutils programs.
--- package/elfutils/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
package/elfutils/Config.in +4 -2
@@ -24,11 +24,13 @@ if BR2_PACKAGE_ELFUTILS config BR2_PACKAGE_ELFUTILS_PROGS bool "Install programs" depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_INSTALL_LIBSTDCPP help This option tells elfutils to not only install the libelf libraries, but also the elfutils programs. -comment "elfutils programs needs a glibc toolchain" - depends on !BR2_TOOLCHAIN_USES_GLIBC +comment "elfutils programs needs a glibc toolchain w/ C++" + depends on !BR2_TOOLCHAIN_USES_GLIBC \ + || !BR2_INSTALL_LIBSTDCPP endif
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Maxime, All,
On 2025-06-30 17:14 +0200, Maxime Chevallier spake thusly:
Quoted 3 lines
This small series addresses a build issue for the elfutils programs that appeared after the bump to 0.192. This release introduced a C++ program (srcfiles.cxx), so we now require a C++ toolchain to build the programs.
To be noted: the bump to 0.192 was part of 2025.02, so the series should be backported to both stable branches.
Quoted 10 lines
As pointed by Yann Morin, the programs also depend on glibc. The first patch adds a missing menuconfig comment to explain the glibc dependency, and the second one introduces the C++ dependency.
V1 : https://lists.buildroot.org/pipermail/buildroot/2025-June/781721.html
Maxime Chevallier (2):
package/elfutils: Show a comment explaining that elfutils progs need
glibc
package/elfutils: elfutils programs now require a c++ toolchain
Thanks!
Regards,
Yann E. MORIN.
Quoted 6 lines
package/elfutils/Config.in | 5 +++++ 1 file changed, 5 insertions(+)Signature · 1 line
2.49.0
Signature · 23 lines
____________ .-----------------.--------------------: _ :------------------. | Yann E. MORIN | Real-Time Embedded | __/ ) | /"\ ASCII RIBBON | | | Software Designer | _/ - /' | \ / CAMPAIGN | | +33 638.411.245 '--------------------: (_ `--, | X AGAINST | | yann.morin (at) orange.com |_=" ,--' | / \ HTML MAIL | '--------------------------------------:______/_____:------------------' ____________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 12 lines
Hi,
This small series addresses a build issue for the elfutils programs that appeared after the bump to 0.192. This release introduced a C++ program (srcfiles.cxx), so we now require a C++ toolchain to build the programs.
As pointed by Yann Morin, the programs also depend on glibc. The first patch adds a missing menuconfig comment to explain the glibc dependency, and the second one introduces the C++ dependency.
V1 : https://lists.buildroot.org/pipermail/buildroot/2025-June/781721.html
Quoted 15 lines
Maxime Chevallier (2):
package/elfutils: Show a comment explaining that elfutils progs need
glibc
package/elfutils: elfutils programs now require a c++ toolchainpackage/elfutils/Config.in | 5 +++++ 1 file changed, 5 insertions(+)Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Applied to 2025.02.x & 2025.05.x. Thanks
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot