Open malifei opened 3 years ago
can you had already resolved this problem?
can you had already resolved this problem?
Please post more information about your system and environment your are building it on.
go env
Please post more information about your system and environment your are building it on.
go env
I have the same error, this the output of go env
GO111MODULE="" GOARCH="arm64" GOBIN="" GOCACHE="/Users/sahithi.reddy/Library/Caches/go-build" GOENV="/Users/sahithi.reddy/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/sahithi.reddy/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/sahithi.reddy/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/opt/homebrew/Cellar/go/1.18.2/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/opt/homebrew/Cellar/go/1.18.2/libexec/pkg/tool/darwin_arm64" GOVCS="" GOVERSION="go1.18.2" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/sahithi.reddy/go-callvis/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xj/9lvftw6j793fxjf5qj8r6wb00000gn/T/go-build3340002812=/tmp/go-build -gno-record-gcc-switches -fno-common"
I assume it's because the go-graphviz library does not support ARM. Please try to disable cgo by setting CGO_ENABLED=0
- this should use dot program installed via graphviz in the system instead of go-graphviz library for conversion of dot format.
"make install " show error
go install -tags "" -ldflags "-X main.commit=v0.6.1-4-g71bdc75"
github.com/goccy/go-graphviz/internal/ccall
In file included from common.c:22: common/taper.c:258: error: redefinition of typedef ‘radfunc_t’ common/emit.c:2241: note: previous declaration of ‘radfunc_t’ was here cc1: warning: unrecognized command line option "-Wno-unused-result" cc1: warning: unrecognized command line option "-Wno-unused-result" cc1: warning: unrecognized command line option "-Wno-unused-result" cc1: warning: unrecognized command line option "-Wno-unused-result" cc1: warning: unrecognized command line option "-Wno-unused-result" make: *** [Makefile:22: install] Error 2