Open Bug 1994063 Opened 29 days ago Updated 13 days ago

Error: building with WASI SDK 20: "ERROR: Only clang/llvm 17.0 or newer is supported (found version 16.0.0)."

Categories

(Firefox Build System :: Toolchains, defect)

Firefox 144
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: celenity, Assigned: sergesanspaille)

Details

When attempting to build Firefox with WASI SDK 20 (patched with the Taskcluster patch), I'm getting:

 0:05.86 Using wasi sysroot in /home/user/Projects/IronFox/wasi-sdk/share/wasi-sysroot
 0:05.86 checking for the wasm C compiler... /home/user/Projects/IronFox/wasi-sdk/bin/clang
 0:05.90 checking whether the wasm C compiler can be used... no
 0:05.90 DEBUG: <truncated - see config.log for full output>
 0:05.90 DEBUG: | #elif _WIN32 || __CYGWIN__
 0:05.90 DEBUG: | %KERNEL "WINNT"
 0:05.90 DEBUG: | #elif __wasi__
 0:05.90 DEBUG: | %KERNEL "WASI"
 0:05.90 DEBUG: | #endif
 0:05.90 DEBUG: | #if __ANDROID__
 0:05.90 DEBUG: | %OS "Android"
 0:05.90 DEBUG: | #endif
 0:05.90 DEBUG: | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
 0:05.90 DEBUG: | %ENDIANNESS "little"
 0:05.90 DEBUG: | #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 0:05.90 DEBUG: | %ENDIANNESS "big"
 0:05.90 DEBUG: | #endif
 0:05.91 DEBUG: Executing: `/home/user/Projects/IronFox/wasi-sdk/bin/clang /tmp/conftestb7e8hzc4.c -E`
 0:05.91 DEBUG: COMPILER = clang
 0:05.91 DEBUG: VERSION = 16.0.0
 0:05.91 DEBUG: STDC_VERSION = 201710L
 0:05.91 DEBUG: CPU = wasm32
 0:05.91 DEBUG: KERNEL = WASI
 0:05.91 DEBUG: ENDIANNESS = little
 0:05.91 ERROR: Only clang/llvm 17.0 or newer is supported (found version 16.0.0).
*** Fix above errors and then restart with "./mach build"

This appears to be related to Bug 1981918, which changed the minimum clang version to 17.0, despite WASI SDK 20 using 16.0.

Please let me know if you need any further details.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Toolchains' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Toolchains

My understanding, based on https://searchfox.org/firefox-main/source/taskcluster/scripts/misc/build-sysroot-wasi.sh#20, is that you only partially patched the SDK as the taskcluster version also replaces the clang compiler by a more recent one.

Priority: -- → P4
Assignee: nobody → sguelton
Severity: -- → S4
Priority: P4 → --
You need to log in before you can comment on or make changes to this bug.