Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasi] Single file build fails with AOT #95273

Closed
ilonatommy opened this issue Nov 27, 2023 · 2 comments · Fixed by #95307
Closed

[wasi] Single file build fails with AOT #95273

ilonatommy opened this issue Nov 27, 2023 · 2 comments · Fixed by #95307
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono disabled-test The test is disabled in source code against the issue os-wasi Related to WASI variant of arch-wasm

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Nov 27, 2023

This will show up after adding new AOT tests on wasi in #95281.

        Stack Trace:
          C:\Users\source\repos\runtime-fork\src\mono\wasi\Wasi.Build.Tests\BuildTestBase.cs(445,0): at Wasm.Build.Tests.BuildTestBase.AssertBuild(String args, String label, Boolean expectSuccess, IDictionary`2 envVars, Nullable`1 timeoutMs)
          C:\Users\source\repos\runtime-fork\src\mono\wasi\Wasi.Build.Tests\BuildTestBase.cs(255,0): at Wasm.Build.Tests.BuildTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options)
          C:\Users\source\repos\runtime-fork\src\mono\wasi\Wasi.Build.Tests\BuildThenPublish.cs(50,0): at Wasi.Build.Tests.BuildThenPublishTests.ConsoleBuildThenPublish(String config, Boolean aot, Boolean singleFileBundle)
             at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
             at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        Output:
          [] Executing (Captured Output) - C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\dotnet.exe new wasiconsole  -  in pwd C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc
          [] The template "Wasi Console App" was created successfully.
          [] 
          -------- Building ---------
          Binlog path: C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\xharness-output\logs\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.binlog
          Building Debug_dslxjqc1_otc in C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc
          Running C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\dotnet.exe build  /p:Configuration=Debug /bl:"C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\xharness-output\logs\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.binlog" /nologo /v:minimal
          WorkingDirectory: C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc
          Setting environment variables for execution:
          	DOTNET_ROOT = C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest
          	DOTNET_INSTALL_DIR = C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest
          	DOTNET_MULTILEVEL_LOOKUP = 0
          	DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
          	PATH = C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest;C:\Users\source\repos\runtime-fork\artifacts\bin\\dotnet-latest;C:\Users\source\repos\runtime-fork\artifacts\obj\wasmtime\
          	EM_WORKAROUND_PYTHON_BUG_34780 = 1
          	WASI_SDK_PATH = C:\Users\source\repos\runtime-fork\src\mono\wasi\wasi-sdk
          	NUGET_PACKAGES = C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\nuget\Debug_dslxjqc1_otc
          [Debug_dslxjqc1_otc]   Determining projects to restore...
          [Debug_dslxjqc1_otc]   Restored C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj (in 3,58 sec).
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\sdk\9.0.100-alpha.1.23564.26\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc]   Debug_dslxjqc1_otc -> C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\bin\Debug\net8.0\wasi-wasm\Debug_dslxjqc1_otc.dll
          [Debug_dslxjqc1_otc]   ** MicrosoftNetCoreAppRuntimePackDir : 'C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev'
          [Debug_dslxjqc1_otc]   MicrosoftNetCoreAppRuntimePackRidNativeDir: C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\
          [Debug_dslxjqc1_otc]   Compiling native assets using C:\Users\source\repos\runtime-fork\src\mono\wasi\wasi-sdk\bin\clang.exe with -O1. This may take a while ...
          [Debug_dslxjqc1_otc]   [1/5] stubs.c -> stubs.o [took 0,26s]
          [Debug_dslxjqc1_otc]   [2/5] synthetic-pthread.c -> synthetic-pthread.o [took 0,30s]
          [Debug_dslxjqc1_otc]   [3/5] pinvoke.c -> pinvoke.o [took 0,32s]
          [Debug_dslxjqc1_otc]   [4/5] main.c -> main.o [took 0,35s]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : Failed to compile C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\driver.c -> C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\obj\Debug\net8.0\wasi-wasm\wasm\for-build\driver.o [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>C:\WINDOWS\System32\chcp.com 65001 1>nul  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>setlocal [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>set errorlevel=dummy  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>set errorlevel=  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>C:\Users\source\repos\runtime-fork\src\mono\wasi\wasi-sdk\bin\clang.exe "@C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\wasi-default.rsp"  "@C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\obj\Debug\net8.0\wasi-wasm\wasm\for-build\wasi-compile.rsp" -c -o "C:\Users\AppData\Local\Temp\tmpiipfiv.tmp" "C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\driver.c"  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\driver.c:473:2: error: call to undeclared function 'register_aot_modules'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error :         register_aot_modules (); [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error :         ^ [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : 1 error generated. [took 0,39s] [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] 
          [Debug_dslxjqc1_otc] Build FAILED.
@ilonatommy ilonatommy added arch-wasm WebAssembly architecture disabled-test The test is disabled in source code against the issue area-VM-meta-mono os-wasi Related to WASI variant of arch-wasm labels Nov 27, 2023
@ghost
Copy link

ghost commented Nov 27, 2023

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

Issue Details

This will show up after adding new AOT tests on wasi.

        Stack Trace:
          C:\Users\source\repos\runtime-fork\src\mono\wasi\Wasi.Build.Tests\BuildTestBase.cs(445,0): at Wasm.Build.Tests.BuildTestBase.AssertBuild(String args, String label, Boolean expectSuccess, IDictionary`2 envVars, Nullable`1 timeoutMs)
          C:\Users\source\repos\runtime-fork\src\mono\wasi\Wasi.Build.Tests\BuildTestBase.cs(255,0): at Wasm.Build.Tests.BuildTestBase.BuildProject(BuildArgs buildArgs, String id, BuildProjectOptions options)
          C:\Users\source\repos\runtime-fork\src\mono\wasi\Wasi.Build.Tests\BuildThenPublish.cs(50,0): at Wasi.Build.Tests.BuildThenPublishTests.ConsoleBuildThenPublish(String config, Boolean aot, Boolean singleFileBundle)
             at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
             at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
        Output:
          [] Executing (Captured Output) - C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\dotnet.exe new wasiconsole  -  in pwd C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc
          [] The template "Wasi Console App" was created successfully.
          [] 
          -------- Building ---------
          Binlog path: C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\xharness-output\logs\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.binlog
          Building Debug_dslxjqc1_otc in C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc
          Running C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\dotnet.exe build  /p:Configuration=Debug /bl:"C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\xharness-output\logs\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.binlog" /nologo /v:minimal
          WorkingDirectory: C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc
          Setting environment variables for execution:
          	DOTNET_ROOT = C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest
          	DOTNET_INSTALL_DIR = C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest
          	DOTNET_MULTILEVEL_LOOKUP = 0
          	DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
          	PATH = C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest;C:\Users\source\repos\runtime-fork\artifacts\bin\\dotnet-latest;C:\Users\source\repos\runtime-fork\artifacts\obj\wasmtime\
          	EM_WORKAROUND_PYTHON_BUG_34780 = 1
          	WASI_SDK_PATH = C:\Users\source\repos\runtime-fork\src\mono\wasi\wasi-sdk
          	NUGET_PACKAGES = C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\nuget\Debug_dslxjqc1_otc
          [Debug_dslxjqc1_otc]   Determining projects to restore...
          [Debug_dslxjqc1_otc]   Restored C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj (in 3,58 sec).
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\sdk\9.0.100-alpha.1.23564.26\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc]   Debug_dslxjqc1_otc -> C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\bin\Debug\net8.0\wasi-wasm\Debug_dslxjqc1_otc.dll
          [Debug_dslxjqc1_otc]   ** MicrosoftNetCoreAppRuntimePackDir : 'C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev'
          [Debug_dslxjqc1_otc]   MicrosoftNetCoreAppRuntimePackRidNativeDir: C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\
          [Debug_dslxjqc1_otc]   Compiling native assets using C:\Users\source\repos\runtime-fork\src\mono\wasi\wasi-sdk\bin\clang.exe with -O1. This may take a while ...
          [Debug_dslxjqc1_otc]   [1/5] stubs.c -> stubs.o [took 0,26s]
          [Debug_dslxjqc1_otc]   [2/5] synthetic-pthread.c -> synthetic-pthread.o [took 0,30s]
          [Debug_dslxjqc1_otc]   [3/5] pinvoke.c -> pinvoke.o [took 0,32s]
          [Debug_dslxjqc1_otc]   [4/5] main.c -> main.o [took 0,35s]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : Failed to compile C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\driver.c -> C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\obj\Debug\net8.0\wasi-wasm\wasm\for-build\driver.o [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>C:\WINDOWS\System32\chcp.com 65001 1>nul  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>setlocal [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>set errorlevel=dummy  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>set errorlevel=  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc>C:\Users\source\repos\runtime-fork\src\mono\wasi\wasi-sdk\bin\clang.exe "@C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\wasi-default.rsp"  "@C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\obj\Debug\net8.0\wasi-wasm\wasm\for-build\wasi-compile.rsp" -c -o "C:\Users\AppData\Local\Temp\tmpiipfiv.tmp" "C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\driver.c"  [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NETCore.App.Runtime.Mono.wasi-wasm\9.0.0-dev\runtimes\wasi-wasm\native\src\driver.c:473:2: error: call to undeclared function 'register_aot_modules'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error :         register_aot_modules (); [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error :         ^ [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] C:\Users\source\repos\runtime-fork\artifacts\bin\dotnet-latest\packs\Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk\9.0.0-dev\Sdk\WasiApp.Native.targets(273,5): error : 1 error generated. [took 0,39s] [C:\Users\source\repos\runtime-fork\artifacts\bin\Wasi.Build.Tests\Release\net8.0\wasi-wasm\wbt\Debug_dslxjqc1_otc\Debug_dslxjqc1_otc.csproj]
          [Debug_dslxjqc1_otc] 
          [Debug_dslxjqc1_otc] Build FAILED.
Author: ilonatommy
Assignees: -
Labels:

arch-wasm, disabled-test, area-VM-meta-mono, os-wasi

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 27, 2023
@ilonatommy ilonatommy changed the title [wasi] Single file build and publish fails with AOT [wasi] Single file build, run and publish fails with AOT Nov 27, 2023
@ilonatommy ilonatommy changed the title [wasi] Single file build, run and publish fails with AOT [wasi] Single file build fails with AOT Nov 27, 2023
@radical radical self-assigned this Nov 27, 2023
radical added a commit to radical/runtime that referenced this issue Nov 28, 2023
This follows the convention from `WasmApp.*targets` of writing to `.rsp`
files, and then adding them to the dependencies to trigger native
relinking.

Fixes dotnet#95192 .
Fixes dotnet#95273 .
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Nov 28, 2023
lewing pushed a commit that referenced this issue Nov 28, 2023
This follows the convention from `WasmApp.*targets` of writing to `.rsp`
files, and then adding them to the dependencies to trigger native
relinking.

Fixes #95192 .
Fixes #95273 .
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Nov 28, 2023
@ilonatommy ilonatommy reopened this Dec 1, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Dec 1, 2023
@radical
Copy link
Member

radical commented Dec 2, 2023

This is fixed. Your branch needed to merge main, specifically to get #95426 .
I tested #95281 locally with main merged, and it passes.

@radical radical closed this as completed Dec 2, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Dec 2, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono disabled-test The test is disabled in source code against the issue os-wasi Related to WASI variant of arch-wasm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants