-
Notifications
You must be signed in to change notification settings - Fork 13k
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
./x.py build --verbose and config.toml build.verbose=2 don't trigger cargo --verbose #42099
Comments
@devurandom just to confirm, this is the build for rustbuild itself? I know that location doesn't handle |
@alexcrichton I was trying to build rustc. You can find the complete, but WIP ebuild in my Gentoo overlay. It is based on the Gentoo ebuild for 1.16.0, but tries to adapt to the changes in the build-system from 1.16 to 1.17 and switch from Makefiles to |
@devurandom do you have logs or a gist of the wrong behavior, maybe with comments as to what the expected correct behavior is? |
E.g. when I run This makes it very hard for me to debug another issue, where the bootstrapping |
Do you have logs of what's going on? The logs in the linked thread there look like |
Build log when using the current ebuild: https://gist.github.com/devurandom/1223ee18f46c6ed866b386ec7009dbbb You are right that, after bootstrapping, the build was verbose in the logs linked from the forums post. But even there you will notice that the bootstrap process is not verbose (see lines 108 to 118 of the Gist). It just so happens that at the time I posted that Gist I tricked the bootstrap process into succeeding, which is why most of what you see is output of later stages of the build. The major difference between the ebuild posted in the Gist and the current version of the ebuild is that the former uses the system Rust compiler to bootstrap (which is why it works during bootstrapping, but fails later), while the latter uses the Rust compiler it downloads from https://static.rust-lang.org/dist/rustc-1.16.0-x86_64-unknown-linux-gnu.tar.gz (which shows the libstd issue already during bootstrapping). |
Ok thanks for the clarification! In that case I believe the fix would just go somewhere around here |
Thanks for the hint. I came across that part about a hundred times, but failed to make the connection. Please find the fix in #42186. On the other topic: Is it possible to make Cargo / |
…=alexcrichton bootstrap: Make bootstrap verbose if requested Fixes: rust-lang#42099
…=alexcrichton bootstrap: Make bootstrap verbose if requested Fixes: rust-lang#42099
…=alexcrichton bootstrap: Make bootstrap verbose if requested Fixes: rust-lang#42099
…=alexcrichton bootstrap: Make bootstrap verbose if requested Fixes: rust-lang#42099
…=alexcrichton bootstrap: Make bootstrap verbose if requested Fixes: rust-lang#42099
Passing
--verbose
to./x.py build
and settingbuild.verbose
inconfig.toml
does not cause--verbose
to be passed tocargo
, which results in a non-verbose build.I am trying to build rust-1.17.0 as follows:
The text was updated successfully, but these errors were encountered: