You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The specific failure is introduced in commit afd090c, which changed cmd/go/go_test.go's TestExecBuildX test to use set -e as part of the generated test.sh script. The core problem is that the generated script includes gcc probes from cmd/go/internal/work/exec.go's gccSupportsFlag() method that are designed to see if the installed gcc supports certain options. Should any of these flags not be supported the gcc command being run will fail, which set -e turns into a failure of the entire test.sh script and thus the test. It seems likely that the real problem is that these gcc flag-support probe commands are being included in the script at all.
(This close to Go 1.10, the best short term fix might be to not use set -e in TestExecBuildX.)
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?go version devel +7c2cf4e779 Thu Jan 4 18:01:55 2018 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?Specifically I'm on Fedora 27, which has gcc
gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)
.What did you do?
Running
./all.bash
now fails during the tests, with the following error output (which is rather verbose):The specific failure is introduced in commit afd090c, which changed cmd/go/go_test.go's TestExecBuildX test to use
set -e
as part of the generatedtest.sh
script. The core problem is that the generated script includes gcc probes from cmd/go/internal/work/exec.go's gccSupportsFlag() method that are designed to see if the installed gcc supports certain options. Should any of these flags not be supported the gcc command being run will fail, whichset -e
turns into a failure of the entire test.sh script and thus the test. It seems likely that the real problem is that these gcc flag-support probe commands are being included in the script at all.(This close to Go 1.10, the best short term fix might be to not use
set -e
in TestExecBuildX.)The text was updated successfully, but these errors were encountered: