Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/link: internal/fmtsort failed due to unresolved error #38107

Closed
shawn-xdji opened this issue Mar 27, 2020 · 4 comments
Closed

cmd/link: internal/fmtsort failed due to unresolved error #38107

shawn-xdji opened this issue Mar 27, 2020 · 4 comments

Comments

@shawn-xdji
Copy link
Contributor

@shawn-xdji shawn-xdji commented Mar 27, 2020

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

$ go version
go version devel +69d3a34b17 Thu Mar 26 20:30:18 2020 +0000 linux/arm64

Does this issue reproduce with the latest release?

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

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_arm64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/root/xiaji01/go/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build890194427=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Ran into the issue when building the latest code base with all.bash, go binary could be built successfully but the testing of internal/fmtsort failed with the following errors:

# go test -run=. internal/fmtsort -v
# internal/fmtsort.test
syscall.Syscall: relocation target runtime.entersyscall not defined for ABI0 (but is defined for ABIInternal)
syscall.Syscall: relocation target runtime.exitsyscall not defined for ABI0 (but is defined for ABIInternal)
syscall.Syscall6: relocation target runtime.entersyscall not defined for ABI0 (but is defined for ABIInternal)
syscall.Syscall6: relocation target runtime.exitsyscall not defined for ABI0 (but is defined for ABIInternal)
FAIL    internal/fmtsort [build failed]
FAIL

What did you expect to see?

Testing passes without error.

What did you see instead?

Test failure.

@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented Mar 27, 2020

Are you saying this is part of all.bash? It doesn't seem to fail on the builder. And I couldn't reproduce it either by cross-compilation or on the ARM64 builder.

How do you reproduce it? How reproducible is it?

@shawn-xdji
Copy link
Contributor Author

@shawn-xdji shawn-xdji commented Mar 28, 2020

Hi @cherrymui, yes it's part of all.bash, and could be reproduced by "go test" as well.

So far it seems to be relevant to system environment as I ran into the problem on a new arm machine, with Ubuntu 18.04, only.

I'll ry to narrow down it.

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 28, 2020

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.