Skip to content

[WASI] build is broken #119100

Closed
Closed

Description

@pavelsavara

Unfortunately we don't run WASI builds on PRs anymore

Log

  FAILED: mono/minipal/minipal/CMakeFiles/minipal_objects.dir/descriptorlimit.c.obj 
  D:\a\_work\1\s\src\mono\wasi\wasi-sdk\bin\clang.exe --target=wasm32-wasip2 --sysroot=D:/a/_work/1/s/src/mono/wasi/wasi-sdk/share/wasi-sysroot -DCOMPILER_SUPPORTS_W_RESERVED_IDENTIFIER -DDISABLE_EGD_SOCKET -DDISABLE_EVENTPIPE -DHAVE_CONFIG_H -DHOST_WASI -D_THREAD_SAFE -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_PROCESS_CLOCKS -D_WASI_EMULATED_PTHREAD -D_WASI_EMULATED_SIGNAL -ID:/a/_work/1/s/artifacts/obj -ID:/a/_work/1/s/src/native -ID:/a/_work/1/s/artifacts/obj/mono/wasi.wasm.Release/mono/minipal/minipal "-ID:/a/_work/1/s/src/mono/wasi/include" "-ID:/a/_work/1/s/src/mono/wasi/mono-include" "-ID:/a/_work/1/s/src/native/public" "-ID:/a/_work/1/s/src/mono/mono/eglib" -D_WASI_EMULATED_PROCESS_CLOCKS -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_PTHREAD -fno-strict-aliasing -fwrapv -Wall -Wunused -Wmissing-declarations -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -Wno-format-zero-length -Wno-unused-function -Qunused-arguments -Wno-tautological-compare -Wno-parentheses-equality -Wno-self-assign -Wno-return-stack-address -Wno-constant-logical-operand -Wno-zero-length-array -Wno-asm-operand-widths -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Werror=return-type -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Werror -O3 -DNDEBUG -std=gnu11   -g -fPIC -fvisibility=hidden -Wno-strict-prototypes -Wno-unused-but-set-variable -Os -ffp-contract=off -MD -MT mono/minipal/minipal/CMakeFiles/minipal_objects.dir/descriptorlimit.c.obj -MF mono\minipal\minipal\CMakeFiles\minipal_objects.dir\descriptorlimit.c.obj.d -o mono/minipal/minipal/CMakeFiles/minipal_objects.dir/descriptorlimit.c.obj -c D:/a/_work/1/s/src/native/minipal/descriptorlimit.c
  D:/a/_work/1/s/src/native/minipal/descriptorlimit.c:21:19: error: variable has incomplete type 'struct rlimit'
     21 |     struct rlimit rlp;
        |                   ^
  D:/a/_work/1/s/src/native/minipal/descriptorlimit.c:21:12: note: forward declaration of 'struct rlimit'
     21 |     struct rlimit rlp;
        |            ^
  D:/a/_work/1/s/src/native/minipal/descriptorlimit.c:24:14: error: call to undeclared function 'getrlimit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     24 |     result = getrlimit(RLIMIT_NOFILE, &rlp);
        |              ^
  D:/a/_work/1/s/src/native/minipal/descriptorlimit.c:24:24: error: use of undeclared identifier 'RLIMIT_NOFILE'
     24 |     result = getrlimit(RLIMIT_NOFILE, &rlp);
        |                        ^
  D:/a/_work/1/s/src/native/minipal/descriptorlimit.c:40:14: error: call to undeclared function 'setrlimit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     40 |     result = setrlimit(RLIMIT_NOFILE, &rlp);
        |              ^
  D:/a/_work/1/s/src/native/minipal/descriptorlimit.c:40:24: error: use of undeclared identifier 'RLIMIT_NOFILE'
  
     40 |     result = setrlimit(RLIMIT_NOFILE, &rlp);
  
        |                        ^

Activity

  1. self-assigned this
    on Aug 26, 2025
  2. added
    untriaged
    on Aug 26, 2025
  3. added
    arch-wasm
    and removed
    untriaged
    on Aug 26, 2025
  4. added
    needs-area-label
    on Aug 26, 2025
  5. added
    os-wasi
    and removed
    needs-area-label
    on Aug 26, 2025
  6. added this to the 11.0.0 milestone on Aug 26, 2025
  7. dotnet-policy-service commented on Aug 26, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing
    See info in area-owners.md if you want to be subscribed.

  8. locked and limited conversation to collaborators on Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

arch-wasmarea-Build-monoos-wasi

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions