Support running on M1 Macs [PowerShell]
See original GitHub issueI’m testing an arm64 build of core tools and the PowerShell worker cannot run. Note, I’m testing with PowerShell 7.2 as that is the first version that supports arm64 (see here).
This is the error I’m running into:
Unhandled exception. System.IO.IOException: Error loading native library “/Users/erijiz/tools/func-arm/workers/powershell/7.2/runtimes/osx/native/libgrpc_csharp_ext.x64.dylib”. [2022-02-04T21:37:02.426Z] at Grpc.Core.Internal.UnmanagedLibrary…ctor(String[] libraryPathAlternatives)
I tried updating the Grpc.Core package, but it didn’t help. The latest source code for the Grpc.Core
package does not list osx-arm64 (see here) and I don’t expect them to add it considering the package is in maintenance mode. I believe the only fix will be to switch to the new grpc-dotnet package (see #751), which does not use any native dependencies.
The only workaround for users right now is to try x64 emulation.
I recommend the PowerShell worker team addresses #751 and then I’d be happy to test the worker on my M1 Mac again.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
I tested
func start
with an http, timer, & queue function on v4.5.0 of the host (which includes the fix for https://github.com/Azure/azure-functions-powershell-worker/issues/751) and everything appears to be working now on an M1 Mac 🎉As noted earlier, this only applies to PowerShell 7.2
i know its an old issue but wanted to say thanks as this was a major blocker for me. Thumbs up!