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

Compilation warnings on macOS 14.0 with Apple M2 chip #169

Open
lamjack opened this issue Nov 7, 2023 · 3 comments
Open

Compilation warnings on macOS 14.0 with Apple M2 chip #169

lamjack opened this issue Nov 7, 2023 · 3 comments
Labels

Comments

@lamjack
Copy link

lamjack commented Nov 7, 2023

Hello,

I'm experiencing some compilation warnings when installing go-callvis on macOS 14.0 (23A344) with an Apple M2 chip. I thought it might be important to report this in case it affects other users or if it could potentially lead to issues down the line.

Environment:

  • macOS version: 14.0 (23A344)
  • Chip: Apple M2
  • Go version: (run go version and paste the output here)

Installation Command:

go install github.com/ofabry/go-callvis@latest

Warnings:

These warnings seem to point towards implicit truncation from 'int' to a one-bit wide bit-field and functions defined without prototypes, which are deprecated in current and future versions of C.

Despite these warnings, the installation completes, but I'm concerned about the potential for unexpected behavior or compatibility issues with future versions of Go or macOS.

Is this something that can be looked into? Any guidance on whether these warnings can be safely ignored or if they will be addressed in a future update would be appreciated.

Thank you for your time and for maintaining this project!

@lamjack
Copy link
Author

lamjack commented Nov 7, 2023

More details:

go install github.com/ofabry/go-callvis@latest
go: downloading github.com/ofabry/go-callvis v0.7.0
go: downloading github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
go: downloading golang.org/x/tools v0.8.0
go: downloading github.com/goccy/go-graphviz v0.1.1
go: downloading golang.org/x/image v0.6.0
go: downloading github.com/fogleman/gg v1.3.0
go: downloading github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: downloading golang.org/x/mod v0.10.0
# github.com/goccy/go-graphviz/internal/ccall
In file included from common.c:5:
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:165:35: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2540:24: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2596:35: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2602:35: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2612:31: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2623:31: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2628:31: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2641:28: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2650:33: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2659:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/common/emit.c:2668:32: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
# github.com/goccy/go-graphviz/internal/ccall
In file included from dotgen.c:15:
go/pkg/mod/github.com/goccy/[email protected]/internal/ccall/dotgen/dotsplines.c:2310:13: warning: a function definition 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/[email protected]/internal/ccall/dotgen/dotsplines.c:2504:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]

@wzl521
Copy link

wzl521 commented Aug 8, 2024

How did you solve it?

@pixystone
Copy link

pixystone commented Aug 16, 2024

Please refer to #162 , these are just warnings.

@ondrajz ondrajz added the mac label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants