protolambda / gocyto

Callgraph analysis and visualization for Go
MIT License
162 stars 20 forks source link

could not determine GOARCH and Go compiler #5

Open Shahanewaz opened 3 years ago

Shahanewaz commented 3 years ago

I have the gocyto bash file in my gocyto directory. From that directory, I was using the following command:

./gocyto --out test.html directory-of-my-package

I got the error "failed packages load: could not determine GOARCH and Go compiler". When I checked for go env, I found that I have the following:

GOARCH="amd64" GCCGO="gccgo"

jonmather commented 3 years ago

+1 to this

NickLarsenNZ commented 3 years ago

For macos, I had to build and install myself:

git clone git clone https://github.com/protolambda/gocyto.git /tmp/gocyto
pushd /tmp/gocyto

go build && go install

popd

Now I get panic: pointer analysis failed no main/test packages to analyze (check $GOROOT/$GOPATH), so checking out #7

soluty commented 1 year ago

i also meet this error.