-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[mono][aot] macOS: Permission issues with workloads #53545
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsSteps to reproduce:
Fails with:
Problem 1. fixing the permission for that, and building again fails with:
Problem 2: cc @lewing @akoeplinger @steveisok
|
cc @steveisok |
This should probably help: dotnet/sdk#16894 |
It looks like parsing data/UnixFilePermissions.xml was added a week ago: dotnet/sdk@5305f48 which ties in with @akoeplinger's link I'll look at adding that file to the blazor workload pack, probably based on the template from Android (dotnet/android#6010) |
…ot executable by the end user: ``` -rwxr--r-- 1 root wheel 106K May 31 07:30 /usr/local/share/dotnet/packs/Microsoft.NET.Runtime.Emscripten.2.0.12.Sdk.osx-x64/6.0.0-preview.5.21281.1/tools/bin/llc ``` Ref: dotnet/runtime#54501 Ref: dotnet/runtime#53545 Ref: dotnet/sdk#16894 Ref: xamarin/xamarin-macios#11869 Ref: dotnet/android#6010
* Add UnixFilePermissions.xml for Mono AOT compilers Ref: #53545 Ref: dotnet/sdk#16894 Ref: xamarin/xamarin-macios#11869 Ref: dotnet/android#6010 * Only set permissions on !windows
Based off #53314 .
Steps to reproduce:
dotnet workload install microsoft-net-sdk-blazorwebassembly-aot
. You would need to run that as rootdotnet new blazorwasm
<RunAOTCompilation>true</RunAOTCompilation>
, and<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="6.0.0-preview.4.21253.5" />
to the projectdotnet publish -c:release -p:RunAOTCompilation=true -bl
Fails with:
-rwxr--r-- 1 root wheel 12062648 May 3 14:42 /usr/local/share/dotnet/packs/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/6.0.0-preview.4.21253.7/Sdk/../tools/mono-aot-cross*
Problem 1.
mono-aot-cross
has execute permission only for the owner(root).fixing the permission for that, and building again fails with:
/var/folders/7c/zpmy8k_d4d1grky_s154kk640000gp/T/tmp6376bf6641524777815553f841d39a51.exec.cmd: line 2: /usr/local/share/dotnet/packs/Microsoft.NET.Runtime.Emscripten.2.0.12.Sdk.osx-x64/6.0.0-preview.4.21220.1/tools/emscripten/emcc: Permission denied
-rwxr--r-- 1 root wheel 716 Sep 23 2020 /usr/local/share/dotnet/packs/Microsoft.NET.Runtime.Emscripten.2.0.12.Sdk.osx-x64/6.0.0-preview.4.21220.1/tools/emscripten/emcc*
Problem 2:
emcc
(and possibly other emscripten files) don't have the right permissionscc @lewing @akoeplinger @steveisok
The text was updated successfully, but these errors were encountered: