I’ve tried building from source using AL2 on the AARCH64 architecture and I get a Go error during the make build:
build constraints exclude all Go files in /opt/percona-backup-mongodb/vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/internal/gssapi
Based on some Google searches, it would seem the driver C files are only usable for x86_64. Is this correct? Is there any way around this? TIA
Hi @TimSandberg !
To build PBM from sources you need to install krb5-devel package
Hi @oleksandr.havryliak !
Yes, I have that package installed. The error persists. As I mentioned, this appears to be related to the ARM architecture. Has anyone built PBM on ARM64 previously?
We did build and test PBM on aarch64 many times. Maybe the issue is the krb5 package for AL2?
Could you, please, provide us more details - golang version, krb5-devel version, full build log.
Try to build with CGO_ENABLED=1 and GOARCH=arm64
I updated the CGO_ENABLED in the Makefile and I added the GOARCH line, but make build yields the same result.
Could you, please, check if you have C compiler installed?
Or try to install all necessary software using sudo yum groupinstall “Development Tools”
The yum groupinstall cmd did the trick–I guess I was missing a module somewhere. Compiled successfully and commands verified. Thank you very much for your assistance!!!