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

Building libstd without libcompiler_builtins #36990

Closed
Zoxc opened this issue Oct 6, 2016 · 5 comments
Closed

Building libstd without libcompiler_builtins #36990

Zoxc opened this issue Oct 6, 2016 · 5 comments
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@Zoxc
Copy link
Contributor

Zoxc commented Oct 6, 2016

After this mess there isn't a way to build libstd without building libcompiler_builtins (which is unable to build on my OS)

@Zoxc
Copy link
Contributor Author

Zoxc commented Oct 9, 2016

Could it be made a optional std dependency? That would work for me, since I build std out-of-tree with explicit features.

@Zoxc
Copy link
Contributor Author

Zoxc commented Oct 9, 2016

Actually I used Cargo's [replace] feature (which is broken) to replace compiler_builtins with a dummy crate.

@archshift
Copy link
Contributor

This would be much appreciated.

@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 26, 2017
@jonas-schievink jonas-schievink added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) and removed T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-build labels Apr 21, 2019
@Mark-Simulacrum Mark-Simulacrum added C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. and removed C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 19, 2019
@bjorn3
Copy link
Member

bjorn3 commented May 15, 2022

compiler_builtins is unconditionally necessary when stack probing is enabled, as it is on x86_64. This is because rustc uses __rust_probestack as stack probe function and there is no system library providing this, just compiler_builtins. Why did compiler_builtins not compile on your system?

@Mark-Simulacrum
Copy link
Member

Without details on the failed build I'm going to go ahead and close. I believe we currently support a Rust-only, but likely less optimized, compiler builtins (or are working towards that), which should be buildable pretty much everywhere Rust is.

@Mark-Simulacrum Mark-Simulacrum closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants