-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add support for NetBSD #249
Comments
NetBSD isn't supported so this is a feature request? |
I have no idea if that version did anything, but since 0.5.0 built on NetBSD I thought it was a regression. |
I have started adding the
and I have no idea what to do about that. |
You have to add netbsd to the build tag in syscall.go |
We probably added build tags to ensure that only the supported platforms actually build which we were missing before. |
I've added |
You are just missing build tags. Add netbsd to the |
Ok, adding lots of tags makes it build. Yay! I've pushed them to my fork.
|
I've added the netbsd tag to the libc example and tried to run it, but:
|
It's telling you that you are missing a build tag in that file. |
I tried looking at all files with build tags. I think I found a problem for FreeBSD (because it affects NetBSD too). purego/internal/cgo/dlfcn_cgo_unix.go Line 9 in 6cd1224
purego/internal/cgo/syscall_cgo_unix.go Line 12 in 6cd1224
both have
but *BSD do not provide this library, the |
Well build tags in the Cgo comment can be used.
I'm a little confused as FreeBSD is tested in CI and it passes with the current code |
I have no clue why it works on FreeBSD in CI. Thanks, that worked. I've pushed my changes to the fork. |
I just want to let you know, that I do not have any issues with purego and FreeBSD. |
PureGo Version
6cd1224
Operating System
Go Version (
go version
)1.21.10
What steps will reproduce the problem?
I wanted to track down a build problem in an older version, but started with building
main
, and it didn't build:What is the expected result?
Successful build.
What happens instead?
see above.
Anything else you feel useful to add?
That's on NetBSD/amd64.
The text was updated successfully, but these errors were encountered: