Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: make go install -buildmode=pie cmd/compile reproducible #31320
I'm trying to run Android builders directly from the device without a host. To do that, make.bash must successfully complete. However, the Android kernel will only execute PIE executables, which means that the toolchain must be built with the equivalent of -buildmode=pie enabled all the time.
After hacking buildmode=pie, ./make.bash will complain that the bootstrap process does not converge. The root cause is that the build ids of the toolchain never converge.
To demonstrate the problem, I'm building cmd/compile with buildmode=pie on my host linux machine and comparing the build ids.
What version of Go are you using (
It seems the culprit the ELF build ids. Using