-
Notifications
You must be signed in to change notification settings - Fork 71
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. |
@0-wiz-0 Can you download my branch and try running https://github.com/TotallyGamerJet/purego/tree/issue-249_netbsd |
@TotallyGamerJet Thanks for looking at this.
|
Thanks for trying. I think you need to checkout the feature branch after you clone ( Also if it doesn't work again can you include the values of running |
You're probably right, but your instructions didn't work. I'll paste what I did in case we need it again:
Here's my
|
Can you try:
If that fails with the exact same error about missing |
gives me
A new error! |
Try again. I pushed some more changes with build tags. Hopefully I got all the spots |
Yes, better, now:
On NetBSD (and I think other BSDs too), |
I made a change let me know if that works for you |
Thanks. It needed fixing in a second place too:
Now I see:
|
Thanks! I made the necessary changes which should solve all those problems |
Thanks! Now I see:
|
Ok, I pushed a commit to just ignore all those tests |
Thank you!
|
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: