Skip to content
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

Need automation for prebuilding Rust compiler #32

Closed
edunham opened this issue May 29, 2015 · 5 comments
Closed

Need automation for prebuilding Rust compiler #32

edunham opened this issue May 29, 2015 · 5 comments

Comments

@edunham
Copy link
Contributor

@edunham edunham commented May 29, 2015

In order to do a Servo release, we prebuild the Rust compiler. This is currently done on @larsbergstrom's laptop.
Some relatively up-to-date docs on the prebuild process are at https://github.com/servo/servo/wiki/Updating-the-Rust-compiler-used-by-Servo

The machine which successfully builds the compiler is Ubuntu 14.04 LTS with installed software as described by the dpkg list at https://pastebin.mozilla.org/8835186

A better solution will be to have Salt configs describing a machine capable of building the compiler, which could be applied to a VM on one's laptop or to an EC2 instance.

@Manishearth
Copy link
Member

@Manishearth Manishearth commented May 29, 2015

Is there any specific setup for osx?

@larsbergstrom
Copy link
Contributor

@larsbergstrom larsbergstrom commented May 29, 2015

@Manishearth There's nothing at all interesting about the OSX setup except that it has the Android tools installed, which we don't have a builder for right now (because it wasn't working until ~2 weeks ago).

@edunham
Copy link
Contributor Author

@edunham edunham commented Aug 26, 2015

I'm using Ansible for the Rust infrastructure. The role which resolves this issue on the Linux side (still working on the OSX side) is currently here though it may make more sense to factor it into its own repo later.

In a clone of the repo linked above, I can vagrant up ndk (that's what I nicknamed the box that does the android cross-compiler build) and an Ubuntu 12.04 VM gets provisioned and builds the compiler described by the wiki page. Haven't rigorously tested that the built compiler behaves identically to the old one yet.

@edunham
Copy link
Contributor Author

@edunham edunham commented Aug 26, 2015

@Manishearth The mac just needs the packages required for building rust and building the NDK, so it needs to have Brew installed. After the dependencies are installed, the commands for building the snapshot are the same as on Linux.

@larsbergstrom
Copy link
Contributor

@larsbergstrom larsbergstrom commented Jan 4, 2016

All done now! We are using the Rust nightly builds.

Manishearth pushed a commit that referenced this issue Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.