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

go.tools/cmd/ssadump not gettable on windows 7 following change in location of ssa directory #7166

Closed
gopherbot opened this issue Jan 21, 2014 · 6 comments

Comments

@gopherbot
Copy link
Contributor

by Elliott.Stoneham:

What steps will reproduce the problem?
go get -v code.google.com/p/go.tools/cmd/ssadump

What is the expected output?
ssadump installs

What do you see instead?
code.google.com/p/go.tools (download)
package code.google.com/p/go.tools/ssa
        imports code.google.com/p/go.tools/ssa
        imports code.google.com/p/go.tools/ssa: cannot find package "code.google.com/p/go.tools/ssa" in any of:
        C:\Go\src\pkg\code.google.com\p\go.tools\ssa (from $GOROOT)
        C:\Users\Elliott\Documents\GOPATH\src\code.google.com\p\go.tools\ssa (fr
om $GOPATH)

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Win7 32-bit

Which version are you using?  (run 'go version')
go1.2 windows/386

Please provide any additional information below.
The issue probably relates to change of location of ssa directories.
I do not see this issue on OSX or Ubuntu, it only relates to the win7 version of
go.tools/go/ssa/interp, having commented that out, my project
(http://tardisgo.github.io) works fine again on Win7. 
For my work-around see https://github.com/tardisgo/tardisgo/blob/master/ssadump_copy.go
@alexbrainman
Copy link
Member

Comment 1:

I can also see this broken our builder too.
From http://build.golang.org/log/d33d18f472e36e617f194ca5dc4c1c022f51b31c
package code.google.com/p/go.tools/ssa
    imports code.google.com/p/go.tools/ssa
    imports code.google.com/p/go.tools/ssa: cannot find package "code.google.com/p/go.tools/ssa" in any of:
    c:\gobuilder\windows-amd64-5dd2679d2a0d\go\src\pkg\code.google.com\p\go.tools\ssa (from $GOROOT)
    c:\gobuilder\windows-amd64-5dd2679d2a0d\src\code.google.com\p\go.tools\ssa (from $GOPATH)

@adonovan
Copy link
Member

Comment 2:

I think the builder is stuck: there's no package go.tools/ssa anymore.

@gopherbot
Copy link
Contributor Author

Comment 3 by Elliott.Stoneham:

The problem lies in:  go.tools/go/ssa/interp/external_windows.go
which imports the old location of the main ssa package.

@adonovan
Copy link
Member

Comment 4:

Oh, quite right.  Sorry for not noticing that.  CL on its way.

@alexbrainman
Copy link
Member

Comment 5:

@adonovan,
It is quite easy to build windows program anywhere. This
https://code.google.com/p/go-wiki/wiki/WindowsCrossCompiling is what I do.
Alex

@adonovan
Copy link
Member

Comment 6:

This issue was closed by revision golang/tools@87b29f6.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 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

3 participants