Building Go 1.4 when the linker doesn’t know about build-id
Today at work, on a Redhat 5.5 machine, I tried to build Go 1.4. This happened: $ cd go1.4/src $ ./all.bash …snip… # runtime/cgo /usr/bin/ld: unrecognized option ‘–build-id=none’ /usr/bin/ld: use the –help option for usage information collect2: ld returned 1 exit status The solution is to retry without the “–build-id=none” option: diff –git a/src/cmd/go/build.go b/src/cmd/go/build.go…