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/link: cgo test errors when building golang master on RHEL 7.2 and SLES 12 SP1 #13375
When building golang from master on a RHEL 7.2 or SLES12 SP1 distro, the cgo/test testcase fails with errors like this:
ok _/home/boger/golang/gitsrc/latest/go/misc/cgo/test 1.783s
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/libgcc.a(_muldc3.o/): unknown relocation type 26; compiled without -fpic?
Note that I have to remove the test exec_linux_test.go on RHEL 7.2 due to errors reported in #13312, or it will fail before it gets to this point.
It appears that the failures are dependent on the gcc version that is used with the build. When it fails the gcc version is 4.8.x. I've tried some newer gcc versions and for some the errors don't occur. I am still experimenting with newer variations and will post that information to determine if some gcc versions other than 4.8.x also cause this failure
This seems to be happening on ppc64le on ubuntu xenial as well: https://launchpadlibrarian.net/227153468/buildlog_ubuntu-xenial-ppc64el.pay-service_15.10%2B16.04.20151120.2-0ubuntu1_BUILDING.txt.gz