ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.82k stars 402 forks source link

Installation is not working #166

Open alileza opened 9 months ago

alileza commented 9 months ago

I'm running on

$ uname -a
Linux fa6df25b4c0f 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 GNU/Linux

go version

$ go version
go version go1.21.1 linux/arm64

Trying using go install

$ go install github.com/ofabry/go-callvis@latest
go: downloading github.com/ofabry/go-callvis v0.7.0
go: downloading github.com/goccy/go-graphviz v0.1.1
go: downloading github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
go: downloading golang.org/x/tools v0.8.0
go: downloading golang.org/x/image v0.6.0
go: downloading golang.org/x/sys v0.7.0
go: downloading github.com/fogleman/gg v1.3.0
go: downloading github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/mod v0.10.0
# github.com/goccy/go-graphviz/internal/ccall
In file included from cgraph.c:7:
cgraph/graph.c: In function ‘agopen’:
cgraph/graph.c:47:11: note: parameter passing for argument of type ‘Agdesc_t’ {aka ‘struct Agdesc_s’} changed in GCC 9.1
   47 | Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * arg_disc)
      |           ^~~~~~

I also try to clone the repo and run make build

$ make install
go install -tags "" -ldflags "-X main.commit=v0.7.0-1-g219da14 -w -s" -trimpath
# github.com/goccy/go-graphviz/internal/ccall
In file included from cgraph.c:7:
cgraph/graph.c: In function ‘agopen’:
cgraph/graph.c:47:11: note: parameter passing for argument of type ‘Agdesc_t’ {aka ‘struct Agdesc_s’} changed in GCC 9.1
   47 | Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * arg_disc)
      |           ^~~~~~