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

Unable to install on Mac M1 #162

Closed piotrpersona closed 1 year ago

piotrpersona commented 1 year ago

Hi

I have issues with installing callvis on M1 Pro Mac.

Device

Steps to reproduce

  1. brew instal graphviz
  2. go install github.com/ofabry/go-callvis@latest

Error

# github.com/goccy/go-graphviz/internal/ccall
In file included from dotgen.c:15:
../../../../go/pkg/mod/github.com/goccy/go-graphviz@v0.1.1/internal/ccall/dotgen/dotsplines.c:2310:13: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
../../../../go/pkg/mod/github.com/goccy/go-graphviz@v0.1.1/internal/ccall/dotgen/dotsplines.c:2310:13: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
../../../../go/pkg/mod/github.com/goccy/go-graphviz@v0.1.1/internal/ccall/dotgen/dotsplines.c:2504:16: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
../../../../go/pkg/mod/github.com/goccy/go-graphviz@v0.1.1/internal/ccall/dotgen/dotsplines.c:2504:16: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
anacrolix commented 1 year ago

It installed fine for me here. Those warnings didn't halt the install.

piotrpersona commented 1 year ago

Yes, you're right.