-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 compiler #1413
Comments
Have a look at the discussions in #26, #324, #1326 and perhaps those related to 32bit support (search the issue tracker). The gist is that you should add the necessary ifdef's, load up the target or all of them and venture into |
I experimented FreeBSD support some months ago. Since OSX is built on BSD it shouldn't be too hard to have most of the features running on FreeBSD (hopefully). I have a highly outdated patch as an example. I was capable to cross compile and run basic code (eg: direct C calls with empty prelude). Yet, trying something slightly more complicated quickly resulted in segfaults, apparently because of thread context switches. |
FreeBSD support was merged! Instructions to build Crystal on FreeBSD (with an x86_64 binary) are available there: https://dl.dropboxusercontent.com/u/53345358/freebsd/setup.txt |
A tarball of Crystal 0.16.0 with a few bundled libs (libgc, libevent, libpcre) is now available: https://dl.dropboxusercontent.com/u/53345358/freebsd/crystal-0.16.0.tar.gz with updated install explanations in the link of the previous. Please ping me if you have any trouble to install it, so I can fix issues or update the install instructions accordingly. |
@ysbaddaden Since there's no fresh FreeBSD tarballs, I tried to bootstrap and build my own using your instructions (FreeBSD 10.3 x86_64). Here's some lessons learned:
And here's my questions:
Thank you for your time! |
@ysbaddaden have we published instructions on how to build FreeBSD somewhere? The Dropbox links you shared in this issue seem to be broken now, and I'm not seeing those anywhere else. This was brought to our attention in the mailing list (https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/crystal-lang/QVIkYA6pFwE). Could you point me to the newest instructions? I'd like to give it a try, see if it still works, fix any issues and then add the instructions to https://github.com/crystal-lang/crystal-book |
No, there aren't. Some binaries are available on the releases packages for 0.19.x if I recall correctly. It may also be cross-compiled then copied and linked on FreeBSD. A few packages are required. The Vagrantfile should list these. |
Thanks! |
What steps are needed to bootstrap a FreeBSD target compiler?
The text was updated successfully, but these errors were encountered: