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 on OpenBSD arm64 #22434

Closed
tobias-hildebrandt opened this issue Mar 5, 2021 · 2 comments · Fixed by #22693
Closed

Build fails on OpenBSD arm64 #22434

tobias-hildebrandt opened this issue Mar 5, 2021 · 2 comments · Fixed by #22693
Assignees
Labels

Comments

@tobias-hildebrandt
Copy link
Contributor

Hello, I'm unable to build geth on my Raspberry Pi 4 running OpenBSD -current. I'm not very knowledgeable on the Go build process. Please let me know what other information is necessary or if I should run any other commands.

System information

Raspberry Pi 4 (2GB RAM)
$ uname -a
OpenBSD rpi4-openbsd.none 6.9 GENERIC.MP#1051 arm64

Expected behaviour

geth builds successfully and exists in ./build/bin/

Actual behaviour

geth fails on build, ./build/bin/ does not exist

Steps to reproduce the behaviour

go install github.com/ethereum/go-ethereum/cmd/geth@latest on a Raspberry Pi 4 running OpenBSD

Backtrace Logs

goenv
go install github.com/ethereum/go-ethereum/cmd/geth@latest (the same errors occur when running make geth after cloning the git repo)

@MariusVanDerWijden
Copy link
Member

From your log:

# github.com/shirou/gopsutil/mem
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:21:17: undefined: CTLVm
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:21:24: undefined: VmUvmexp
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:26:14: undefined: sizeOfUvmexp
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:29:13: undefined: Uvmexp
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:43:17: undefined: CTLVm
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:43:24: undefined: VmUvmexp
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:48:14: undefined: sizeOfUvmexp
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:51:13: undefined: Uvmexp
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:72:16: undefined: CTLVfs
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:72:24: undefined: VfsGeneric
.go/pkg/mod/github.com/shirou/[email protected]+incompatible/mem/mem_openbsd.go:72:24: too many errors
# github.com/ethereum/go-ethereum/cmd/utils
.go/pkg/mod/github.com/ethereum/[email protected]/cmd/utils/diskusage.go:34:19: stat.Bavail undefined (type unix.Statfs_t has no field or method Bavail)
.go/pkg/mod/github.com/ethereum/[email protected]/cmd/utils/diskusage.go:35:9: stat.Bavail undefined (type unix.Statfs_t has no field or method Bavail)
.go/pkg/mod/github.com/ethereum/[email protected]/cmd/utils/diskusage.go:41:37: stat.Bsize undefined (type unix.Statfs_t has no field or method Bsize)

Seems that there is a problem in gopsutil on OpenBSD and in "golang.org/x/sys/unix",
We'll investigate it, thank you for reporting!

@gballet
Copy link
Member

gballet commented Mar 23, 2021

Fix pushed at shirou/gopsutil#1052, need to wait for the merge

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.

4 participants