Skip to content

Support for Apple M1 chips #2131

@nirajhx

Description

@nirajhx

Please provide details on the following items. Failure to do so may result in deletion of your feature request.
Not able to install on Apple MacBook with M1 chipset

What's the user value of this feature request?
Devs using the latest MacBook will be able to use cli

Who is the functionality for?
Devs using the latest M1 chip macbook

How often will this functionality be used by the user?
Always

Who else is affected by the change?
This should not affect the other versions

Is your feature request related to a problem? Please describe.
Trying to install CLI on my M1 chip MacBook, but the installation fails with following error:

==> Installing cf-cli from cloudfoundry/tap
cf-cli: The x86_64 architecture is required for this software.
Error: An unsatisfied requirement failed this build.

Describe alternatives you've considered
I tried compiling the source code, but that also didn't workout. Got following error:

go build -ldflags "-w -s -X code.cloudfoundry.org/cli/version.binarySHA=$(git rev-parse --short HEAD) -X code.cloudfoundry.org/cli/version.binaryBuildDate=$(date -u +"%Y-%m-%d") -X code.cloudfoundry.org/cli/version.binaryVersion=$(cat BUILD_VERSION) " -o out/cf .
# code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant
assertion failed [abi_info.kind == AbiKind::TranslatedCode]: emulated forward to an arm pc that isn't in translated code. arm_pc=0x1020cf4d8 abi_kind=6 emulation_interval=[0x1020f8df8,0x1020f8e0c) instruction_interval=[0x1020f8de4, 0x1020f8e0c) x86_rip=0x101c91a
(ThreadContextRegisterState.cpp:677 move_to_instruction_boundary)

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