Open danielbichuetti opened 2 years ago
@danielbichuetti Can you please share the repo if it's public? Is it a .NET 7 app? /cc @Reshmi-Sriram
@danielbichuetti Can you please share the repo if it's public? Is it a .NET 7 app? /cc @Reshmi-Sriram
@anthonychu This repo is private from an organization. But it's not .NET 7. It builds fine on .NET 6.0.2 locally and on docker. It appears that the GitHub Action downloads it in place of .NET 6.0. Here is partial output:
Oryx Version: 0.2.20220131.3, Commit: ec344c0588434615[25](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:25)ff03b46031553b6e15a47a, ReleaseTagName: 20220131.3
Build Operation ID: |I3br5UieRwU=.8ca7d9c1_
Repository Commit : 3a59f5ea60d46e3c9[29](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:29)bacea4a0abfe44ee[38](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:38)0c8
Detecting platforms...
Detected following platforms:
dotnet: 6.0.0
Version '6.0.0' of platform 'dotnet' is not installed. Generating script to install it...
Source directory : /github/workspace/src/Client
Destination directory: /bin/staticsites/ss-oryx/app
Downloading and extracting 'dotnet' version '7.0.100-preview.1.22110.4' to '/opt/dotnet/7.0.100-preview.1.22110.4'...
Downloaded in 6 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: dotnet...
Done in 10 sec(s).
image detector file exists, platform is dotnet..
image detector file exists, image is jamstack based..
Symlink directory name: jamstack
folder: /opt/dotnet/3.1.[41](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:41)5/shared/Microsoft.AspNetCore.App/3.1.21
directory: /opt/dotnet/3.1.415/shared/Microsoft.NETCore.App/3.1.21
folder: /opt/dotnet/3.1.415/host/fxr/3.1.21
/opt/dotnet/3.1.415/sdk/3.1.415 is missing, creating ...
/opt/dotnet/3.1.415/packs/Microsoft.AspNetCore.App.Ref/3.1.10 is missing, creating ...
/opt/dotnet/3.1.415/packs/NETStandard.Library.Ref/2.1.0 is missing, creating ...
/opt/dotnet/3.1.415/packs/Microsoft.NETCore.App.Ref/3.1.0 is missing, creating ...
/opt/dotnet/3.1.415/packs/Microsoft.NETCore.App.Host.linux-x[64](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:64)/3.1.21 is missing, creating ...
/opt/dotnet/3.1.415/shared/Microsoft.AspNetCore.App/3.1.21 is missing, creating ...
/opt/dotnet/3.1.415/shared/Microsoft.NETCore.App/3.1.21 is missing, creating ...
/opt/dotnet/3.1.415/templates/3.1.22 is missing, creating ...
/opt/dotnet/3.1.415/host/fxr/3.1.21 is missing, creating ...
/opt/dotnet/3.1.415/sdk/3.1.415 is missing, creating ...
/opt/dotnet/3.1.415/templates/3.1.22 is missing, creating ...
folder: /opt/dotnet/7.0.100-preview.1.22110.4/shared/Microsoft.AspNetCore.App/7.0.0-preview.1.22109.13
directory: /opt/dotnet/7.0.100-preview.1.22110.4/shared/Microsoft.NETCore.App/7.0.0-preview.1.220[76](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:76).8
folder: /opt/dotnet/7.0.100-preview.1.22110.4/host/fxr/7.0.0-preview.1.22076.8
/opt/dotnet/7.0.100-preview.1.22110.4/packs/NETStandard.Library.Ref/2.1.0 is missing, creating ...
/opt/dotnet/7.0.100-preview.1.22110.4/sdk-manifests/7.0.100 is missing, creating ...
/opt/dotnet/7.0.100-preview.1.22110.4/sdk/7.0.100-preview.1.22110.4 is missing, creating ...
/opt/dotnet/7.0.100-preview.1.22110.4/templates/7.0.0-preview.1.22109.13 is missing, creating ...
/opt/dotnet/7.0.100-preview.1.22110.4/sdk-manifests/7.0.100 is missing, creating ...
Using .NET Core SDK Version: 7.0.100-preview.1.22110.4
Running '/opt/dotnet/7.0.100-preview.1.22110.4/dotnet workload install wasm-tools'...
Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.100-preview.1.22110.4
And later on I can see WebAssembly is from 7.0:
Installing pack Microsoft.NET.Runtime.WebAssembly.Sdk version 7.0.0-preview.1.22076.8...
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Writing workload pack installation record for Microsoft.NET.Runtime.WebAssembly.Sdk version 7.0.0-preview.1.22076.8...
Installing pack Microsoft.NETCore.App.Runtime.Mono.browser-wasm version 7.0.0-preview.1.22076.8...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.browser-wasm version 7.0.0-preview.1.22076.8...
Installing pack Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm version 7.0.0-preview.1.22076.8...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm version 7.0.0-preview.1.22076.8...
Installing pack Microsoft.NET.Runtime.MonoAOTCompiler.Task version 7.0.0-preview.1.22076.8...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoAOTCompiler.Task version 7.0.0-preview.1.22076.8...
Installing pack Microsoft.NET.Runtime.MonoTargets.Sdk version 7.0.0-preview.1.22076.8...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoTargets.Sdk version 7.0.0-preview.1.22076.8...
Installing pack Microsoft.NET.Runtime.Emscripten.Node version 7.0.0-preview.1.22071.1...
Writing workload pack installation record for Microsoft.NET.Runtime.Emscripten.Node version 7.0.0-preview.1.22071.1...
Installing pack Microsoft.NET.Runtime.Emscripten.Sdk version 7.0.0-preview.1.22071.1...
Writing workload pack installation record for Microsoft.NET.Runtime.Emscripten.Sdk version 7.0.0-preview.1.22071.1...
Garbage collecting for SDK feature band(s) 7.0.100-preview.1...
Successfully installed workload(s) wasm-tools.
Determining projects to restore...
Restored /github/workspace/src/Shared/Shared.csproj (in 898 ms).
Restored /github/workspace/src/Client/Client.csproj (in 2.99 sec).
Publishing to directory /bin/staticsites/ss-oryx/app...
Microsoft (R) Build Engine version 17.2.0-preview-22104-01+09bdfae16 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for restore.
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
Then after compilation when system tries to optimize the compilation, it throws errors.
Client -> /github/workspace/src/Client/bin/Release/net6.0/Intelijus.UI.Client.dll
Client (Blazor output) -> /github/workspace/src/Client/bin/Release/net6.0/wwwroot
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
Shared -> /github/workspace/src/Shared/bin/Release/net6.0/Intelijus.Shared.dll
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets([282](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:282),5): warning : Failed to generate icall function for method '[System.Private.CoreLib] System.Enum::InternalHasFlag' because type 'System.Enum' is not supported for parameter named 'flags'. Ignoring. [/github/workspace/src/Client/Client.csproj]
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets(282,5): warning : Failed to generate icall function for method '[System.Private.CoreLib] System.RuntimeType::GetCorrespondingInflatedConstructor' because type 'System.Reflection.ConstructorInfo' is not supported for parameter named ''. Ignoring. [/github/workspace/src/Client/Client.csproj]
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets(282,5): warning : Failed to generate icall function for method '[System.Private.CoreLib] System.RuntimeType::MakePointerType' because type 'System.Type' is not supported for parameter named ''. Ignoring. [/github/workspace/src/Client/Client.csproj]
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets(282,5): warning : Failed to generate icall function for method '[System.Private.CoreLib] System.RuntimeTypeHandle::IsGenericVariable' because type 'System.RuntimeType' is not supported for parameter named ''. Ignoring. [/github/workspace/src/Client/Client.csproj]
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets(282,5): warning : Failed to generate icall function for method '[System.Private.CoreLib] System.Reflection.RuntimeAssembly::get_code_base' because type 'System.Reflection.Assembly' is not supported for parameter named ''. Ignoring. [/github/workspace/src/Client/Client.csproj]
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets(282,5): warning : Failed to generate icall function for method '[System.Private.CoreLib] System.Reflection.RuntimeAssembly::get_fullname' because type 'System.Reflection.Assembly' is not supported for parameter named ''. Ignoring. [/github/workspace/src/Client/Client.csproj]
Compiling native assets with emcc with -Oz. This may take a while ...
[1/3] pinvoke.c -> pinvoke.o [took 0.17s]
[2/3] driver.c -> driver.o [took 0.24s]
[3/3] corebindings.c -> corebindings.o [took 0.16s]
Linking with emcc with -O2. This may take a while ...
"/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/bin/wasm-ld" -o /github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/dotnet.wasm /github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/pinvoke.o /github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/driver.o /github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/corebindings.o /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libicui18n.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libicuuc.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-component-debugger-stub-static.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-component-diagnostics_tracing-stub-static.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-component-hot_reload-stub-static.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-ee-interp.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-icall-table.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-ilgen.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmono-profiler-aot.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libmonosgen-2.0.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libSystem.IO.Compression.Native.a /var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/libSystem.Native.a -L/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libgl.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libal.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libhtml5.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libcompiler_rt.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libc++.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libc++abi.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libc_rt_wasm.a /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/cache/sysroot/lib/wasm32-emscripten/libsockets.a -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --allow-undefined --export putchar --export stackSave --export stackRestore --export stackAlloc --export __wasm_call_ctors --export __errno_location --export malloc --export free --export __cxa_is_pointer_type --export __cxa_can_catch --export setThrew --export _get_tzname --export _get_daylight --export _get_timezone --export ntohs --export htons --export htonl --export memset --export memalign --export emscripten_main_thread_process_queued_calls --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-table -z stack-size=524[288](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:288)0 --initial-memory=536870912 --no-entry --max-memory=2147483648 --global-base=1024
"/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/bin/wasm-emscripten-finalize" --minimize-wasm-changes -g --dyncalls-i64 /github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/dotnet.wasm -o /github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/dotnet.wasm --detect-features
"/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Node.linux-x64/7.0.0-preview.1.22071.1/tools/bin/node" /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/src/compiler.js /tmp/tmpv025t7gz.txt
EXEC : error : undefined symbol: dotnet_browser_entropy (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols [/github/workspace/src/Client/Client.csproj]
EXEC : warning : To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0` [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _dotnet_browser_entropy may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_set_timeout (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_set_timeout may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_add_event_listener (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_add_event_listener may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_create_cs_owned_object (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_create_cs_owned_object may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_get_by_index (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_get_by_index may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_get_global_object (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_get_global_object may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_get_object_property (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_get_object_property may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_invoke_js_blazor (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_invoke_js_blazor may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_invoke_js_marshalled (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_invoke_js_marshalled may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_invoke_js_unmarshalled (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_invoke_js_unmarshalled may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_invoke_js_with_args (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_invoke_js_with_args may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_release_cs_owned_object (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_release_cs_owned_object may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_remove_event_listener (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_remove_event_listener may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_set_by_index (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_set_by_index may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_set_object_property (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_set_object_property may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_typed_array_copy_from (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_typed_array_copy_from may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_typed_array_copy_to (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_typed_array_copy_to may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_typed_array_from (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_typed_array_from may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: mono_wasm_typed_array_to_array (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _mono_wasm_typed_array_to_array may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: schedule_background_exec (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _schedule_background_exec may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: ves_icall_RuntimeTypeHandle_GetMetadataToken_raw (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _ves_icall_RuntimeTypeHandle_GetMetadataToken_raw may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: ves_icall_RuntimeTypeHandle_is_subclass_of_raw (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _ves_icall_RuntimeTypeHandle_is_subclass_of_raw may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: ves_icall_RuntimeType_GetGenericArgumentsInternal_raw (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _ves_icall_RuntimeType_GetGenericArgumentsInternal_raw may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: ves_icall_System_Enum_InternalBoxEnum_raw (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _ves_icall_System_Enum_InternalBoxEnum_raw may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: ves_icall_System_Enum_InternalGetUnderlyingType_raw (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _ves_icall_System_Enum_InternalGetUnderlyingType_raw may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : undefined symbol: ves_icall_System_RuntimeType_CreateInstanceInternal_raw (referenced by top-level compiled C/C++ code) [/github/workspace/src/Client/Client.csproj]
EXEC : warning : _ves_icall_System_RuntimeType_CreateInstanceInternal_raw may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/github/workspace/src/Client/Client.csproj]
EXEC : error : Aborting compilation due to previous errors [/github/workspace/src/Client/Client.csproj]
emcc : error : '/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Node.linux-x64/7.0.0-preview.1.22071.1/tools/bin/node /opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64/7.0.0-preview.1.22071.1/tools/emscripten/src/compiler.js /tmp/tmpv025t7gz.txt' failed (returned 1) [/github/workspace/src/Client/Client.csproj]
/opt/dotnet/7.0.100-preview.1.22110.4/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.0-preview.1.22076.8/Sdk/WasmApp.Native.targets(401,5): error MSB[307](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:307)3: The command "emcc "@/var/nuget/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.1/runtimes/browser-wasm/native/src/emcc-default.rsp" "@/github/workspace/src/Client/obj/Release/net6.0/wasm/for-publish/emcc-link.rsp"" exited with code 1. [/github/workspace/src/Client/Client.csproj]
---End of Oryx build logs---
Oryx has failed to build the solution.
For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
Maybe we got one .NET 7 Preview WASM issue as other errors refers to the WASM libs. Can't you change GitHub Action to use latest .NET 6 update 'till this issue is found and fixed ?
Indeed I just checked the latest working workflow and it runs without .NET 7 Preview as you can confirm on logs:
Using .NET Core SDK Version: 6.0.100
Running '/opt/dotnet/6.0.100/dotnet workload install wasm-tools'...
Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100
@william-msft can you please take a look? Did .NET 7 start becoming available in Oryx recently?
@danielbichuetti Can you confirm that the app is working when you target .NET 6, and the problem was because it was because it was targetting .NET 7?
@anthonychu The default GitHub workflow was working correctly when Oryx used .NET 6. I updated with an old log (the one with the .NET 6 version), which was working. The target SDK has always been .NET 6. But GitHub Action used by Statics Web Apps is using .NET 7 Preview since 3 days ago. Unsure why, if script that is making this bad download is from Oryx or from SWA. As per first logs you see it says it will load .NET 6 but then installs .NET 7.
Build Operation ID: |I3br5UieRwU=.8ca7d9c1_
Repository Commit : 3a59f5ea60d46e3c9[29](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:29)bacea4a0abfe44ee[38](https://github.com/mobiiti/Intelijus/runs/5485214366?check_suite_focus=true#step:4:38)0c8
Detecting platforms...
Detected following platforms:
dotnet: 6.0.0
Version '6.0.0' of platform 'dotnet' is not installed. Generating script to install it...
Source directory : /github/workspace/src/Client
Destination directory: /bin/staticsites/ss-oryx/app
Downloading and extracting 'dotnet' version '7.0.100-preview.1.22110.4' to '/opt/dotnet/7.0.100-preview.1.22110.4'...
I think Oryx with .NET 7 Preview 1 and WASM tools have issues. And unsure why it's downloading .NET 7 when it detects .NET 6 as the platform. Maybe some error on the scripts that downloads latest SDK ?
@danielbichuetti Is your repo public? When I try, I'm getting an error but .NET 6 is being installed and I'm running into the / (deleted)
issue in #755, we're currently investigating that.
It sounds like the issues might be related but the .NET 7 install is different.
@anthonychu No, it's not. It's a private company repo. It's a legaltech MVP we are working on. This is the project file with the dependencies:
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyName>Intelijus.UI.Client</AssemblyName>
<RootNamespace>Mobiiti.Intelijus.UI.Client</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BlazorApplicationInsights" Version="1.6.0" />
<PackageReference Include="Blazored.LocalStorage" Version="4.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="6.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="MudBlazor" Version="6.0.7" />
<PackageReference Include="MudBlazor.ThemeManager" Version="1.0.6" />
<PackageReference Include="Toolbelt.Blazor.HttpClientInterceptor" Version="10.1.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Shared\Shared.csproj" />
</ItemGroup>
</Project>
And the global.json defines SDK 6.0.200 as the version to be used.
Hi there I am experiencing the same issue. I did ask the oyrx team recently about the possibility of supporting the .Net 7 previews https://github.com/microsoft/Oryx/issues/1267
I wonder if that change is related to this issue?
I'm having an issue with native dependencies missing in Azure Static Web Apps when deployed as Blazor WASM. This used to work, and now it appears the native libraries are not being distributed with the rest of the app.
I'm not sure, but maybe wasm-tools is missing now? I've been searching for someone else with this issue and / or an answer, and this issue is the closest I've come so far.
When generating code from a GitHub repository it's failing. This behavior started about 2 days ago.
Reproducing the error:
These are the errors that appear on GitHub workflow:
---End of Oryx build logs--- Oryx has failed to build the solution.
For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/ If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/ Exiting
Expected behavior GitHub Action should compile and deliver project to Static WebApps