Skip to content

Doesn't build for NetBSD #388

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
tbu- opened this issue Jul 18, 2016 · 3 comments
Closed

Doesn't build for NetBSD #388

tbu- opened this issue Jul 18, 2016 · 3 comments

Comments

@tbu-
Copy link
Contributor

tbu- commented Jul 18, 2016

I installed the stdlib for NetBSD with rustup. nix compilation fails:

src/sys/signal.rs:32:17: 32:32 error: unresolved name `libc::SIGSTKFLT` [E0425]
src/sys/signal.rs:32     SIGSTKFLT = libc::SIGSTKFLT,
                                     ^~~~~~~~~~~~~~~
src/sys/signal.rs:32:17: 32:32 help: run `rustc --explain E0425` to see a detailed explanation
src/sys/signal.rs:47:14: 47:26 error: unresolved name `libc::SIGPWR` [E0425]
src/sys/signal.rs:47     SIGPWR = libc::SIGPWR,
                                  ^~~~~~~~~~~~
src/sys/signal.rs:47:14: 47:26 help: run `rustc --explain E0425` to see a detailed explanation
src/sys/mman.rs:135:38: 135:53 error: unresolved name `libc::MAP_STACK` [E0425]
src/sys/mman.rs:135             const MAP_STACK        = libc::MAP_STACK,
                                                         ^~~~~~~~~~~~~~~
<bitflags macros>:91:1: 93:63 note: in this expansion of bitflags! (defined in <bitflags macros>)
src/sys/mman.rs:125:5: 142:6 note: in this expansion of bitflags! (defined in <bitflags macros>)
src/sys/mman.rs:135:38: 135:53 help: run `rustc --explain E0425` to see a detailed explanation
src/sys/signal.rs:32:17: 32:32 error: constant evaluation error: non-constant path in constant expression [E0080]
src/sys/signal.rs:32     SIGSTKFLT = libc::SIGSTKFLT,
                                     ^~~~~~~~~~~~~~~
src/sys/signal.rs:32:17: 32:32 help: run `rustc --explain E0080` to see a detailed explanation
src/sys/signal.rs:47:14: 47:26 error: constant evaluation error: non-constant path in constant expression [E0080]
src/sys/signal.rs:47     SIGPWR = libc::SIGPWR,
                                  ^~~~~~~~~~~~
src/sys/signal.rs:47:14: 47:26 help: run `rustc --explain E0080` to see a detailed explanation
error: aborting due to 2 previous errors
error: Could not compile `nix`.

To learn more, run the command again with --verbose.

Maybe the CI could also check alternative platforms.

@posborne
Copy link
Member

Hi @tbu-, I don't have any NetBSD experience but we would love to have contributions to fix NetBSD (part of that might be contributing changes to libc). The CI infrastructure is pretty flexible and runs docker containers -- there might be some way to fit into that framework with some changes to support NetBSD (might want to look at what libc does).

@fiveop
Copy link
Contributor

fiveop commented Jul 19, 2016

Does #389 fix it? In that case we can close the issue.

@tbu-
Copy link
Contributor Author

tbu- commented Jul 19, 2016

It does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants