-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Milestone
Description
Is your feature request related to a problem? Please describe.
I have a project that depends on vault, and I have to use my Terminal in Intel translation mode ("Rosetta 2") when building the project on an ARM Mac.
Describe the solution you'd like
vault should build natively on darwin/arm64 to support Macs with M1 chips in them.
Describe alternatives you've considered
N/A
Explain any additional use-cases
N/A
Additional context
I tried fiddling with build.sh on my Intel Mac to force building for darwin/arm64, but was getting errors like this when I run make dev:
--> darwin/arm64: github.com/hashicorp/vault
1 errors occurred:
--> darwin/arm64 error: exit status 2
Stderr: # github.com/hashicorp/vault
/usr/local/opt/go/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: ignoring file /var/folders/97/5dzzw3210vx_p11c78cf354r0000gp/T/go-link-591320702/go.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My M1 Mac isn't set up yet (still migrating files), so I haven't been able to test there yet.
jaredallard, natefox, kgorskowski, lingrino, lucymhdavies and 15 more