Skip to content

Add support for cross compiling to the rump kernel #26702

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

Closed
posix4e opened this issue Jul 1, 2015 · 5 comments
Closed

Add support for cross compiling to the rump kernel #26702

posix4e opened this issue Jul 1, 2015 · 5 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@posix4e
Copy link
Contributor

posix4e commented Jul 1, 2015

https://github.com/rumpkernel/ is a neat project for a minimal netbsd anykernel. Since rump kernel is compatible with netbsd I've started adding support for cross compiling a amd64 netbsd rustc at
#26682
rust-lang/rust-installer#38

An additional pull request needs to be filed actually get rust to use that rust-installer pull request. Once netbsd is in the tree, compiling for rump should be trivial.

@posix4e
Copy link
Contributor Author

posix4e commented Jul 1, 2015

For some reason I can't assign this to myself

@Gankra
Copy link
Contributor

Gankra commented Jul 1, 2015

Only members of the organization can be assigned an issue.

@posix4e
Copy link
Contributor Author

posix4e commented Jul 1, 2015

Gatcha! cheers

@steveklabnik steveklabnik added A-build C-enhancement Category: An issue proposing an enhancement or a PR with one. labels Jul 6, 2015
@posix4e
Copy link
Contributor Author

posix4e commented Jul 7, 2015

So we got the first two pull requests in, now we need to build a stage0 snapshot

fetch: x86_64-unknown-netbsd/stage0/bin/rustc
Traceback (most recent call last):
File "/root/rust/src/etc/get-snapshot.py", line 78, in
main(sys.argv)
File "/root/rust/src/etc/get-snapshot.py", line 60, in main
snap = determine_curr_snapshot(triple)
File "/root/rust/src/etc/snapshot.py", line 301, in determine_curr_snapshot
(platform, rev))
Exception: no snapshot file found for platform netbsd-x86_64, rev 7b95b5c
/root/rust/mk/stage0.mk:17: recipe for target 'x86_64-unknown-netbsd/stage0/bin/rustc' failed
gmake: *** [x86_64-unknown-netbsd/stage0/bin/rustc] Error 1

I'm curious if this is something I can do. I certainly can cross compile one on linux

@alexcrichton
Copy link
Member

Done! The x86_64-rumprun-netbsd target is suitable for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

4 participants