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

sample-apps/blank-go exec format error [aarch64] #460

Open
vhscom opened this issue Mar 29, 2024 · 0 comments
Open

sample-apps/blank-go exec format error [aarch64] #460

vhscom opened this issue Mar 29, 2024 · 0 comments

Comments

@vhscom
Copy link

vhscom commented Mar 29, 2024

For those running into the following error with blank-go example:

./3-invoke.sh
{
    "StatusCode": 200,
    "FunctionError": "Unhandled",
    "ExecutedVersion": "$LATEST"
}
{"errorType":"Runtime.InvalidEntrypoint","errorMessage":"RequestId: 6932893d-a61b-4ff5-98b4-64758a8311d1 Error: fork/exec /var/task/bootstrap: exec format error"}

If you're on an amd64/aarch64 machine like an M1+ Mac, make the following change to the invoker script:

- GOOS=linux go build -tags lambda.norpc -o bootstrap main.go
+ GOARCH=amd64 GOOS=linux go build -tags lambda.norpc -o bootstrap main.go

If this worked for you, consider giving some karma to Dominic O'Connor on StackOverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant