-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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 get -race can't find "sync/atomic" #20512
Comments
Try to run the following commands:
|
After running these commands |
Is it a bug or WAI? |
The build is expected to fail. See golang/go#20512
In your comment text you wrote This looks like a bug but it doesn't seem like a very important bug. Why are you writing |
@ianlancetaylor |
I can recreate this with |
CL https://golang.org/cl/44630 mentions this issue. |
Done:
may be a different issue though. |
I think that's a different issue.
Can you please post the output of
go test -x -race github.com/starius/racesync/.
<http://github.com/starius/racesync/>..
…On Fri, Jun 2, 2017 at 11:11 AM, Boris Nagaev ***@***.***> wrote:
If you can show me an example that fails with go test I would appreciate
that.
Done:
$ go get -t github.com/starius/racesync
$ go test -race github.com/starius/racesync/...
# net
can't create $WORK/net.a: open $WORK/net.a: no such file or directory
may be a different issue though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#20512 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA3wJRS7nhohWCjptdUQJsWt8wEE-ks5r_2FYgaJpZM4NoaRM>
.
|
Output of |
Looks like that succeed. Did you change anything between your previous post
and this one?
Your go installation is in /home/bnagaev/.goroot, Do you use a tool to
manage this for you, or is it a personal choice? Did you or the tool set
GOROOT?
…On Fri, Jun 2, 2017 at 11:36 AM, Boris Nagaev ***@***.***> wrote:
Output of go test -x -race github.com/starius/racesync/.
https://gist.github.com/d87ab40a2d7e4a1df72588c96f734606
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20512 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA2Kbb3n7D9QSF_BugmLO_BqLyiBZks5r_2cGgaJpZM4NoaRM>
.
|
I think it succeed because the target was For
I didn't.
Both :-) I patched the tool to run
No. I also double checked that the variable GOROOT is not set. |
The bug may be in the script you used; by copying the files using
shutil.copytree(src,
dst) after installation, it may have upset the timestamps.
…On Fri, Jun 2, 2017 at 11:54 AM, Boris Nagaev ***@***.***> wrote:
I think it succeed because the target was github.com/starius/racesync/.
not github.com/starius/racesync/...
For go test -x -race github.com/starius/racesync/... I have
https://gist.github.com/4c41db39b692b8f50ec8bd0d20910b1b
Did you change anything between your previous post and this one?
I didn't.
Do you use a tool to manage this for you, or is it a personal choice?
Both :-)
I wrote a tool to download, build and install Go:
https://github.com/starius/gohere
and used it to install Go to that directory.
I patched the tool to run go install -v -race std but I removed
GOROOT/pkg/linux_amd64_race/ before running the commands.
Did you or the tool set GOROOT?
No. I also double checked that the variable GOROOT is not set.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20512 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA3io1W9F3kx9NnBFlin1EIZH2wszks5r_2tXgaJpZM4NoaRM>
.
|
I built Go 1.8.3 manually from source and used it from the directory where
Error: https://gist.github.com/75bd5f630fabbd3f1eb7e4d3d37a33d1 |
That's is very strange. What is you gopath variable set to?
…On Fri, 2 Jun 2017, 17:58 Boris Nagaev ***@***.***> wrote:
I built Go 1.8.3 manually from source and used it from the directory where
make.bash installed binaries itself:
$ cd ~/go/src
$ GOROOT_BOOTSTRAP=/home/bnagaev/.cache/gohere/go1.4.3_bootstrap ./make.bash
$ /home/bnagaev/go/bin/go get -t github.com/starius/racesync/...
$ /home/bnagaev/go/bin/go test -x -race github.com/starius/racesync/...
Error: https://gist.github.com/75bd5f630fabbd3f1eb7e4d3d37a33d1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20512 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA1EujNBlpRzD6zpA7pj4_WAYvZ_Uks5r_8CmgaJpZM4NoaRM>
.
|
GOPATH=/home/bnagaev |
Ok, that's fine. Thanks for confirming.
…On Fri, 2 Jun 2017, 18:14 Boris Nagaev ***@***.***> wrote:
GOPATH=/home/bnagaev
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20512 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA1o1MftQg-tgtbb_dAFmHkS_wE9Aks5r_8RygaJpZM4NoaRM>
.
|
@starius Please open a new issue for the problem you are seeing with |
Can be a rebirth of #18486
What version of Go are you using (
go version
)?go version go1.8.3 linux/amd64
This go version was compiled from source using
make.bash
.This issue is not reproduced on the released binaries perhaps because of #18486 (comment)
What operating system and processor architecture are you using (
go env
)?What did you do?
I run
go test -race
and got weird errors:I created minimal working example here: https://github.com/starius/racesync
To reproduce build go from source and run
go get -race github.com/starius/racesync
The text was updated successfully, but these errors were encountered: