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

build fails when cross compiling for openbsd #43

Open
lnproxy opened this issue Oct 21, 2022 · 2 comments
Open

build fails when cross compiling for openbsd #43

lnproxy opened this issue Oct 21, 2022 · 2 comments

Comments

@lnproxy
Copy link

lnproxy commented Oct 21, 2022

Seems to be an issue with pebble:

GOOS=openbsd GOARCH=amd64 go build
# github.com/cockroachdb/pebble/vfs
../../../../go/pkg/mod/github.com/cockroachdb/[email protected]/vfs/disk_usage_unix.go:17:27: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
../../../../go/pkg/mod/github.com/cockroachdb/[email protected]/vfs/disk_usage_unix.go:17:48: stat.Bfree undefined (type unix.Statfs_t has no field or method Bfree)
../../../../go/pkg/mod/github.com/cockroachdb/[email protected]/vfs/disk_usage_unix.go:18:28: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
../../../../go/pkg/mod/github.com/cockroachdb/[email protected]/vfs/disk_usage_unix.go:18:49: stat.Bavail undefined (type unix.Statfs_t has no field or method Bavail)
../../../../go/pkg/mod/github.com/cockroachdb/[email protected]/vfs/disk_usage_unix.go:19:28: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
../../../../go/pkg/mod/github.com/cockroaGOOS=openbsd: exit 2
chdb/[email protected]/vfs/disk_usage_unix.go:19:49: stat.Blocks undefined (type unix.Statfs_t has no field or method Blocks)

I tried setting pebble to a newer version in go.mod but got the same error.

@fiatjaf
Copy link
Collaborator

fiatjaf commented Oct 21, 2022

We probably should replace that database with a different one. It is so annoying.

Anyway, I put it to build on GitHub for OpenBSD using Go 1.18, let's see what happens there: https://github.com/nbd-wtf/satdress/actions/runs/3299751622/jobs/5443484098

@lnproxy
Copy link
Author

lnproxy commented Oct 22, 2022

Well, I gave up and made a bad version that just dumps everything on the file system:
https://github.com/lnproxy/lnproxy-address

[email protected] seems to work on the wallets I have.

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

No branches or pull requests

2 participants