go-callvis icon indicating copy to clipboard operation
go-callvis copied to clipboard

install error

Open malifei opened this issue 4 years ago • 5 comments

"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

malifei avatar Feb 04 '21 07:02 malifei

can you had already resolved this problem?

codeman98 avatar Jul 26 '21 08:07 codeman98

can you had already resolved this problem?

tantingting1012 avatar Jul 29 '21 01:07 tantingting1012

Please post more information about your system and environment your are building it on.

go env

ondrajz avatar Aug 24 '21 05:08 ondrajz

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"

psahithireddy avatar Jul 06 '22 06:07 psahithireddy

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.

ondrajz avatar Aug 07 '22 22:08 ondrajz