-
Notifications
You must be signed in to change notification settings - Fork 23
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
FreeBSD build fails Error: No statfs implementation
#262
Comments
Ok, thank you for your findings! Made PR to crystal for But also monkey patched here: 6560de7 And added Statfs for bsd platforms too: |
Would be awesome to see a GH action that built avalanchemq in freebsd, maybe with https://github.com/vmactions/freebsd-vm ? |
The reason for it using macOS, I believe, is that GitHub Actions doesn't allow nested virtualization for the Azure VMs: actions/runner-images#183 |
There are other CI solutions we could use, e.g. https://cirrus-ci.org/features/ which have FreeBSD |
I'm not really clear what the issue here is - I'll take a closer look next week once I have some more familiarity with crystal under my belt. But I guess the monkey-patching isn't sufficient -- the Darwin & FreeBSD structs are not so similar. |
THank you for the tip @dentarg , set up cirrus: https://cirrus-ci.com/github/cloudamqp/avalanchemq |
Got it working, but now there's some OpenSSL issue with crystal in freebsd: https://cirrus-ci.com/task/6046301113548800 |
yeah we should bump that. you'll need |
Ah, cool, thanks! It's progressing! https://cirrus-ci.com/task/5046482723143680 |
I've found a couple of failures while building on FreeBSD - if these can be fixed I can add avalanchemq to FreeBSD ports/packages. I will report it in crystal repo & link back to here.
FreeBSD's statfs(2) is simlar to Darwin:
A partial patch for
src/stdlib/filesystem.cr
looks like this, but I have no idea yet how the fields (with C comments still) map to crystal syntax/structures:There's a similar error for
getrlimit
getrlimit(2)which appears to be https://cgit.freebsd.org/src/tree/sys/sys/resource.h#n112
I'd be happy to collaborate on this if you're willing to help out with the crystal syntax etc.
The text was updated successfully, but these errors were encountered: