Skip to content

x/tools/go/ssa: GOARCH=386 go test fails #32798

@dominikh

Description

@dominikh

What version of Go are you using (go version)?

$ go version
go version go1.12.5 linux/amd64

Does this issue reproduce with the latest release?

N/A

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dominikh/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/dominikh/prj/"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build916129356=/tmp/go-build -gno-record-gcc-switches"

What did you do?

GOARCH=386 go test golang.org/x/tools/go/ssa

What did you expect to see?

Passing tests.

What did you see instead?

--- FAIL: TestBuildPackage (0.00s)
    builder_test.go:63: input.go:5:2: could not import bytes (can't find import: "bytes")
--- FAIL: TestRuntimeTypes (0.00s)
    builder_test.go:232: test "package C; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package D; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package E; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package F; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package G; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package G2; imp": input.go:1:20: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package I; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package J; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package K; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package L; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
    builder_test.go:232: test "package M; impo": input.go:1:19: could not import bytes (can't find import: "bytes")
--- FAIL: Example_buildPackage (0.00s)
got:
hello.go:4:8: could not import fmt (can't find import: "fmt")
want:
package hello:
  func  init       func()
  var   init$guard bool
  func  main       func()
  const message    message = "Hello, World!":untyped string

# Name: hello.init
# Package: hello
# Synthetic: package initializer
func init():
0:                                                                entry P:0 S:2
	t0 = *init$guard                                                   bool
	if t0 goto 2 else 1
1:                                                           init.start P:1 S:1
	*init$guard = true:bool
	t1 = fmt.init()                                                      ()
	jump 2
2:                                                            init.done P:2 S:0
	return

# Name: hello.main
# Package: hello
# Location: hello.go:8:6
func main():
0:                                                                entry P:0 S:0
	t0 = new [1]interface{} (varargs)                       *[1]interface{}
	t1 = &t0[0:int]                                            *interface{}
	t2 = make interface{} <- string ("Hello, World!":string)    interface{}
	*t1 = t2
	t3 = slice t0[:]                                          []interface{}
	t4 = fmt.Println(t3...)                              (n int, err error)
	return
FAIL
FAIL	golang.org/x/tools/go/ssa	20.446s

/cc @ianthehat @alandonovan

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.TestingAn issue that has been verified to require only test changes, not just a test failure.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions