-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Blazor WASM AOT not working on MacOS 10.13.6 #57431
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsInstalled 6.0-preview-7 SDK on MacOS 10.13.6 (High Sierra) Ran "sudo dotnet workload install wasm-tools", installed OK dotnet new blazorwasm, add "RunAOTCompilation" to csproj. dotnet publish -c Release generates the following error: /usr/local/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/6.0.0-preview.7.21377.19/Sdk/WasmApp.Native.targets(443,5): warning : [/Users/adam/Repos/blazorwasm60pre7/obj/Release/net6.0/linked/Microsoft.AspNetCore.Components.dll] dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin [/Users/adam/Repos/blazorwasm60pre7/blazorwasm60pre7.csproj] Some Googling leads me to suspect it may have something to do with the workload package itself being built on MacOS 10.15
|
cc @vargaz |
Probably needs to target a lower osx version with -mmacosx-version-min=10.13 or something. |
The mono/mono repo had: |
this is going to be a problem for any of the cross runtimes correct? |
yea, this will affect every cross-compiler /cc @akoeplinger |
.NET 6 only supports macOS 10.14+ according to https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md#macos |
Though right now we're still targeting 10.13 as the min version for mono here: runtime/src/mono/Directory.Build.props Line 20 in 6acb72b
We're missing this condition for wasm/android so it correctly sets the Lines 556 to 558 in 6acb72b
|
Not just if we're targetting iOS/tvOS/macOS since the AOT compiler for WASM or Android can run on macOS too. Fixes dotnet#57431
Installed 6.0-preview-7 SDK on MacOS 10.13.6 (High Sierra)
Ran "sudo dotnet workload install wasm-tools", installed OK
dotnet new blazorwasm, add "RunAOTCompilation" to csproj.
dotnet publish -c Release generates the following error:
/usr/local/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/6.0.0-preview.7.21377.19/Sdk/WasmApp.Native.targets(443,5): warning : [/Users/adam/Repos/blazorwasm60pre7/obj/Release/net6.0/linked/Microsoft.AspNetCore.Components.dll] dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin [/Users/adam/Repos/blazorwasm60pre7/blazorwasm60pre7.csproj]
Some Googling leads me to suspect it may have something to do with the workload package itself being built on MacOS 10.15
The text was updated successfully, but these errors were encountered: