[From nobody Sun Oct 25 08:25:09 2026
Received: (at submit) by bugs.debian.org; 27 Sep 2026 12:35:21 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FOURLA,HAS_PACKAGE,SPF_HELO_NONE,SPF_PASS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 28; hammy, 150; neutral, 51; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--H*UA:sk:x86_64-,
 0.000-+--H*x:sk:x86_64-, 0.000-+--Maintainer
Return-path: &lt;kenhys@xdump.org&gt;
Received: from www2150.sakura.ne.jp ([182.48.49.60]:60437)
 by buxtehude.debian.org with esmtps
 (TLS1.2:ECDHE_SECP521R1__RSA_SHA512__AES_256_GCM:256) (Exim 4.96)
 (envelope-from &lt;kenhys@xdump.org&gt;) id 1xAo6D-004Tmc-15
 for submit@bugs.debian.org; Sun, 27 Sep 2026 12:35:21 +0000
Received: from www2150.sakura.ne.jp (localhost [127.0.0.1])
 by www2150.sakura.ne.jp (8.16.1/8.16.1) with ESMTP id 68RCZGJ1052793
 for &lt;submit@bugs.debian.org&gt;; Sun, 27 Sep 2026 21:35:16 +0900 (JST)
 (envelope-from kenhys@xdump.org)
Received: from jet ([IPv6:2400:4052:1644:1400:5fa8:f9b8:d157:3da2])
 (authenticated bits=0)
 by www2150.sakura.ne.jp (8.16.1/8.16.1) with ESMTPSA id 68RCZGOg052782
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
 for &lt;submit@bugs.debian.org&gt;; Sun, 27 Sep 2026 21:35:16 +0900 (JST)
 (envelope-from kenhys@xdump.org)
DKIM-Signature: a=rsa-sha256; bh=Gnx4Nq6SmEv2RQMqSICrlTBvfjNqYmphBVkD3pMEiME=; 
 c=relaxed/relaxed; d=xdump.org;
 h=From:Message-ID:To:Subject:Date;
 s=rs20240131; t=1790512516; v=1;
 b=0OrDoBpHHpT1LeAR16bXE9fERMsK8No62XrpuivIHUHd2XHn1bsNmS2BQRkUP78G
 iaEdcaSSFKWDeGtzrWyZlqYQDMoCdn63vsxquTWM2Y0QmK4x+icUTemzPnOakzzh
 sDLC6rEkWQ4/PpWR2s/a1y2imAWc1EbVCH9NCj/s4WZDDh37tlZ+WgD+/Trxlnmu
 5V7emwDlkVBQsfG4XN3C2J+G8vLJ0E+vu8Ch8KIJFMhZM1QbpNY3jk0kvmMD/oPh
 tcZ3Jjz9ar73dlDePkqRwlCf/63DtcN0SjPqobBHnlu33qKfAgilTSgLGPbDNJc3
 YqHivS5/VVIOib5x76Dypw==
Date: Sun, 27 Sep 2026 21:35:15 +0900
From: Kentaro HAYASHI &lt;kenhys@xdump.org&gt;
To: submit@bugs.debian.org
Subject: libc++-23-dev-wasm32: please provide both EH and non-EH variants
Message-ID: &lt;20260927213515.33c3a3d1@jet&gt;
Organization: XDUMP.ORG
X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Virus-Status: clean
X-Anti-Virus-Server: fsav212.rs.sakura.ne.jp
Delivered-To: submit@bugs.debian.org

Package: libc++-23-dev-wasm32
Version: 1:23.1.2-1
Severity: normal
X-Debbugs-Cc: kenhys@xdump.org

Dear Maintainer,

* What led up to the situation?

Since LLVM 23.1.0, Clang supports separate C++ standard library
variants for WebAssembly with and without exception handling. [1][2]

[1] [WebAssembly] Clang support for exception-based lookup paths -
#185775#185775 https://github.com/llvm/llvm-project/pull/185775
[2] [WebAssembly] Move __cpp_exception to libunwind
https://github.com/llvm/llvm-project/pull/185770

The Clang driver selects the appropriate variant depending on whether
-fwasm-exceptions is specified.

Currently, however, libc++-23-dev-wasm32 is built with:

  -DLIBCXX_ENABLE_EXCEPTIONS:BOOL=OFF
  -DLIBCXXABI_ENABLE_EXCEPTIONS:BOOL=OFF
  -DLIBCXXABI_USE_LLVM_UNWINDER:BOOL=OFF
                                                                   

As a result, the Debian WASM libc++ package provides only
the non-exception-enabled variant.

To make use of the exception-based lookup paths provided by Clang,
both the exception-enabled (EH) and non-exception-enabled (non EH)
variants of libc++ and libc++abi need to be built and installed in the
locations expected by the Clang WebAssembly driver.

* What was the outcome of this action?

When -fwasm-exceptions is enabled, the Clang driver is already able to
select the exception-enabled C++ standard library variant; otherwise it
selects the non-exception-enabled variant.

However, Debian currently does not provide the exception-enabled variant
in libc++-23-dev-wasm32, so C++ applications using WebAssembly exception
handling cannot use the corresponding libc++ runtime from the Debian
package.

Please consider providing both variants in the WASM libc++/libc++abi
packages.

Best Regards,
]