https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69766

            Bug ID: 69766
           Summary: go.test/test/env.go fails on biarch
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: vogt at linux dot vnet.ibm.com
                CC: cmang at google dot com
  Target Milestone: ---
              Host: s390x

When testing with

  make -k check-go RUNTESTFLAGS="--target_board=unix\{-m31,-m64\}"

The testgo.test/test/env.go fails with -m31 because runtime.GOARCH and the
GOARCH environment variable disagree:

  $GOARCH=s390x!= runtime.GOARCH=s390
          ^^^^^                  ^^^^
  FAIL: go.test/test/env.go execution,  -O2 -g

The compile command was

  $ .../gcc/build/gcc/testsuite/go/../../gccgo
-B.../gcc/build/gcc/testsuite/go/../../
.../gcc/gcc/testsuite/go.test/test/env.go -fno-diagnostics-show-caret
-fdiagnostics-color=never -I.../gcc/build/s390x-ibm-linux-gnu/32/libgo -w -O2
-g -L.../gcc/build/s390x-ibm-linux-gnu/32/libgo
-L.../gcc/build/s390x-ibm-linux-gnu/32/libgo/.libs -lm -m31 -o
.../gcc/build/gcc/testsuite/go/env.x

Unfortunately, the test does not keep the failing executable, and if I run this
command manually, $GOARCH is not set at all in the resulting executable.

Reply via email to