You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cross compile from alpine to openbsd: cannot use _Ctype_size_t(len(b)) (value of type _Ctype_ulong) as _Ctype_uint value in argument to (_C2func_getnameinfo)
#68126
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.
Cgo was a necessity because of my use of go-sqlite3
What did you see happen?
# net
/usr/lib/go/src/net/cgo_resold.go:20:76: cannot use _Ctype_size_t(len(b)) (value of type _Ctype_ulong) as _Ctype_uint value in argument to (_C2func_getnameinfo)
I got the following error
What did you expect to see?
I expected it to compile without error
The text was updated successfully, but these errors were encountered:
When you are cross-compiling from Linux to OpenBSD, you must set CC to a C cross-compiler from Linux to OpenBSD. That C cross-compiler must read the OpenBSD header files, not the Linux ones.
Go version
go version go1.22.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
To cross compile a static binary for OpenBSD when running on Alpine linux, I ran the following
Cgo was a necessity because of my use of go-sqlite3
What did you see happen?
I got the following error
What did you expect to see?
I expected it to compile without error
The text was updated successfully, but these errors were encountered: