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

supplied speedtest-go binary will not run on OpenBSD 7.5 GENERIC.MP #233

Closed
void-fm opened this issue Oct 26, 2024 · 9 comments
Closed

supplied speedtest-go binary will not run on OpenBSD 7.5 GENERIC.MP #233

void-fm opened this issue Oct 26, 2024 · 9 comments

Comments

@void-fm
Copy link

void-fm commented Oct 26, 2024

./speedtest-go
speedtest-go:./speedtest-go: undefined symbol 'syscall'
ld.so: speedtest-go: lazy binding failed!
Killed

@void-fm
Copy link
Author

void-fm commented Oct 27, 2024

workaround is to compile from source

  1. install go
  2. git clone https://github.com/showwin/speedtest-go.git
  3. go build
  4. doas mv speedtest-go /usr/local/bin

@r3inbowari
Copy link
Collaborator

r3inbowari commented Oct 27, 2024

Hi, @void-fm what version of go binary are you using?

DialerControl func(network, address string, c syscall.RawConn) error

You can try to disable the code in this snippet. this system call interface may not be supported?

@void-fm
Copy link
Author

void-fm commented Oct 27, 2024

Hi, @void-fm what version of go binary are you using?

speedtest-go_1.7.9_OpenBSD_arm64.tar.gz

DialerControl func(network, address string, c syscall.RawConn) error

You can try to disable the code in this snippet. this system call interface may not be supported?

syscall(2) was removed in i think OpenBSD 7.4, might be earlier. I'm running 7.5. I didn't have to modify any code.Building from source was sufficient for it to link correctly. The sources were downloaded with git. I guess the supplied binary was built on an old openbsd instance

@r3inbowari
Copy link
Collaborator

Hi, @void-fm what version of go binary are you using?

speedtest-go_1.7.9_OpenBSD_arm64.tar.gz

DialerControl func(network, address string, c syscall.RawConn) error

You can try to disable the code in this snippet. this system call interface may not be supported?

syscall(2) was removed in i think OpenBSD 7.4, might be earlier. I'm running 7.5. I didn't have to modify any code.Building from source was sufficient for it to link correctly. The sources were downloaded with git. I guess the supplied binary was built on an old openbsd instance

OK

@r3inbowari
Copy link
Collaborator

r3inbowari commented Oct 30, 2024

syscall(2) was removed in i think OpenBSD 7.4

Yes, I just noticed that they used the new ABI.

https://go-review.googlesource.com/c/go/+/582256 maybe we need to upgrade the go version in ci goreleaser to 1.23.2.

@void-fm
Copy link
Author

void-fm commented Oct 30, 2024

% date && uname -mrsv && go version
Wed Oct 30 12:28:01 GMT 2024
OpenBSD 7.6 GENERIC.MP#219 arm64
go version go1.23.1 openbsd/arm64

@void-fm
Copy link
Author

void-fm commented Oct 30, 2024

os version was updated a couple of days ago

@r3inbowari
Copy link
Collaborator

there is a question about whether upgrading goreleaser will cause the package size to become larger.

@r3inbowari
Copy link
Collaborator

r3inbowari commented Dec 20, 2024

we have used the latest go toolchains in goreleaser. unfortunately, this will increase the average package size by +17%. 🥲

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