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

geth fails to build on OpenBSD 7.2 amd64 #26800

Closed
essays-on-esotericism opened this issue Mar 3, 2023 · 2 comments · Fixed by #26801
Closed

geth fails to build on OpenBSD 7.2 amd64 #26800

essays-on-esotericism opened this issue Mar 3, 2023 · 2 comments · Fixed by #26801
Labels

Comments

@essays-on-esotericism
Copy link

System information

Geth version: v1.11.2
OS & Version: OpenBSD 7.2 amd64

Expected behaviour

geth successfully compiles using 'make install' or 'go install ...'

Actual behaviour

geth fails to build

Steps to reproduce the behaviour

Attempt to build geth on OpenBSD:

$ go install github.com/ethereum/go-ethereum/cmd/geth@latest

OR

$ git clone https://github.com/ethereum/go-ethereum
$ cd go-ethereum/
$ git checkout v1.11.2
$ make install

Backtrace

$ go install github.com/ethereum/go-ethereum/cmd/geth@latest
go: downloading github.com/ethereum/go-ethereum v1.11.2
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/russross/blackfriday/v2 v2.1.0          
# github.com/karalabe/usb    
In file included from ../../go/pkg/mod/github.com/karalabe/usb@v0.0.2/raw_errors.go:22:
../../go/pkg/mod/github.com/karalabe/usb@v0.0.2/./libusb/libusb/libusb.h:1807:67: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
../../go/pkg/mod/github.com/karalabe/usb@v0.0.2/./libusb/libusb/libusb.h:1810:9: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
../../go/pkg/mod/github.com/karalabe/usb@v0.0.2/./libusb/libusb/libusb.h:1812:9: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
../../go/pkg/mod/github.com/karalabe/usb@v0.0.2/./libusb/libusb/libusb.h:1816:9: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
../../go/pkg/mod/github.com/karalabe/usb@v0.0.2/./libusb/libusb/libusb.h:1819:9: warning: declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
# github.com/cockroachdb/pebble/vfs
../../go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230209160836-829675f94811/vfs/disk_usage_unix.go:18:27: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
../../go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230209160836-829675f94811/vfs/disk_usage_unix.go:18:48: stat.Bfree undefined (type unix.Statfs_t has no field or method Bfree)
../../go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230209160836-829675f94811/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/cockroachdb/pebble@v0.0.0-20230209160836-829675f94811/vfs/disk_usage_unix.go:19:49: stat.Bavail undefined (type unix.Statfs_t has no field or method Bavail)
../../go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230209160836-829675f94811/vfs/disk_usage_unix.go:20:28: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)
../../go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20230209160836-829675f94811/vfs/disk_usage_unix.go:20:49: stat.Blocks undefined (type unix.Statfs_t has no field or method Blocks)

When submitting logs: please submit them as text and not screenshots.

@karalabe
Copy link
Member

karalabe commented Mar 3, 2023

Hmm, known issue upstream at Pebble: cockroachdb/pebble#2341

I guess we should disable Pebble on OpenBSD until upstream support lands.

@karalabe
Copy link
Member

karalabe commented Mar 3, 2023

This should be fixed on master, will be released in Geth 1.11.3 maybe next week of the one after.

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

Successfully merging a pull request may close this issue.

2 participants