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

How to deploy lambda function using Apple M1 processor? #986

Closed
az-oolloow opened this issue Nov 19, 2021 · 3 comments
Closed

How to deploy lambda function using Apple M1 processor? #986

az-oolloow opened this issue Nov 19, 2021 · 3 comments
Labels
closed-for-staleness guidance Question that needs advice or information. module/lambda-client-lib response-requested Waiting on additional info and feedback. Will move to close soon in 7 days.

Comments

@az-oolloow
Copy link

I have this new Apple M1 silicon computer running mac OS.

I have installed .net core sdk 3.1 (x64), 5.0 (x64) and 6.0 (ARM64 and x64).

I am running the basic

dotnet lambda deploy-function myFunc --function-role myRole

command.

I have tried the following:

  • Launch terminal without Rosetta and run the above
  • Launch terminal with Rosetta and run the above
  • Launch terminal without Rosetta and run "/usr/local/share/dotnet/x64/dotnet" lambda deploy-function myFunc --function-role myRole

In all cases I get:

Failed to load /usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.20/libhostpolicy.dylib,

error: dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.20/libhostpolicy.dylib, 0x0001):

tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.20/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')),

'/usr/local/lib/libhostpolicy.dylib' (no such file),

'/usr/lib/libhostpolicy.dylib' (no such file)

An error occurred while loading required library libhostpolicy.dylib from [/usr/local/share/dotnet/shared/Microsoft.NETCore.App/3.1.20]
@az-oolloow az-oolloow added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Nov 19, 2021
@ashishdhingra
Copy link
Contributor

Appears to be similar to aws/aws-extensions-for-dotnet-cli#192

@ashishdhingra ashishdhingra removed the needs-triage This issue or PR still needs to be triaged. label Nov 19, 2021
@ashishdhingra
Copy link
Contributor

Hi @az-oolloow,

Looking at dotnet/runtime#59168 and dotnet/sdk#22380, this appears to be the issue with side-by-side install of .NET 6 ARM64 and .NET x64. Please try following guidance mentioned in dotnet/sdk#22380 (comment) and see if it works for you.

Thanks,
Ashish

@ashishdhingra ashishdhingra added the response-requested Waiting on additional info and feedback. Will move to close soon in 7 days. label Nov 19, 2021
@github-actions
Copy link
Contributor

This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness guidance Question that needs advice or information. module/lambda-client-lib response-requested Waiting on additional info and feedback. Will move to close soon in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants