public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 1/2] flac: fix compile failed on musl
@ 2026-01-13 12:45 Hongxu Jia
  2026-01-13 12:45 ` [PATCH 2/2] webkitgtk: upgrade 2.50.0 -> 2.50.4 Hongxu Jia
  2026-01-19 18:07 ` [OE-core] [PATCH 1/2] flac: fix compile failed on musl Ross Burton
  0 siblings, 2 replies; 7+ messages in thread
From: Hongxu Jia @ 2026-01-13 12:45 UTC (permalink / raw)
  To: openembedded-core, alex, mathieu.dubois-briand

$ echo "TCLIBC = 'musl'" >> conf/local.conf
$ echo "MACHINE = 'qemux86'" >> conf/local.conf
$ bitbake flac
...
| libtool: link: (cd .libs/libFLAC++-static.lax/libFLAC-static.a && i686-oe-linux-musl-gcc-arx
"/buildarea5/hjia/oe-core/build/tmp/work/core2-32-oe-linux-musl/flac/1.5.0/build/src/libFLAC++/
../libFLAC/.libs/libFLAC-static.a")
| build/tmp/work/core2-32-oe-linux-musl/flac/1.5.0/recipe-sysroot-native/usr/bin/
i686-oe-linux-musl/../../libexec/i686-oe-linux-musl/gcc/i686-oe-linux-musl/15.2.0/ld:
.libs/metadata.o: in function `FLAC::Metadata::VorbisCo
mment::set_comment(unsigned int, FLAC::Metadata::VorbisComment::Entry const&)':
| /usr/src/debug/flac/1.5.0/src/libFLAC++/metadata.cpp:913:(.text+0x2032): undefined reference to `__stack_chk_fail_local'
...

Disable stack smash protection to workaround the failure

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-multimedia/flac/flac_1.5.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-multimedia/flac/flac_1.5.0.bb b/meta/recipes-multimedia/flac/flac_1.5.0.bb
index d6df801aec..1813b75faa 100644
--- a/meta/recipes-multimedia/flac/flac_1.5.0.bb
+++ b/meta/recipes-multimedia/flac/flac_1.5.0.bb
@@ -26,6 +26,10 @@ EXTRA_OECONF = "--disable-oggtest \
                 --without-libiconv-prefix \
                 "
 
+# /usr/src/debug/flac/1.5.0/src/libFLAC++/metadata.cpp:913:
+# (.text+0x2032): undefined reference to `__stack_chk_fail_local'
+EXTRA_OECONF:append:libc-musl = " --disable-stack-smash-protection"
+
 PACKAGECONFIG ??= " \
     ogg \
 "
-- 
2.34.1



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

end of thread, other threads:[~2026-01-19 18:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-13 12:45 [PATCH 1/2] flac: fix compile failed on musl Hongxu Jia
2026-01-13 12:45 ` [PATCH 2/2] webkitgtk: upgrade 2.50.0 -> 2.50.4 Hongxu Jia
2026-01-13 15:25   ` [OE-core] " Alexander Kanavin
2026-01-14  2:15     ` Hongxu Jia
     [not found]     ` <188A774745AD7FE0.3093368@lists.openembedded.org>
2026-01-19  2:26       ` Hongxu Jia
2026-01-19 12:45         ` Alexander Kanavin
2026-01-19 18:07 ` [OE-core] [PATCH 1/2] flac: fix compile failed on musl Ross Burton

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