caddy: AIX build is broken
Hi,
I just noticed the env vars GOOS=aix GOARCH=ppc64 will lead to a build error:
$ GOOS=aix GOARCH=ppc64 go build
# github.com/dgraph-io/badger
../../../../go/pkg/mod/github.com/dgraph-io/badger@v1.6.2/dir_unix.go:63:13: undefined: unix.Flock
# github.com/dgraph-io/badger/v2
../../../../go/pkg/mod/github.com/dgraph-io/badger/v2@v2.2007.4/dir_unix.go:62:13: undefined: unix.Flock
# github.com/google/certificate-transparency-go/x509
../../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/cert_pool.go:65:9: undefined: loadSystemRoots
../../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/root.go:21:32: undefined: loadSystemRoots
../../../../go/pkg/mod/github.com/google/certificate-transparency-go@v1.1.6/x509/verify.go:759:12: c.systemVerify undefined (type *Certificate has no field or method systemVerify)
I think this should have worked out of the box? => https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63
I found no infos about AIX not being supported. Any help is appreciated.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (22 by maintainers)
Commits related to this issue
- [#5970] cross-build for AIX — committed to bmarwell/caddy by bmarwell 3 years ago
Woohoo thanks! Can now evaulate caddy as a reverse proxy! Many thanks! đđ»
Reported upstream:
Thank you for your patience explaining this! đ I am a Java developer only, all of what you said is really helpful! đđ»
The README is correct because itâs listing the typical workflow of building the latest tagged version without modification. The change in flow for you is because youâre trying to build an untagged version that has not been released yet. Once we tag a new version, you wonât need to do the
go get -u ....Oh, youâll have to run
go get -u github.com/caddyserver/caddy/v2@masterafter thetidystep.@bmarwell, you can use the build tag
nobadgerto build Caddy on AIX. We donât use Badger anyways; we use bbolt, which works on AIX without issues.Oh, I can add a PR for that! https://github.com/caddyserver/caddy/pull/5971 Let me just find and sign the CLA form. đ
For badger, the issue is a gap further upstream in
golang.org/x/sys/unix, which is missing some syscalls for AIX, notablyLock.Iâve never even heard of
aix. Weâre not testing for that in our crossbuild job https://github.com/caddyserver/caddy/blob/master/.github/workflows/cross-build.ymlEither way, this is a problem with upstream dependencies. Youâll probably need to get the attention of
dgraph-io/badgerandgoogle/certificate-transparency-goto fix it.