NetBSD Problem Report #60174
From www@netbsd.org Fri Apr 3 15:13:31 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2107D1A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 3 Apr 2026 15:13:31 +0000 (UTC)
Message-Id: <20260403151330.3B02A1A923A@mollari.NetBSD.org>
Date: Fri, 3 Apr 2026 15:13:30 +0000 (UTC)
From: opensauce04@gmail.com
Reply-To: opensauce04@gmail.com
To: gnats-bugs@NetBSD.org
Subject: wasi-compiler-rt fails to build: "Cannot compile for wasm32"
X-Send-Pr-Version: www-1.0
X-From4GNATS: "opensauce04@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60174
>Category: pkg
>Synopsis: wasi-compiler-rt fails to build: "Cannot compile for wasm32"
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 03 15:15:00 +0000 2026
>Originator: Daniel
>Release: NetBSD 11.0_RC2 / pkgsrc 2026Q1
>Organization:
>Environment:
NetBSD netbook.powerhub 11.0_RC2 NetBSD 11.0_RC2 (GENERIC) #0: Wed Mar 4 21:02:00 UTC 2026 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When attempting to build wasi-compiler-rt via pkgsrc, I receive the following error during configuration:
```
CMake Error at /usr/pkgsrc/lang/wasi-compiler-rt/work/compiler-rt-19.1.7.src/cma
ke/Modules/CompilerRTUtils.cmake:144 (message):
Cannot compile for wasm32:
Call Stack (most recent call first):
/usr/pkgsrc/lang/wasi-compiler-rt/work/compiler-rt-19.1.7.src/cmake/base-config-ix.cmake:286 (test_target_arch)
/usr/pkgsrc/lang/wasi-compiler-rt/work/compiler-rt-19.1.7.src/cmake/builtin-config-ix.cmake:247 (test_targets)
CMakeLists.txt:60 (include)
-- Configuring incomplete, errors occurred!
*** Error code 1
```
It's not clear to me what exactly is failing here. The error still occurs after a `make clean`.
>How-To-Repeat:
Attempt to build wasi-compiler-rt with pkgsrc 2026Q1 (commit b85e6e60cdb1d2acd5c62d9b5647db624c092c93) on NetBSD 11.0_RC2 (unknown if the NetBSD version has anything to do with this)
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.