Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
build: arm64 machine building with 32-bit arm GOROOT_BOOTSTRAP fails #35411
This is super low priority, but filing it because I hit it while experimenting.
ARM64 machines can run ARM code.
On an ARM64 machine I can build Go with make.bash and get ARM64 binaries, of course.
And I can run make.bash with GOARCH=arm, GOHOSTARCH=arm, CC_FOR_TARGET=arm-linux-gnueabihf-gcc, and get ARM binaries.
But if I set GOROOT_BOOTSTRAP to a 32-bit ARM GOROOT (from golang.org/dl), I can't build GOARCH=arm64, regardless of GOHOSTARCH or CC_FOR_TARGET settings.
I get either:
This is obviously somewhat contrived, using a 32-bit Go toolchain on a 64-bit host for bootstrapping a 64-bit build.... but I also think it should work and don't see what I'm missing.