-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Description
Summary
Thanks for reading or replying.
I hope to get test coverage for std\core\alloc.
Currently I have tried the following method:
export RUSTFLAGS_NOT_BOOTSTRAP="-C instrument-coverage"
bootstrap.toml:
build.profiler = true
profiler_builtins compiled failed:
Compiling profiler_builtins v0.0.0 (/usr/local/xxxx/rust/library/profiler_builtins)
Running `CARGO=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo CARGO_CRATE_NAME=core CARGO_MANIFEST_DIR=/usr/local/xxxx/rust/library/core CARGO_MANIFEST_PATH=/usr/local/xxxx/rust/library/core/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='The Rust Core Library' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=core CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/rust.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' LD_LIBRARY_PATH=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps /usr/local/xxxx/rust/build/bootstrap/debug/rustc /usr/local/xxxx/rust/build/bootstrap/debug/rustc --crate-name core --edition=2024 library/core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=175 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --warn=unexpected_cfgs --check-cfg 'cfg(target_arch, values("loongarch32"))' --check-cfg 'cfg(no_fp_fmt_parse)' --check-cfg 'cfg(feature, values(any()))' --check-cfg 'cfg(target_has_reliable_f16)' --check-cfg 'cfg(target_has_reliable_f16_math)' --check-cfg 'cfg(target_has_reliable_f128)' --check-cfg 'cfg(target_has_reliable_f128_math)' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("debug_refcell", "debug_typeid", "optimize_for_size", "panic_immediate_abort"))' -C metadata=5efc210677be9bcf -C extra-filename=-31604dc462678efe --out-dir /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps -C instrument-coverage -Cprefer-dynamic -Csymbol-mangling-version=v0 '--check-cfg=cfg(feature,values(any()))' -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Cembed-bitcode=yes -Zunstable-options -Cforce-frame-pointers=non-leaf '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' -Z binary-dep-depinfo`
Running `CARGO=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo CARGO_CRATE_NAME=profiler_builtins CARGO_MANIFEST_DIR=/usr/local/xxxx/rust/library/profiler_builtins CARGO_MANIFEST_PATH=/usr/local/xxxx/rust/library/profiler_builtins/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=profiler_builtins CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' LD_LIBRARY_PATH=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps OUT_DIR=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/build/profiler_builtins-61fd907b55223bac/out /usr/local/xxxx/rust/build/bootstrap/debug/rustc /usr/local/xxxx/rust/build/bootstrap/debug/rustc --crate-name profiler_builtins --edition=2024 library/profiler_builtins/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=175 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=026dc6690de98996 -C extra-filename=-24e4fd21d230add6 --out-dir /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps -C instrument-coverage -Cprefer-dynamic -Csymbol-mangling-version=v0 '--check-cfg=cfg(feature,values(any()))' -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Cembed-bitcode=yes -Zunstable-options -Cforce-frame-pointers=non-leaf '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' -Z binary-dep-depinfo -L native=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/build/profiler_builtins-61fd907b55223bac/out -l static=profiler-rt`
error[E0463]: can't find crate for `profiler_builtins`
|
= note: the compiler may have been built without the profiler runtime
For more information about this error, try `rustc --explain E0463`.
Building [=======> ] 12/40: profiler_builtins, core
Did not run successfully: exit status: 1
LD_LIBRARY_PATH="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1/lib:/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "--crate-name" "profiler_builtins" "--edition=2024" "library/profiler_builtins/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts,future-incompat" "--diagnostic-width=175" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "opt-level=3" "-C" "embed-bitcode=no" "--check-cfg" "cfg(docsrs,test)" "--check-cfg" "cfg(feature, values())" "-C" "metadata=026dc6690de98996" "-C" "extra-filename=-24e4fd21d230add6" "--out-dir" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps" "--target" "x86_64-unknown-linux-gnu" "-L" "dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps" "-L" "dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps" "-C" "instrument-coverage" "-Cprefer-dynamic" "-Csymbol-mangling-version=v0" "--check-cfg=cfg(feature,values(any()))" "-Zunstable-options" "-Zmacro-backtrace" "-Csplit-debuginfo=off" "-Cprefer-dynamic" "-Zinline-mir" "-Zinline-mir-preserve-debug" "-Zmir_strip_debuginfo=locals-in-tiny-functions" "-Clink-args=-Wl,-z,origin" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Alinker-messages" "-Cembed-bitcode=yes" "-Zunstable-options" "-Cforce-frame-pointers=non-leaf" "-Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\")" "-Z" "binary-dep-depinfo" "-L" "native=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/build/profiler_builtins-61fd907b55223bac/out" "-l" "static=profiler-rt" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Dwarnings" "--sysroot" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1" "-Z" "force-unstable-if-unmarked"
-------------
warning: [email protected]: In file included from /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/ci-llvm/compiler-rt/lib/profile/InstrProfiling.h:12,
warning: [email protected]: from /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/ci-llvm/compiler-rt/lib/profile/InstrProfilingFile.c:34:
warning: [email protected]: /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/ci-llvm/compiler-rt/lib/profile/InstrProfilingFile.c: In function ‘doProfileMerging’:
warning: [email protected]: /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/ci-llvm/compiler-rt/lib/profile/InstrProfilingPort.h:33:37: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
warning: [email protected]: 33 | #define COMPILER_RT_FTRUNCATE(f, l) ftruncate(fileno(f), l)
warning: [email protected]: | ^~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/ci-llvm/compiler-rt/lib/profile/InstrProfilingFile.c:479:9: note: in expansion of macro ‘COMPILER_RT_FTRUNCATE’
warning: [email protected]: 479 | (void)COMPILER_RT_FTRUNCATE(ProfileFile,
warning: [email protected]: | ^~~~~~~~~~~~~~~~~~~~~
error: could not compile `profiler_builtins` (lib) due to 1 previous error
Caused by:
process didn't exit successfully: `CARGO=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo CARGO_CRATE_NAME=profiler_builtins CARGO_MANIFEST_DIR=/usr/local/xxxx/rust/library/profiler_builtins CARGO_MANIFEST_PATH=/usr/local/xxxx/rust/library/profiler_builtins/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=profiler_builtins CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' LD_LIBRARY_PATH=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps OUT_DIR=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/build/profiler_builtins-61fd907b55223bac/out /usr/local/xxxx/rust/build/bootstrap/debug/rustc /usr/local/xxxx/rust/build/bootstrap/debug/rustc --crate-name profiler_builtins --edition=2024 library/profiler_builtins/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=175 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=026dc6690de98996 -C extra-filename=-24e4fd21d230add6 --out-dir /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps -C instrument-coverage -Cprefer-dynamic -Csymbol-mangling-version=v0 '--check-cfg=cfg(feature,values(any()))' -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Cembed-bitcode=yes -Zunstable-options -Cforce-frame-pointers=non-leaf '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' -Z binary-dep-depinfo -L native=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/build/profiler_builtins-61fd907b55223bac/out -l static=profiler-rt` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
Building [=======> ] 13/40: core
Did not run successfully: exit status: 1
LD_LIBRARY_PATH="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1/lib:/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "--crate-name" "core" "--edition=2024" "library/core/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts,future-incompat" "--diagnostic-width=175" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "opt-level=3" "-C" "embed-bitcode=no" "--warn=unexpected_cfgs" "--check-cfg" "cfg(target_arch, values(\"loongarch32\"))" "--check-cfg" "cfg(no_fp_fmt_parse)" "--check-cfg" "cfg(feature, values(any()))" "--check-cfg" "cfg(target_has_reliable_f16)" "--check-cfg" "cfg(target_has_reliable_f16_math)" "--check-cfg" "cfg(target_has_reliable_f128)" "--check-cfg" "cfg(target_has_reliable_f128_math)" "--check-cfg" "cfg(docsrs,test)" "--check-cfg" "cfg(feature, values(\"debug_refcell\", \"debug_typeid\", \"optimize_for_size\", \"panic_immediate_abort\"))" "-C" "metadata=5efc210677be9bcf" "-C" "extra-filename=-31604dc462678efe" "--out-dir" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps" "--target" "x86_64-unknown-linux-gnu" "-L" "dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps" "-L" "dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps" "-C" "instrument-coverage" "-Cprefer-dynamic" "-Csymbol-mangling-version=v0" "--check-cfg=cfg(feature,values(any()))" "-Zunstable-options" "-Zmacro-backtrace" "-Csplit-debuginfo=off" "-Cprefer-dynamic" "-Zinline-mir" "-Zinline-mir-preserve-debug" "-Zmir_strip_debuginfo=locals-in-tiny-functions" "-Clink-args=-Wl,-z,origin" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Alinker-messages" "-Cembed-bitcode=yes" "-Zunstable-options" "-Cforce-frame-pointers=non-leaf" "-Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\")" "-Z" "binary-dep-depinfo" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Dwarnings" "--sysroot" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1" "-Z" "force-unstable-if-unmarked"
-------------
error: could not compile `core` (lib) due to 1 previous error
Caused by:
process didn't exit successfully: `CARGO=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo CARGO_CRATE_NAME=core CARGO_MANIFEST_DIR=/usr/local/xxxx/rust/library/core CARGO_MANIFEST_PATH=/usr/local/xxxx/rust/library/core/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='The Rust Core Library' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=core CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/rust.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' LD_LIBRARY_PATH=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps /usr/local/xxxx/rust/build/bootstrap/debug/rustc /usr/local/xxxx/rust/build/bootstrap/debug/rustc --crate-name core --edition=2024 library/core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=175 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --warn=unexpected_cfgs --check-cfg 'cfg(target_arch, values("loongarch32"))' --check-cfg 'cfg(no_fp_fmt_parse)' --check-cfg 'cfg(feature, values(any()))' --check-cfg 'cfg(target_has_reliable_f16)' --check-cfg 'cfg(target_has_reliable_f16_math)' --check-cfg 'cfg(target_has_reliable_f128)' --check-cfg 'cfg(target_has_reliable_f128_math)' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("debug_refcell", "debug_typeid", "optimize_for_size", "panic_immediate_abort"))' -C metadata=5efc210677be9bcf -C extra-filename=-31604dc462678efe --out-dir /usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps -C instrument-coverage -Cprefer-dynamic -Csymbol-mangling-version=v0 '--check-cfg=cfg(feature,values(any()))' -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Cembed-bitcode=yes -Zunstable-options -Cforce-frame-pointers=non-leaf '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' -Z binary-dep-depinfo` (exit status: 1)
command did not execute successfully: cd "/usr/local/xxxx/rust" && env -u MAKEFLAGS -u MFLAGS AR_x86_64_unknown_linux_gnu="ar" CARGO_INCREMENTAL="0" CARGO_LOG="cargo::core::compiler::fingerprint=info" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_PROFILE_RELEASE_STRIP="false" CARGO_TARGET_DIR="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1-std" CC_x86_64_unknown_linux_gnu="cc" CFG_COMPILER_BUILD_TRIPLE="x86_64-unknown-linux-gnu" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu" CFG_RELEASE_CHANNEL="dev" CFLAGS_x86_64_unknown_linux_gnu="" CXXFLAGS_x86_64_unknown_linux_gnu="" CXX_x86_64_unknown_linux_gnu="c++" LIBC_CHECK_CFG="1" RANLIB_x86_64_unknown_linux_gnu="ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/native" RUSTC="/usr/local/xxxx/rust/build/bootstrap/debug/rustc" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_ERROR_METADATA_DST="/usr/local/xxxx/rust/build/tmp/extended-error-metadata" RUSTC_FORCE_UNSTABLE="1" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1/lib" RUSTC_LINK_STD_INTO_RUSTC_DRIVER="1" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Dwarnings" RUSTC_REAL="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" RUSTC_SNAPSHOT="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/lib" RUSTC_STAGE="1" RUSTC_SYSROOT="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage1" RUSTC_VERBOSE="2" RUSTC_WRAPPER="/usr/local/xxxx/rust/build/bootstrap/debug/rustc" RUSTDOC="/usr/local/xxxx/rust/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-C instrument-coverage -Cprefer-dynamic -Csymbol-mangling-version=v0 --check-cfg=cfg(feature,values(any())) -Zunstable-options -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.90.0-dev -Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\") -Zcrate-attr=warn(rust_2018_idioms)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-C instrument-coverage -Cprefer-dynamic -Csymbol-mangling-version=v0 --check-cfg=cfg(feature,values(any())) -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug -Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,$ORIGIN/../lib -Alinker-messages -Cembed-bitcode=yes -Zunstable-options -Cforce-frame-pointers=non-leaf -Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\")" RUST_COMPILER_RT_FOR_PROFILER="/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/ci-llvm/compiler-rt" RUST_TEST_THREADS="4" WINAPI_NO_BUNDLED_LIBRARIES="1" __CARGO_DEFAULT_LIB_METADATA="devstd1.90.0" "/usr/local/xxxx/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "4" "-Zroot-dir=/usr/local/xxxx/rust" "-v" "-v" "--release" "--features" "backtrace panic-unwind profiler" "--manifest-path" "/usr/local/xxxx/rust/library/sysroot/Cargo.toml" "-p" "alloc" "-p" "compiler_builtins" "-p" "core" "-p" "panic_abort" "-p" "panic_unwind" "-p" "proc_macro" "-p" "profiler_builtins" "-p" "std" "-p" "sysroot" "-p" "test" "-p" "unwind" "--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
File "./x.py", line 53, in <module>
bootstrap.main()
File "/usr/local/xxxx/rust/src/bootstrap/bootstrap.py", line 1372, in main
bootstrap(args)
File "/usr/local/xxxx/rust/src/bootstrap/bootstrap.py", line 1347, in bootstrap
run(args, env=env, verbose=build.verbose, is_bootstrap=True)
File "/usr/local/xxxx/rust/src/bootstrap/bootstrap.py", line 236, in run
raise RuntimeError(err)
RuntimeError: failed to run: /usr/local/xxxx/rust/build/bootstrap/debug/bootstrap build --stage 1 -vv
Operating system
Ubuntu 20.04.1 LTS x86_64
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.