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/go: go.info.golang_org/x/crypto/curve25519.mladder: relocation target go.inf/.uint8 not defined #27550

Closed
fancygo opened this issue Sep 7, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@fancygo
Copy link

commented Sep 7, 2018

Please answer these questions before submitting your issue. Thanks!

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

go version go1.11 linux/amd64

Does this issue reproduce with the latest release?

yes

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jun.fan/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/jun.fan/gopkg:/home/jun.fan/fancy.game:/home/jun.fan/fancy.ws"
GOPROXY=""
GORACE=""
GOROOT="/home/jun.fan/go"
GOTMPDIR=""
GOTOOLDIR="/home/jun.fan/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/jun.fan/testmode/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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build618708293=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I use "github.com/gorilla/websocket" to build my server code by mod. But it failed and report a err.

What did you expect to see?

build success

What did you see instead?

go.info.golang_org/x/crypto/curve25519.mladder: relocation target go.inf/.uint8 not defined

@agnivade

This comment has been minimized.

Copy link
Member

commented Sep 7, 2018

It seems like you are not pulling in the correct version of dependencies.

We need detailed repro steps to investigate this. How are you exactly getting the dependency ? Are you running in module mode ? Are there other dependencies ?

If possible kindly create a test repo with exact steps so that we can clone and get this error. Thank you.

@agnivade agnivade changed the title go.info.golang_org/x/crypto/curve25519.mladder: relocation target go.inf/.uint8 not defined cmd/go: go.info.golang_org/x/crypto/curve25519.mladder: relocation target go.inf/.uint8 not defined Sep 7, 2018

@fancygo

This comment has been minimized.

Copy link
Author

commented Sep 7, 2018

I am running in module mode, when I use other dependence, it can build. When I only use this websocket dependence, it can't build.

@agnivade

This comment has been minimized.

Copy link
Member

commented Sep 7, 2018

Sorry, perhaps I wasn't clear. Without the code it is very difficult for us to debug and understand what is going on. Please give the sample code (or create a repo with it), and mention the exact steps to get your error.

@akavel

This comment has been minimized.

Copy link
Contributor

commented Dec 17, 2018

Got similar error, but cannot provide more info, as it is an internal product (even have to censor some stuff out, sorry...):

# foo/bar/baz.test
foo/bar/baz.Test_Something: relocation target go.builtin.error.Error not defined
foo/bar/baz.Test_Something_Else: relocation target go.builtin.error.Error not defined

This was in a GO111MODULE=on go test -mod=vendor in go1.11.3.

For now I'm reporting after first noticed occurrence of this. Don't know yet if it'll repeat when running tests again. Will add if I know something more.

edit 1: As for now, the error reproduces on every go test call on this package. Interestingly, there are other test funcs in the same package which don't result in this error.

edit 2: Ok, in my case got a repro, reporting on #29304 as I'm not so sure now if it's the same issue.

@gopherbot

This comment has been minimized.

Copy link

commented Mar 3, 2019

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 Mar 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.