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

Installation is not working #166

Closed
alileza opened this issue Sep 30, 2023 · 1 comment · Fixed by #202
Closed

Installation is not working #166

alileza opened this issue Sep 30, 2023 · 1 comment · Fixed by #202

Comments

@alileza
Copy link

alileza commented Sep 30, 2023

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)
      |           ^~~~~~
@ondrajz
Copy link
Owner

ondrajz commented Jan 1, 2025

This is fixed in #202. Please test it to confirm it fixes your issues. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants