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

openbsd/i386 build fails #21

Closed
ivandeex opened this issue Jul 24, 2021 · 1 comment · Fixed by #23
Closed

openbsd/i386 build fails #21

ivandeex opened this issue Jul 24, 2021 · 1 comment · Fixed by #23

Comments

@ivandeex
Copy link

ivandeex commented Jul 24, 2021

The problem is with golang 1.16.6 symbol unix.RLIMIT_NPROC undefined on openbsd/i386 (all fine on openbsd/amd64):
https://github.com/tklauser/go-sysconf/blob/v0.3.6/sysconf_openbsd.go#L22

From the build log (https://github.com/rclone/rclone/runs/3150179581?check_suite_focus=true#step:15:35), section "compile all architectures test":

2021/07/24 10:53:13 Failed to run [go build --ldflags -s -X github.com/rclone/rclone/fs.Version=v1.56.0-beta.5602.1fcdec087.merge -trimpath -o rclone-v1.56.0-beta.5602.1fcdec087.merge-openbsd-386/rclone -tags  ..]: exit status 2
2021/07/24 10:53:13 Command output was:
# github.com/tklauser/go-sysconf
Error: ../../../../go/pkg/mod/github.com/tklauser/go-sysconf@v0.3.6/sysconf_openbsd.go:22:28: undefined: unix.RLIMIT_NPROC

rclone/rclone#5402 is pending on this issue.

@tklauser
Copy link
Owner

Thanks for the report @ivandeex! I've sent https://golang.org/cl/341069 to add RLIMIT_NPROC for openbsd/386 (and openbsd/arm for that matter) and will update this package as soon as the upstream fix is merged.

tklauser added a commit that referenced this issue Aug 16, 2021
This pulls in RLIMIT_NPROC for openbsd/386 and openbsd/arm (see
golang.org/cl/341069

Fixes #21
tklauser added a commit that referenced this issue Aug 16, 2021
This pulls in RLIMIT_NPROC for openbsd/386 and openbsd/arm, see
https://golang.org/cl/341069

Fixes #21
tklauser added a commit that referenced this issue Aug 16, 2021
This pulls in RLIMIT_NPROC for openbsd/386 and openbsd/arm, see
https://golang.org/cl/341069

Fixes #21
tklauser added a commit to tklauser/gopsutil that referenced this issue Aug 16, 2021
This fixes the build of go-sysconf on openbsd/386 and openbsd/arm, see
tklauser/go-sysconf#21 and rclone/rclone#5402 for context.

List of changes: tklauser/go-sysconf@v0.3.6...v0.3.8
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

Successfully merging a pull request may close this issue.

2 participants