[llvm] [Object][WebAssembly] Make Wasm read failures recoverable (PR #215102)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 00:23:47 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
The build failed before running any tests. Click on a failure below to see the details.
<details>
<summary>lib/Object/CMakeFiles/LLVMObject.dir/WasmObjectFile.cpp.o</summary>
```
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/WasmObjectFile.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/Object -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/WasmObjectFile.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/WasmObjectFile.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/WasmObjectFile.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1017:23: error: no matching function for call to 'readVaruint64'
1017 | auto Size = readVaruint64(Ctx);
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:193:14: note: candidate function not viable: requires 2 arguments, but 1 was provided
193 | static Error readVaruint64(WasmObjectFile::ReadContext &Ctx, uint64_t &Result) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1018:28: error: no matching function for call to 'readUint8'
1018 | auto Alignment = readUint8(Ctx);
| ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:92:14: note: candidate function not viable: requires 2 arguments, but 1 was provided
92 | static Error readUint8(WasmObjectFile::ReadContext &Ctx, uint8_t &Result) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1021:24: error: no matching function for call to 'readVaruint32'
1021 | auto Index = readVaruint32(Ctx);
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:179:14: note: candidate function not viable: requires 2 arguments, but 1 was provided
179 | static Error readVaruint32(WasmObjectFile::ReadContext &Ctx, uint32_t &Result) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1022:25: error: no matching function for call to 'readVaruint64'
1022 | auto Offset = readVaruint64(Ctx);
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:193:14: note: candidate function not viable: requires 2 arguments, but 1 was provided
193 | static Error readVaruint64(WasmObjectFile::ReadContext &Ctx, uint64_t &Result) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1023:23: error: no matching function for call to 'readVaruint64'
1023 | auto Size = readVaruint64(Ctx);
| ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:193:14: note: candidate function not viable: requires 2 arguments, but 1 was provided
193 | static Error readVaruint64(WasmObjectFile::ReadContext &Ctx, uint64_t &Result) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1020:11: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
1020 | } else {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1110:67: error: function definition is not allowed here
1110 | Error WasmObjectFile::parseLinkingSectionComdat(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1178:63: error: function definition is not allowed here
1178 | Error WasmObjectFile::parseProducersSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1229:68: error: function definition is not allowed here
1229 | Error WasmObjectFile::parseTargetFeaturesSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1264:75: error: function definition is not allowed here
1264 | Error WasmObjectFile::parseRelocSection(StringRef Name, ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1431:78: error: function definition is not allowed here
1431 | Error WasmObjectFile::parseCustomSection(WasmSection &Sec, ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1457:58: error: function definition is not allowed here
1457 | Error WasmObjectFile::parseTypeSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1572:75: error: function definition is not allowed here
1572 | Error WasmObjectFile::parseImport(ReadContext &Ctx, wasm::WasmImport &Im) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1633:60: error: function definition is not allowed here
1633 | Error WasmObjectFile::parseImportSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1679:62: error: function definition is not allowed here
1679 | Error WasmObjectFile::parseFunctionSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1702:59: error: function definition is not allowed here
1702 | Error WasmObjectFile::parseTableSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1729:60: error: function definition is not allowed here
1729 | Error WasmObjectFile::parseMemorySection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1748:57: error: function definition is not allowed here
1748 | Error WasmObjectFile::parseTagSection(ReadContext &Ctx) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Object/WasmObjectFile.cpp:1781:60: error: function definition is not allowed here
1781 | Error WasmObjectFile::parseGlobalSection(ReadContext &Ctx) {
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/215102
More information about the llvm-commits
mailing list