Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is it possible to remove the dependency to goccy/go-graphviz? #12

Closed
reaver-flomesh opened this issue Oct 12, 2024 · 2 comments
Closed

Comments

@reaver-flomesh
Copy link

It has issues when cross compile it to binaries for multiple platforms:

Number of parallel builds: 5
-->     linux/amd64: github.com/flomesh-io/fsm/cmd/cli
-->     linux/arm64: github.com/flomesh-io/fsm/cmd/cli
-->    darwin/arm64: github.com/flomesh-io/fsm/cmd/cli
-->    darwin/amd64: github.com/flomesh-io/fsm/cmd/cli
3 errors occurred:
--> linux/arm64 error: exit status 1
Stderr: # runtime/cgo
gcc_arm64.S: Assembler messages:
gcc_arm64.S:30: Error: no such instruction: `stp x29,x30,[sp,'
gcc_arm64.S:34: Error: too many memory references for `mov'
gcc_arm64.S:36: Error: no such instruction: `stp x19,x20,[sp,'
gcc_arm64.S:39: Error: no such instruction: `stp x21,x22,[sp,'
gcc_arm64.S:42: Error: no such instruction: `stp x23,x24,[sp,'
gcc_arm64.S:45: Error: no such instruction: `stp x25,x26,[sp,'
gcc_arm64.S:48: Error: no such instruction: `stp x27,x28,[sp,'
gcc_arm64.S:52: Error: too many memory references for `mov'
gcc_arm64.S:53: Error: too many memory references for `mov'
gcc_arm64.S:54: Error: too many memory references for `mov'
gcc_arm64.S:56: Error: no such instruction: `blr x20'
gcc_arm64.S:57: Error: no such instruction: `blr x19'
gcc_arm64.S:59: Error: no such instruction: `ldp x27,x28,[sp,'
gcc_arm64.S:62: Error: no such instruction: `ldp x25,x26,[sp,'
gcc_arm64.S:65: Error: no such instruction: `ldp x23,x24,[sp,'
gcc_arm64.S:68: Error: no such instruction: `ldp x21,x22,[sp,'
gcc_arm64.S:71: Error: no such instruction: `ldp x19,x20,[sp,'
gcc_arm64.S:74: Error: no such instruction: `ldp x29,x30,[sp],'
--> darwin/arm64 error: exit status 1
Stderr: go: downloading github.com/mitchellh/go-homedir v1.1.0
# runtime/cgo
clang: error: argument unused during compilation: '-arch arm64' [-Werror,-Wunused-command-line-argument]
--> darwin/amd64 error: exit status 1
Stderr: go: downloading github.com/mitchellh/go-homedir v1.1.0
# runtime/cgo
clang: error: argument unused during compilation: '-arch x86_64' [-Werror,-Wunused-command-line-argument]
exit status 1
make: *** [Makefile:364: build-cross] Error 1

The goccy/go-graphviz project is not so actively developed, I found samiliar issues have been resolved for years:

Is it possible to switch to other library with same function?

@reaver-flomesh
Copy link
Author

It's fine, resolved.

@gauravkghildiyal
Copy link
Member

Thanks for bringing this to attention @reaver-flomesh

Although at the moment I haven't replaced this dependency, but hopefully with the newer version of goccy/go-graphviz, this should be somewhat less of a problem.

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

No branches or pull requests

2 participants