# NetBSD port progress

**URL:** <https://internals.rust-lang.org/t/netbsd-port-progress/3307>\
**Category:** Uncategorized\
**Created:** [March 25, 2016, 9:51am UTC](https://internals.rust-lang.org/t/netbsd-port-progress/3307 "2016-03-25T09:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehiggs](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ehiggs/32/3224_2.png) [@ehiggs](https://internals.rust-lang.org/u/ehiggs)\
**Post date:** [March 25, 2016, 9:51am UTC](https://internals.rust-lang.org/t/netbsd-port-progress/3307/1 "2016-03-25T09:51:08Z")

</div>

Hi all, I noticed that some of the work on the NetBSD port is taking place on the netbsd mailing lists and some seems to be taking place on the Rust community portals. So I thought I would try to link the discussions together to make sure people are on the same page (literally?)

[Currently NetBSD has version 0.11 in wip/rust and when 1.8 stable is release, it will be added under lang/rust](http://mail-index.netbsd.org/tech-pkg/2016/03/24/msg016628.html). However, this looks like it will be using some cobbled together version of cargo.

On the rust side of things, there is a nightly build of [`rustc`](https://static.rust-lang.org/dist/2016-03-24/index.html). But `cargo` doesn’t have a nightly build yet. But it should be available soon since @alexcrichton is doing a lot of work in this area including [merging more support in cargo](https://github.com/rust-lang/cargo/pull/2510);

So, my understanding of the current state of play is that once cargo has snapshot builds then one can build Rust using `./configure --enable-rustbuild`. Does this mean much of jperkins’ work is unneeded? Do you think Rust 1.8 will be available on NetBSD?

NB: I see @alexcrichton is doing lots of work in this area, but I didn’t see any mention of NetBSD in the triage of subteam report threads.

---

<div class="post-metadata">

**Author:** ![alexcrichton](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/alexcrichton/32/4501_2.png) [@alexcrichton](https://internals.rust-lang.org/u/alexcrichton)\
**Post date:** [March 25, 2016, 4:43pm UTC](https://internals.rust-lang.org/t/netbsd-port-progress/3307/2 "2016-03-25T16:43:16Z")

</div>

Thanks for the update!

In my spare time recently I’ve managed to get a gcc cross compiler from Linux to FreeBSD/NetBSD, and that’s helped unlock for us at least the ability to have infrastructure to produce nightly compilers and cargos. The effort here is somewhat ad-hoc as we’re not actually testing the produced binaries much. For example I don’t think NetBSD can produce many binaries until [#32407](https://github.com/rust-lang/rust/pull/32407) is merged, and the current cross-compiled Cargo binaries aren’t correctly hooking up OpenSSL to libcurl (but is hopefully fixed in [#2519](https://github.com/rust-lang/cargo/pull/2519))

All that being said, if there’s anything we can do to help, please let us know! I’m hoping that having _some_ nightly binaries of the compiler and Cargo will help get the ball rolling for more extensive testing and packaging. If we need to change anything on our end, however, it shoudl be easy to do so!

In terms of building Rust itself, you’ve got two options. With `--enable-rustbuild` you just need the nightly compiler matching the date in `src/nightlies.txt`, but without this option you’ll need to produce a stage0 snapshot matching `src/snapshots.txt` somehow. If you send a PR with a NetBSD snapshot I can upload it and make sure to enable the build for others.

Rust 1.8 probably won’t build out of the box on NetBSD unfortunately. Rust 1.10 will be the first to have a NetBSD release (via `--enable-rustbuild` that’s cross-compiled from Linux), and hopefully we can help flesh out bugs before then!

Hope that helps 🙂

---

<div class="post-metadata">

**Author:** ![ehiggs](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ehiggs/32/3224_2.png) [@ehiggs](https://internals.rust-lang.org/u/ehiggs)\
**Post date:** [March 26, 2016, 5:37pm UTC](https://internals.rust-lang.org/t/netbsd-port-progress/3307/3 "2016-03-26T17:37:02Z")

</div>

Thanks.

I pointed jperkins to this thread and he clarified that he is working on pkgsrc (which is associated with NetBSD) but his focus is on SmartOS, OS X, and Linux - not NetBSD.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [March 25, 2019, 8:25am UTC](https://internals.rust-lang.org/t/netbsd-port-progress/3307/4 "2019-03-25T08:25:58Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
