Skip to content

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

Open
@vhscom

Description

@vhscom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions