Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support
@ 2024-04-18 13:56 Giulio Benetti
  2024-04-22  1:24 ` Christian Stewart via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Giulio Benetti @ 2024-04-18 13:56 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti

When building on hosts with libstdc++ without demangle support this error
shows up:
checking for __cxa_demangle in -lstdc++... no
configure: error: __cxa_demangle not found in libstdc++, use --disable-demangler to disable demangler support.
make[1]: *** [package/pkg-generic.mk:273: /home/giuliobenetti/br_reproduce/c2524c7580d97f7387ec22da62be71d77f2ed8ec/output/build/host-elfutils-0.189/.stamp_configured] Error 1
make: *** [Makefile:23: _all] Error 2

So let's disable demangler for host by default.

Fixes: still not showed by autobuilders. Reproduced on Ubuntu 22.04 with
Ubuntu APT g++ 11.4.0

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/elfutils/elfutils.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk
index 87b51aa5b5..4d8cc43342 100644
--- a/package/elfutils/elfutils.mk
+++ b/package/elfutils/elfutils.mk
@@ -27,6 +27,7 @@ HOST_ELFUTILS_CONF_OPTS = \
 	--with-bzlib \
 	--with-lzma \
 	--without-zstd \
+	--disable-demangler \
 	--disable-progs
 
 ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support
  2024-04-18 13:56 [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support Giulio Benetti
@ 2024-04-22  1:24 ` Christian Stewart via buildroot
  2024-05-09 15:37 ` Thomas Petazzoni via buildroot
  2024-06-03 10:51 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Christian Stewart via buildroot @ 2024-04-22  1:24 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot


Hi Giulio, all,

> When building on hosts with libstdc++ without demangle support this error
> shows up:
> checking for __cxa_demangle in -lstdc++... no
> configure: error: __cxa_demangle not found in libstdc++, use --disable-demangler to disable demangler support.
> make[1]: *** [package/pkg-generic.mk:273: /home/giuliobenetti/br_reproduce/c2524c7580d97f7387ec22da62be71d77f2ed8ec/output/build/host-elfutils-0.189/.stamp_configured] Error 1
> make: *** [Makefile:23: _all] Error 2

> So let's disable demangler for host by default.

> Fixes: still not showed by autobuilders. Reproduced on Ubuntu 22.04 with
> Ubuntu APT g++ 11.4.0

> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
>  package/elfutils/elfutils.mk | 1 +
>  1 file changed, 1 insertion(+)

> diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk
> index 87b51aa5b5..4d8cc43342 100644
> --- a/package/elfutils/elfutils.mk
> +++ b/package/elfutils/elfutils.mk
> @@ -27,6 +27,7 @@ HOST_ELFUTILS_CONF_OPTS = \
>  	--with-bzlib \
>  	--with-lzma \
>  	--without-zstd \
> +	--disable-demangler \
>  	--disable-progs
> 
> ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \

A user encountered this issue and reported it:

https://github.com/skiffos/SkiffOS/issues/311

Thanks!

Reviewed-by: Christian Stewart <christian@aperture.us>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support
  2024-04-18 13:56 [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support Giulio Benetti
  2024-04-22  1:24 ` Christian Stewart via buildroot
@ 2024-05-09 15:37 ` Thomas Petazzoni via buildroot
  2024-06-03 10:51 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-09 15:37 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

On Thu, 18 Apr 2024 15:56:15 +0200
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> When building on hosts with libstdc++ without demangle support this error
> shows up:
> checking for __cxa_demangle in -lstdc++... no
> configure: error: __cxa_demangle not found in libstdc++, use --disable-demangler to disable demangler support.
> make[1]: *** [package/pkg-generic.mk:273: /home/giuliobenetti/br_reproduce/c2524c7580d97f7387ec22da62be71d77f2ed8ec/output/build/host-elfutils-0.189/.stamp_configured] Error 1
> make: *** [Makefile:23: _all] Error 2
> 
> So let's disable demangler for host by default.
> 
> Fixes: still not showed by autobuilders. Reproduced on Ubuntu 22.04 with
> Ubuntu APT g++ 11.4.0
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
>  package/elfutils/elfutils.mk | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support
  2024-04-18 13:56 [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support Giulio Benetti
  2024-04-22  1:24 ` Christian Stewart via buildroot
  2024-05-09 15:37 ` Thomas Petazzoni via buildroot
@ 2024-06-03 10:51 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2024-06-03 10:51 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

>>>>> "Giulio" == Giulio Benetti <giulio.benetti@benettiengineering.com> writes:

 > When building on hosts with libstdc++ without demangle support this error
 > shows up:
 > checking for __cxa_demangle in -lstdc++... no
 > configure: error: __cxa_demangle not found in libstdc++, use --disable-demangler to disable demangler support.
 > make[1]: *** [package/pkg-generic.mk:273:
 > /home/giuliobenetti/br_reproduce/c2524c7580d97f7387ec22da62be71d77f2ed8ec/output/build/host-elfutils-0.189/.stamp_configured]
 > Error 1
 > make: *** [Makefile:23: _all] Error 2

 > So let's disable demangler for host by default.

 > Fixes: still not showed by autobuilders. Reproduced on Ubuntu 22.04 with
 > Ubuntu APT g++ 11.4.0

 > Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Committed to 2024.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-03 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-18 13:56 [Buildroot] [PATCH] package/elfutils: fix host build failure due to missing demangle support Giulio Benetti
2024-04-22  1:24 ` Christian Stewart via buildroot
2024-05-09 15:37 ` Thomas Petazzoni via buildroot
2024-06-03 10:51 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox