package/elfutils: elfutils programs now require a c++ toolchain
PATCH 1/1 package/elfutils: elfutils programs now require a c++ toolchain
The 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 | 4 ++++ 1 file changed, 4 insertions(+)
package/elfutils/Config.in +4 -0
@@ -24,8 +24,12 @@ 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 toolchain w/ C++" + depends on !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-27 09:58 +0200, Maxime Chevallier via buildroot spake thusly:
Quoted 25 lines
The 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 foundas can be seen here for example :
https://autobuild.buildroot.net/results/849/849221c794a469a423857a290db775d150b84900
Add a dependency to a CPP toolchain for the elfutils programs.
Signed-off-by Maxime Chevallier <[email protected]>--- package/elfutils/Config.in | 4 ++++ 1 file changed, 4 insertions(+)package/elfutils/Config.in +0
-0
package/elfutils/Config.in if BR2_PACKAGE_ELFUTILS · line 33
Quoted 10 lines
package/elfutils/Config.in +3
-0@@ -24,8 +24,12 @@ 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 toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPP
Two things:
1. the dependency on glibc already required a comment, which is currently missing: maybe add it as a separate patch?
2. the new comment should mention both issues:
comment "elfutils programs needs a glibc toolchain w/ C++"
depends on !BR2_TOOLCHAIN_USES_GLIBC \
|| !BR2_INSTALL_LIBSTDCPPRegards,
Yann E. MORIN.
Quoted 8 lines
package/elfutils/Config.in +0
-0endifSignature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
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
Hello Yann,
Quoted 41 lines · On Fri, 27 Jun 2025 10:40:55 +0200 [email protected] wrote:
Maxime, All,
On 2025-06-27 09:58 +0200, Maxime Chevallier via buildroot spake thusly:
Quoted 25 lines
The 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 foundas can be seen here for example :
https://autobuild.buildroot.net/results/849/849221c794a469a423857a290db775d150b84900
Add a dependency to a CPP toolchain for the elfutils programs.
Signed-off-by Maxime Chevallier <[email protected]>--- package/elfutils/Config.in | 4 ++++ 1 file changed, 4 insertions(+)package/elfutils/Config.in +0
-0package/elfutils/Config.in if BR2_PACKAGE_ELFUTILS · line 33
Quoted 10 lines
package/elfutils/Config.in +3
-0@@ -24,8 +24,12 @@ 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 toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPPTwo things:
Quoted 8 lines
1. the dependency on glibc already required a comment, which is currently missing: maybe add it as a separate patch?
2. the new comment should mention both issues:
comment "elfutils programs needs a glibc toolchain w/ C++" depends on !BR2_TOOLCHAIN_USES_GLIBC \ || !BR2_INSTALL_LIBSTDCPP
Sure thing, I'll resping with these changes then :)
Thanks,
Maxime
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot