Unable to build Temporal Server Go Binary

I was trying to build the Temporal Sever Go binary on my setup but encountered the following error, with no available help found anywhere on Google or the internet.

ymandge-k966eg9-3# gmake
e[1;36mBuild temporal-server with CGO_ENABLED=1 for freebsd/amd64…e[0m
CGO_ENABLED=1 go build -tags protolegacy, -o temporal-server ./cmd/server
go: RLock go.mod: operation not supported
gmake: *** [temporal-server] Error 1

Can anyone help us here?