vmware-tanzu / velero-plugin-for-vsphere

Plugin to support Velero on vSphere
Other
59 stars 49 forks source link

Building does not support ARM-based devices #580

Closed ihgann closed 3 months ago

ihgann commented 3 months ago

Describe the bug

When building on an ARM-based device, such as a MacBook with Apple Silicon, the current steps in BUILDING.md do not work. An error, such as:

/bin/sh -c '    GOOS=linux  GOARCH=amd64    REGISTRY=dpcpinternal   VERSION=topic/ganni/omit-vpc-691fe0b-04.Jun.2024.14.23.41   PKG=github.com/vmware-tanzu/velero-plugin-for-vsphere   BIN=data-manager-for-plugin     GIT_SHA=691fe0b2e002effdb22860ca7cf62dfa5dad5fae    GIT_DIRTY=" M Makefile ?? pkg/mod/ ?? pkg/sumdb/"   OUTPUT_DIR=/output/linux/amd64  GO111MODULE=on  GOFLAGS=-mod=readonly   ./hack/build.sh'
# runtime/cgo
gcc: error: unrecognized command-line option '-m64'
make[2]: *** [shell] Error 2
make[1]: *** [_output/bin/linux/amd64/data-manager-for-plugin] Error 2
make: *** [datamgr] Error 2

is returned

To Reproduce

Run make with an ARM-based computer.

Expected behavior

I expected make to succeed.

Troubleshooting Information

n/a

Screenshots

n/a

Anything else you would like to add:

n/a