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: pack: cannot create $WORK/... #6171

Closed
gopherbot opened this issue Aug 16, 2013 · 5 comments
Closed

cmd/go: pack: cannot create $WORK/... #6171

gopherbot opened this issue Aug 16, 2013 · 5 comments

Comments

@gopherbot
Copy link

by capnm9:

hg id
49d897ab8e2f tip

go test code.google.com/p/go.tools/...

what worked before now utterly fails:

...
/df/go/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/code.google.com/p/go.tools/ssa/interp/_test/code.google.com/p/go.tools/ssa/interp_test.a
$WORK/code.google.com/p/go.tools/ssa/interp/_test/_go_.6

# code.google.com/p/go.tools/ssa/interp_test
pack: cannot create
$WORK/code.google.com/p/go.tools/ssa/interp/_test/code.google.com/p/go.tools/ssa/interp_test.a:
No such file or directory
$WORK/code.google.com/p/go.tools/ssa/interp/_test/interp.test

ok      code.google.com/p/go.tools/go/types 13.921s
ok      code.google.com/p/go.tools/go/types/typemap 0.004s
ok      code.google.com/p/go.tools/go/vcs   0.610s
?       code.google.com/p/go.tools/godoc    [no test files]
?       code.google.com/p/go.tools/godoc/playground [no test files]
?       code.google.com/p/go.tools/godoc/util   [no test files]
?       code.google.com/p/go.tools/godoc/vfs    [no test files]
?       code.google.com/p/go.tools/godoc/vfs/httpfs [no test files]
?       code.google.com/p/go.tools/godoc/vfs/mapfs  [no test files]
?       code.google.com/p/go.tools/godoc/vfs/zipfs  [no test files]
?       code.google.com/p/go.tools/gotype   [no test files]
FAIL    code.google.com/p/go.tools/importer [build failed]
FAIL    code.google.com/p/go.tools/ssa [build failed]
FAIL    code.google.com/p/go.tools/ssa/interp [build failed]
@robpike
Copy link
Contributor

robpike commented Aug 17, 2013

Comment 1:

This is a build breakage that I could reproduce trivially at
% hg tip
changeset:   244:cb8ea63f56f8
tag:         tip
user:        Andrew Gerrand <adg@golang.org>
date:        Fri Aug 16 13:44:52 2013 +1000
summary:     go.tools/cmd/godoc: redirect old pkg/cmd paths
%

Labels changed: added priority-asap, removed priority-triage, go1.2maybe.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Aug 17, 2013

Comment 2:

Alan: this looks like it's in your court.

Owner changed to @adonovan.

@gopherbot
Copy link
Author

Comment 3 by capnm9:

I believe the go tool creates (or nukes) too early the needed directories.
go test code.google.com/p/go.tools/... -x -work
WORK=/tmp/go-build832309492
mkdir -p $WORK/code.google.com/p/go.tools/cmd/cover/_test/code.google.com/p/go.tools/cmd/
mkdir -p $WORK/code.google.com/p/go.tools/cmd/godoc/_test/code.google.com/p/go.tools/cmd/
mkdir -p $WORK/code.google.com/p/go.tools/cmd/vet/_test/code.google.com/p/go.tools/cmd/
mkdir -p $WORK/code.google.com/p/go.tools/go/exact/_test/code.google.com/p/go.tools/go/
mkdir -p $WORK/code.google.com/p/go.tools/go/types/_test/code.google.com/p/go.tools/go/
mkdir -p
$WORK/code.google.com/p/go.tools/go/types/typemap/_test/code.google.com/p/go.tools/go/types/
mkdir -p $WORK/code.google.com/p/go.tools/go/vcs/_test/code.google.com/p/go.tools/go/
mkdir -p $WORK/code.google.com/p/go.tools/importer/_test/code.google.com/p/go.tools/
...
mkdir -p $WORK/code.google.com/p/go.tools/importer/_test/
cd /df/go-lib/src/code.google.com/p/go.tools/importer
/df/go/pkg/tool/linux_amd64/6g -o $WORK/code.google.com/p/go.tools/importer/_test/_go_.6
-p code.google.com/p/go.tools/importer_test -complete -D
_/df/go-lib/src/code.google.com/p/go.tools/importer -I $WORK -I
/df/go-lib/pkg/linux_amd64 ./source_test.go
/data4/go/pkg/tool/linux_amd64/pack grcP $WORK
$WORK/code.google.com/p/go.tools/importer/_test/code.google.com/p/go.tools/importer_test.a
$WORK/code.google.com/p/go.tools/importer/_test/_go_.6
# code.google.com/p/go.tools/importer_test
pack: cannot create
$WORK/code.google.com/p/go.tools/importer/_test/code.google.com/p/go.tools/importer_test.a:
No such file or directory
$WORK/code.google.com/p/go.tools/importer/_test/importer.test
tree $WORK
/tmp/go-build991757215
└── code.google.com
    └── p
        └── go.tools
            ├── importer
            │   └── _test
            │       └── _go_.6
            └── ssa
                ├── interp
                │   └── _test
                │       └── _go_.6
                └── _test
                    └── _go_.6

@gopherbot
Copy link
Author

Comment 4 by capnm9:

Indeed, it seems that the tests are not broken as such.
export GOARCH=amd64
go test code.google.com/p/go.tools/ssa code.google.com/p/go.tools/go/vcs
ok      code.google.com/p/go.tools/ssa  8.717s
ok      code.google.com/p/go.tools/go/vcs   0.393s
go test code.google.com/p/go.tools/go/types
ok      code.google.com/p/go.tools/go/types 13.820s
go test code.google.com/p/go.tools/ssa code.google.com/p/go.tools/go/vcs
code.google.com/p/go.tools/go/types
# code.google.com/p/go.tools/go/types
pack: cannot create
$WORK/code.google.com/p/go.tools/go/types/_test/code.google.com/p/go.tools/go/types.a:
No such file or directory
ok      code.google.com/p/go.tools/ssa  8.853s
ok      code.google.com/p/go.tools/go/vcs   0.600s
FAIL    code.google.com/p/go.tools/go/types [build failed]

@robpike
Copy link
Contributor

robpike commented Aug 19, 2013

Comment 5:

Fixed by https://golang.org/cl/12796045

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants