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

Redox on stable #2012

Closed
Thomasdezeeuw opened this issue Dec 28, 2020 · 5 comments
Closed

Redox on stable #2012

Thomasdezeeuw opened this issue Dec 28, 2020 · 5 comments
Labels

Comments

@Thomasdezeeuw
Copy link
Contributor

Currently libc for Redox requires the static_nobundle feature, which means it doesn't build on rust stable. Is there any way to work around this?

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /Users/thomas/.cargo/registry/src/gitpro.ttaallkk.top-1ecc6299db9ec823/libc-0.2.81/src/lib.rs:32:5
   |
32 |     feature(static_nobundle)
   |     ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0554`.
error: could not compile `libc`
@JohnTitor
Copy link
Member

I'm not familiar with redox, maybe @jackpot51 has some thoughts?

@jackpot51
Copy link
Contributor

jackpot51 commented Dec 28, 2020

This just isn't possible. Redox only supports static linking, and needs the static_nobundle feature. It would be nice if it was stabilized at some point. Is there a reason you would want to use a stable compiler to target Redox?

@Thomasdezeeuw
Copy link
Contributor Author

@jackpot51 I'm trying to add Redox to the CI of socket2: rust-lang/socket2#78, rust-lang/socket2#181. But I can change it be nighty only.

@jackpot51
Copy link
Contributor

@Thomasdezeeuw thank you. We will need that feature stabilized at some point. For now, redox always compiles on nightly. Redoxer will handle this for you automatically

@JohnTitor
Copy link
Member

Thanks @jackpot51! So, there's no actionable item here and I'm going to close this.

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

No branches or pull requests

3 participants