FreeBSD amd64 support #1409

Closed
wants to merge 5 commits into
from

3 participants

@crabtw
Contributor
crabtw commented Jan 2, 2012

Before bootstrapping, it needs to install devel/libexecinfo and lang/gcc44+.

In order to enable segmented stacks, it also needs to patch LLVM.
This patch uses tcb_spare field in the tcb structure to store info.
For i386 arch there is no spare field so it can only work on amd64.

It currently failed on "modf(float::infinity, d2) == 0.0" and "pow(-1.0, float::infinity) == 1.0" in make check.

LLVM segmented stack patch:
http://people.cs.nctu.edu.tw/~jyyou/rust/bsd-seg-stack.diff
stage3 snapshot:
http://people.cs.nctu.edu.tw/~jyyou/rust/rust-stage0.tar.bz2

@brson
Contributor
brson commented Jan 2, 2012

Wow. This is really fantastic.

This was referenced Jan 2, 2012
@brson
Contributor
brson commented Jan 2, 2012

I've committed the LLVM patch to our LLVM branch. Testing the Rust patches on the bots now. We really need a FreeBSD bot (#1410) in order to start snapshotting. Not sure how soon we can get that set up.

@brson
Contributor
brson commented Jan 2, 2012

Merged. Thanks! It will take some time to get the snapshots going. If nothing happens in a week feel free to bug graydon or I about it.

@brson brson closed this Jan 2, 2012
@djwmarks

Consider yourself bugged about it. Thanks!

@brson
Contributor
brson commented Jan 23, 2012

@dominicmarks Thanks ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment