package/elfutils: fix build on microblaze
PATCH 1/1 package/elfutils: fix build on microblaze
Fix the following build failure on microblaze:
dwelf_elf_begin.c:62:1: error: symver is only supported on ELF platforms
62 | OLD_VERSION (dwelf_elf_begin, ELFUTILS_0.175)
| ^~~~~~~~~~~
dwelf_elf_begin.c:62:1: error: symver is only supported on ELF platforms
Fixes:
- http://autobuild.buildroot.org/results/5ca2aa5c76415690ad4a85837ba47e7bcfbdbcbc
--- package/elfutils/elfutils.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/elfutils/elfutils.mk +4 -0
@@ -45,6 +45,10 @@ ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) ELFUTILS_CONF_OPTS += --disable-symbol-versioning endif +ifeq ($(BR2_microblazebe),y) +ELFUTILS_CONF_OPTS += --disable-symbol-versioning +endif + # disable for now, needs "distro" support ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod HOST_ELFUTILS_CONF_OPTS += --disable-libdebuginfod --disable-debuginfod
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 1 line · On Thu, 25 Jul 2024 10:06:41 +0200 Dario Binacchi…
+ifeq ($(BR2_microblazebe),y)
I've changed to:
ifeq ($(BR2_microblaze),y)
as the issue applies to both LE and BE Microblaze, and applied.
Although we do have a proposal for a more general solution to this
problem: add symber attribute support for Microblaze, in patch:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Problem is that the patch proposed by Vincent is apparently not going to be accepted by upstream gcc, so we would carry it forever, so I'm not sure which decision to take about it.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
All,
Quoted 12 lines · Thomas Petazzoni
Quoted 1 line · On Thu, 25 Jul 2024 10:06:41 +0200 Dario Binacchi…
+ifeq ($(BR2_microblazebe),y)
I've changed to:
ifeq ($(BR2_microblaze),y)
as the issue applies to both LE and BE Microblaze, and applied.
Quoted 8 lines
Although we do have a proposal for a more general solution to this
problem: add symber attribute support for Microblaze, in patch:https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Problem is that the patch proposed by Vincent is apparently not going to be accepted by upstream gcc, so we would carry it forever, so I'm not sure which decision to take about it.
I'm not sure it _won't_ be accepted, I just know one user was vocal about a migration to elfos.h.
The migration is non-trivial (for me), hence the patch to port semver. I could submit this upstream
but I haven't had time to look into performing regression builds/tests for the change.
Quoted 8 lines
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Dario" == Dario Binacchi <[email protected]> writes:
Fix the following build failure on microblaze:
dwelf_elf_begin.c:62:1: error: symver is only supported on ELF platforms
62 |OLD_VERSION(dwelf_elf_begin, ELFUTILS_0.175)
Quoted 7 lines
| ^~~~~~~~~~~dwelf_elf_begin.c:62:1: error: symver is only supported on ELF platforms
Fixes:
- http://autobuild.buildroot.org/results/5ca2aa5c76415690ad4a85837ba47e7bcfbdbcbcSigned-off-by Dario Binacchi <[email protected]>
Committed to 2024.02.x and 2024.05.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot