Skip to content

MacOS Arm64 Exec Format Error #134

Open
@kferrone

Description

@kferrone

I am on a Mac arm64. I followed arm64 instructions and I still get

cannot execute binary file: Exec format error

Just out of curiosity, I tried with the amd64 instructions, still the same error. How is it even possible that I get the famous wrong architecture error on both?

Activity

valerena

valerena commented on Sep 26, 2024

@valerena
Contributor

This depend a lot on what you're invoking and how (and where too). What command are you trying to run?

If you have a zip Lambda function (not a container image function), it's better to use AWS SAM CLI (which uses this Lambda RIE behind the scenes), instead of manually use RIE directly.

skyzyx

skyzyx commented on Dec 27, 2024

@skyzyx

README instructions are bad. They only compile for Linux (ELF), not macOS (Mach-O).

Running into the same issue while trying to run a Lambda function through Go's debugger. Looks like I'll have to clone, patch some files, then compile locally. :/

ricardocermeno

ricardocermeno commented on Mar 26, 2025

@ricardocermeno

@skyzyx I have the same problem, Could you share me, how do you solved it? Did you recompiled it to Match-O ? or Did you did some workaround?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @skyzyx@kferrone@ricardocermeno@valerena

        Issue actions

          MacOS Arm64 Exec Format Error · Issue #134 · aws/aws-lambda-runtime-interface-emulator