Hi Richard,

Actually , I also sent a patch for lib tool upgrade on master 
https://lists.openembedded.org/g/openembedded-core/message/242734

  I reproduced it locally and dug into why. The root cause is that -WCClinker 
was never a valid libtool flag (only -XCClinker is).
  It worked in 2.5.4 by accident, but 2.6.2 widened the passthrough pattern 
from -Wa,*|-Werror|-Werror=* to -W* (for LTO warnings),
  so now -WCClinker gets passed directly to gcc which rejects it.

  I'd go with --disable-cxx-exceptions for riscv64 — consistent with all other 
arches. The -WCClinker typo can be reported upstream to libunwind separately.

Regards,
Jaipaul
From: [email protected] 
<[email protected]> on behalf of Richard Purdie via 
lists.openembedded.org 
<[email protected]>
Date: Tuesday, 4 August 2026 at 22:13
To: [email protected] 
<[email protected]>
Cc: Khem Raj <[email protected]>
Subject: Re: [OE-core] [PATCH 5/9] libtool: 2.5.4 -> 2.6.2

On Tue, 2026-08-04 at 18:00 +0100, Richard Purdie via
lists.openembedded.org wrote:
> On Tue, 2026-08-04 at 13:23 +0100, Richard Purdie via
> lists.openembedded.org wrote:
> > Drop one patch applied upstream, refresh another.
> > Switch to xz compressed source tarball.
> >
> > Signed-off-by: Richard Purdie <[email protected]>
> > ---
> >  .../{libtool-2.5.4.inc => libtool-2.6.2.inc}  |  5 +--
> >  ...-cross_2.5.4.bb => libtool-cross_2.6.2.bb} |  0
> >  ...ative_2.5.4.bb => libtool-native_2.6.2.bb} |  0
> >  ...3-libtool-remove-help2man-dependency.patch | 17 ++++----
> >  ...r-static-libs-for-internal-compiler-.patch | 39 ---------------
> > ----
> >  .../{libtool_2.5.4.bb => libtool_2.6.2.bb}    |  0
> >  ...ol_2.5.4.bb => nativesdk-libtool_2.6.2.bb} |  0
> >  7 files changed, 10 insertions(+), 51 deletions(-)
> >  rename meta/recipes-devtools/libtool/{libtool-2.5.4.inc =>
> > libtool-2.6.2.inc} (85%)
> >  rename meta/recipes-devtools/libtool/{libtool-cross_2.5.4.bb =>
> > libtool-cross_2.6.2.bb} (100%)
> >  rename meta/recipes-devtools/libtool/{libtool-native_2.5.4.bb =>
> > libtool-native_2.6.2.bb} (100%)
> >  delete mode 100644 meta/recipes-devtools/libtool/libtool/0005-
> > libtool-Check-for-static-libs-for-internal-compiler-.patch
> >  rename meta/recipes-devtools/libtool/{libtool_2.5.4.bb =>
> > libtool_2.6.2.bb} (100%)
> >  rename meta/recipes-devtools/libtool/{nativesdk-libtool_2.5.4.bb
> > => nativesdk-libtool_2.6.2.bb} (100%)
>
> This breaks libunwind on qemuriscv64:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/45/builds/2034

There are two possible fixes I found, we can either
s/WCClinker/XCClinker/ on configure.ac or disable cxx exceptions (which
would match aarch64/x86):

diff --git a/meta/recipes-support/libunwind/libunwind_1.8.3.bb 
b/meta/recipes-support/libunwind/libunwind_1.8.3.bb
index bc1a108e42..1a3a816d78 100644
--- a/meta/recipes-support/libunwind/libunwind_1.8.3.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.8.3.bb
@@ -27,6 +27,8 @@ PACKAGECONFIG[zlib] = 
"--enable-zlibdebuginfo,--disable-zlibdebuginfo,zlib"
 PACKAGECONFIG[latexdocs] = "--enable-documentation, --disable-documentation, 
latex2man-native"

 EXTRA_OECONF = "--enable-static --disable-tests"
+EXTRA_OECONF:append:riscv64 = " --disable-cxx-exceptions"
+

 # http://errors.yoctoproject.org/Errors/Details/20487/
 ARM_INSTRUCTION_SET:armv4 = "arm"

not sure which is "right"...

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#242803): 
https://lists.openembedded.org/g/openembedded-core/message/242803
Mute This Topic: https://lists.openembedded.org/mt/120600439/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to