Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

base-db crate failed to build when bootstrapping Rust

Đang mở
#796 3 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
build-system, compilers

Hướng nghiên cứu

Tái hiện lỗi với bootstrap.toml được cung cấp và ./x.py build, sau đó kiểm tra compiler/rustc_codegen_gcc/src/builder.rs:1531 và đường dẫn extract_value trong backtrace. Sử dụng lệnh biên dịch base-db làm trường hợp gây lỗi và xác minh rằng bản build bootstrap hoàn tất mà không có Unexpected type __int8_t * panic.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

I was working on my dist patch and tried to setup a development environment outside of packaging.

bootstrap.toml:

# See bootstrap.example.toml for documentation of available options
#
profile = "dist"  # Includes one of the default files in src/bootstrap/defaults
change-id = 147888

#[build]
#full-bootstrap = true
#jobs = 2

[rust]
codegen-backends = ["gcc"]
deny-warnings = false
debug-assertions = false

[gcc]
download-ci-gcc = true

My checkout of rust was at f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b with my WIP dist patch (which shouldn't affect codegen at all) and the OOM fix on top, see https://github.com/thesamesam/rust/tree/9b1c90709dd411b517d7db9ac1b998a4ff398e71.

I ran ./x.py build and some time into the build, it failed:

   Compiling base-db v0.0.0 (/home/sam/git/rust/src/tools/rust-analyzer/crates/base-db)
   Compiling mbe v0.0.0 (/home/sam/git/rust/src/tools/rust-analyzer/crates/mbe)
   Compiling hir-expand v0.0.0 (/home/sam/git/rust/src/tools/rust-analyzer/crates/hir-expand)

thread 'rustc' (2687346) panicked at compiler/rustc_codegen_gcc/src/builder.rs:1531:13:                                                                                                   Unexpected type __int8_t *                                                                                                                                                               
stack backtrace:                                                                                                                                                                            
 0:     0x7f0584020322 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h47627beda0767f4c
1:     0x7f0584050a4f - core::fmt::write::h8a63064c67176fd8
2:     0x7f0583fd17f3 - std::io::Write::write_fmt::h5e9b646cef91150b
 3:     0x7f0583fe6ff2 - std::sys::backtrace::BacktraceLock::print::h4634d27c0afbaebb
4:     0x7f0583fef3aa - std::panicking::default_hook::{{closure}}::h23e0299d4738b766
 5:     0x7f0583fef204 - std::panicking::default_hook::hfeec6294e8751b62
         6:     0x7f05806bc9f6 - std[e20d0b87aa1ec278]::panicking::update_hook::<alloc[d35db71d034d3387]::boxed::Box<rustc_driver_impl[a08ff5e51d219c2a]::install_ice_hook::{closure#1}>>::{closure#0}
7:     0x7f0583fefa5f - std::panicking::panic_with_hook::hd57cd463d793ed79
8:     0x7f0583fef80a - std::panicking::panic_handler::{{closure}}::hddd6216c3fddee3b                                                                                                     9:     0x7f0583fe7129 - std::sys::backtrace::__rust_end_short_backtrace::h5e7a56f283378525
 10:     0x7f0583fc32ed - __rustc[256c90bb7e548b45]::rust_begin_unwind
            11:     0x7f0584060a50 - core::panicking::panic_fmt::hf19c198748ef6a95
           12:     0x7f057dce4d48 - <rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder as rustc_codegen_ssa[9311ecf3104fcde6]::traits::builder::BuilderMethods>::extract_value
13:     0x7f057dc2a0db - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::FunctionCx<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>>::store_return                                      
14:     0x7f057dc7e7fe - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::block::TerminatorCodegenHelper>::do_call::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>                     
15:     0x7f057dc3006b - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::FunctionCx<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>>::codegen_call_terminator                           
16:     0x7f057dc2b17a - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::FunctionCx<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>>::codegen_block                                     
17:     0x7f057dc1da53 - rustc_codegen_ssa[9311ecf3104fcde6]::mir::codegen_mir::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>                                                   18:     0x7f057dc904e1 - rustc_codegen_ssa[9311ecf3104fcde6]::base::codegen_instance::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>                                             
19:     0x7f057dc86f29 - <rustc_middle[7cfc6eadeeeb72d5]::mir::mono::MonoItem as rustc_codegen_ssa[9311ecf3104fcde6]::mono_item::MonoItemExt>::define::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>                                                                                                                                                                      
20:     0x7f057dc00e25 - rustc_codegen_gcc[14cfcaa53a631e47]::base::compile_codegen_unit::module_codegen                                                                                  21:     0x7f057dbf9524 - rustc_codegen_gcc[14cfcaa53a631e47]::base::compile_codegen_unit                                                                                                  22:     0x7f057dc8f93b - rustc_codegen_ssa[9311ecf3104fcde6]::base::codegen_crate::<rustc_codegen_gcc[14cfcaa53a631e47]::GccCodegenBackend>
  23:     0x7f057dc611dc - <rustc_codegen_gcc[14cfcaa53a631e47]::GccCodegenBackend as rustc_codegen_ssa[9311ecf3104fcde6]::traits::backend::CodegenBackend>::codegen_crate
  24:     0x7f0580934cee - <rustc_session[f994edabbc433fc4]::session::Session>::time::<alloc[d35db71d034d3387]::boxed::Box<dyn core[5b293a957d0a6e5f]::any::Any>, rustc_interface[dcf0e0a8
a73c9394]::passes::start_codegen::{closure#0}>
  25:     0x7f05809743d8 - rustc_interface[dcf0e0a8a73c9394]::passes::start_codegen
  26:     0x7f058094851a - <rustc_interface[dcf0e0a8a73c9394]::queries::Linker>::codegen_and_build_linker
  27:     0x7f05806d362c - <std[e20d0b87aa1ec278]::thread::local::LocalKey<core[5b293a957d0a6e5f]::cell::Cell<*const ()>>>::with::<rustc_middle[7cfc6eadeeeb72d5]::ty::context::tls::enter
_context<<rustc_middle[7cfc6eadeeeb72d5]::ty::context::GlobalCtxt>::enter<rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt<core[5b293a957d0a6e5f]::option::Option<r
ustc_interface[dcf0e0a8a73c9394]::queries::Linker>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[5b293a957d0a6e5f]::option
::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>>::{closure#1}, core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>>::{closure#0}, core
[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>>
  28:     0x7f058068328b - <rustc_middle[7cfc6eadeeeb72d5]::ty::context::TyCtxt>::create_global_ctxt::<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>, rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>, rustc_driver_
impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  29:     0x7f05806594e0 - <rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Lin
ker>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[5b293a957d0a6e5f]::ops::function::FnOnce<(&rustc_session[f994edabbc433fc4]::sessio
n::Session, rustc_middle[7cfc6eadeeeb72d5]::ty::context::CurrentGcx, alloc[d35db71d034d3387]::sync::Arc<rustc_data_structures[ab2ce16cad8618aa]::jobserver::Proxy>, &std[e20d0b87aa1ec278]
::sync::once_lock::OnceLock<rustc_middle[7cfc6eadeeeb72d5]::ty::context::GlobalCtxt>, &rustc_data_structures[ab2ce16cad8618aa]::sync::worker_local::WorkerLocal<rustc_middle[7cfc6eadeeeb7
2d5]::arena::Arena>, &rustc_data_structures[ab2ce16cad8618aa]::sync::worker_local::WorkerLocal<rustc_hir[24a6abdd5fd8257e]::Arena>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{cl
osure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  30:     0x7f05806580b9 - rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt::<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Li
nker>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>
  31:     0x7f0580696b6a - rustc_span[eee2686a21fb97e]::create_session_globals_then::<(), rustc_interface[dcf0e0a8a73c9394]::util::run_in_thread_with_globals<rustc_interface[dcf0e0a8a73c
9394]::util::run_in_thread_pool_with_globals<rustc_interface[dcf0e0a8a73c9394]::interface::run_compiler<(), rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}>::{closure#1},
()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  32:     0x7f05806b0309 - std[e20d0b87aa1ec278]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[dcf0e0a8a73c9394]::util::run_in_thread_with_globals<rustc_interface[dcf0e
0a8a73c9394]::util::run_in_thread_pool_with_globals<rustc_interface[dcf0e0a8a73c9394]::interface::run_compiler<(), rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}>::{closu
re#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  33:     0x7f05806b31be - <<std[e20d0b87aa1ec278]::thread::Builder>::spawn_unchecked_<rustc_interface[dcf0e0a8a73c9394]::util::run_in_thread_with_globals<rustc_interface[dcf0e0a8a73c939
4]::util::run_in_thread_pool_with_globals<rustc_interface[dcf0e0a8a73c9394]::interface::run_compiler<(), rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}>::{closure#1}, ()>
::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5b293a957d0a6e5f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  34:     0x7f0583fe194f - std::sys::thread::unix::Thread::new::thread_start::hbaf586a9e50a98cd  35:     0x7f057ea84dfa - start_thread
  36:     0x7f057eb215d8 - __GI___clone3
  37:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/sam/git/rust/rustc-ice-2025-11-03T19_25_35-2687335.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C link-args=-Wl,-z,
origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z unstable-options -Z binary-dep-depinfo -Z on-broken-pipe=kill -Z tls-model=initial-exec -Z allow-features=rustc_private,proc_macro_intern
als,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink,proc_macro_def_site,new_zeroed_alloc

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `base-db` (lib)

Caused by:
  process didn't exit successfully: `/home/sam/git/rust/build/bootstrap/debug/rustc /home/sam/git/rust/build/bootstrap/debug/rustc --crate-name base_db --edition=2024 src/tools/rust-anal
yzer/crates/base-db/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=186 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no '--warn=clippy::suspicious' '--warn=clippy::style' '--allow=clippy::restriction' '--deny=clippy::perf' '--deny=clippy::correctness' '--warn=clippy::complexity' '--allow=clippy::wrong_self_convention' '--allow=clippy::vec_init_then_push' '--allow=clippy::useless_asref' --warn=unused_lifetimes --warn=unused_extern_crates --warn=unsafe_op_in_unsafe_fn --warn=unreachable_pub '--allow=clippy::unnecessary_map_or' --warn=unexpected_cfgs '--allow=clippy::type_complexity' '--allow=clippy::too_many_arguments' '--allow=clippy::too_long_first_doc_paragraph' '--warn=clippy::todo' '--warn=clippy::str_to_string' '--allow=clippy::single_match' '--allow=clippy::result_unit_err' '--warn=clippy::rc_buffer' '--warn=clippy::print_stdout' '--warn=clippy::print_stderr' '--allow=clippy::new_ret_no_self' '--allow=clippy::literal_string_with_formatting_args' '--allow=clippy::len_without_is_empty' --warn=explicit_outlives_requirements '--allow=clippy::enum_variant_names' --warn=elided_lifetimes_in_paths '--warn=clippy::dbg_macro' '--allow=clippy::assigning_clones' --check-cfg 'cfg(bootstrap)' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=6bf1b6485dd3b3cd -C extra-filename=-1636374c3827340b --out-dir /home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps --extern cfg=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcfg-289a440d8040a881.rmeta --extern dashmap=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libdashmap-7e8f4840592b00c4.rmeta --extern indexmap=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libindexmap-6de900e6b335d877.rmeta --extern intern=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libintern-ca09efff03dc133a.rmeta --extern la_arena=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libla_arena-7147ec83c3020ef7.rmeta --extern query_group=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libquery_group_macro-9c10caeac860314a.so --extern rustc_hash=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustc_hash-a49c1471b46069ba.rmeta --extern salsa=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsalsa-ad2a67e62c759a17.rmeta --extern salsa_macros=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libsalsa_macros-94f846009bb98812.so --extern semver=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsemver-9841d6c752bd3bec.rmeta --extern span=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libspan-ee4a54f7c7533503.rmeta --extern syntax=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyntax-e1db00a480c5a13a.rmeta --extern tracing=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtracing-c7912d9ce2f51344.rmeta --extern triomphe=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtriomphe-4302e14cc2c1eb8c.rmeta --extern vfs=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libvfs-c483fddefd51a50e.rmeta --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(rust_analyzer)' -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zunstable-o
ptions -Z binary-dep-depinfo` (exit status: 101)
warning: build failed, waiting for other jobs to finish...
thread 'rustc' (2688532) panicked at compiler/rustc_codegen_gcc/src/builder.rs:1531:13:
Unexpected type __int8_t *
stack backtrace:
   0:     0x7f25e3420322 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h47627beda0767f4c
   1:     0x7f25e3450a4f - core::fmt::write::h8a63064c67176fd8
   2:     0x7f25e33d17f3 - std::io::Write::write_fmt::h5e9b646cef91150b
   3:     0x7f25e33e6ff2 - std::sys::backtrace::BacktraceLock::print::h4634d27c0afbaebb
   4:     0x7f25e33ef3aa - std::panicking::default_hook::{{closure}}::h23e0299d4738b766
   5:     0x7f25e33ef204 - std::panicking::default_hook::hfeec6294e8751b62
   6:     0x7f25dfabc9f6 - std[e20d0b87aa1ec278]::panicking::update_hook::<alloc[d35db71d034d3387]::boxed::Box<rustc_driver_impl[a08ff5e51d219c2a]::install_ice_hook::{closure#1}>>::{clos
ure#0}
   7:     0x7f25e33efa5f - std::panicking::panic_with_hook::hd57cd463d793ed79
   8:     0x7f25e33ef80a - std::panicking::panic_handler::{{closure}}::hddd6216c3fddee3b
   9:     0x7f25e33e7129 - std::sys::backtrace::__rust_end_short_backtrace::h5e7a56f283378525
  10:     0x7f25e33c32ed - __rustc[256c90bb7e548b45]::rust_begin_unwind
  11:     0x7f25e3460a50 - core::panicking::panic_fmt::hf19c198748ef6a95
  12:     0x7f25dd0e4d48 - <rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder as rustc_codegen_ssa[9311ecf3104fcde6]::traits::builder::BuilderMethods>::extract_value
  13:     0x7f25dd02a0db - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::FunctionCx<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>>::store_return
  14:     0x7f25dd07e7fe - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::block::TerminatorCodegenHelper>::do_call::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>
  15:     0x7f25dd03006b - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::FunctionCx<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>>::codegen_call_terminator
  16:     0x7f25dd02b17a - <rustc_codegen_ssa[9311ecf3104fcde6]::mir::FunctionCx<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>>::codegen_block
  17:     0x7f25dd01da53 - rustc_codegen_ssa[9311ecf3104fcde6]::mir::codegen_mir::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>
  18:     0x7f25dd0904e1 - rustc_codegen_ssa[9311ecf3104fcde6]::base::codegen_instance::<rustc_codegen_gcc[14cfcaa53a631e47]::builder::Builder>
  19:     0x7f25dd086f29 - <rustc_middle[7cfc6eadeeeb72d5]::mir::mono::MonoItem as rustc_codegen_ssa[9311ecf3104fcde6]::mono_item::MonoItemExt>::define::<rustc_codegen_gcc[14cfcaa53a631e
47]::builder::Builder>
  20:     0x7f25dd000e25 - rustc_codegen_gcc[14cfcaa53a631e47]::base::compile_codegen_unit::module_codegen
  21:     0x7f25dcff9524 - rustc_codegen_gcc[14cfcaa53a631e47]::base::compile_codegen_unit
  22:     0x7f25dd08f93b - rustc_codegen_ssa[9311ecf3104fcde6]::base::codegen_crate::<rustc_codegen_gcc[14cfcaa53a631e47]::GccCodegenBackend>
  23:     0x7f25dd0611dc - <rustc_codegen_gcc[14cfcaa53a631e47]::GccCodegenBackend as rustc_codegen_ssa[9311ecf3104fcde6]::traits::backend::CodegenBackend>::codegen_crate
  24:     0x7f25dfd34cee - <rustc_session[f994edabbc433fc4]::session::Session>::time::<alloc[d35db71d034d3387]::boxed::Box<dyn core[5b293a957d0a6e5f]::any::Any>, rustc_interface[dcf0e0a8
a73c9394]::passes::start_codegen::{closure#0}>
  25:     0x7f25dfd743d8 - rustc_interface[dcf0e0a8a73c9394]::passes::start_codegen
  26:     0x7f25dfd4851a - <rustc_interface[dcf0e0a8a73c9394]::queries::Linker>::codegen_and_build_linker
  27:     0x7f25dfad362c - <std[e20d0b87aa1ec278]::thread::local::LocalKey<core[5b293a957d0a6e5f]::cell::Cell<*const ()>>>::with::<rustc_middle[7cfc6eadeeeb72d5]::ty::context::tls::enter
_context<<rustc_middle[7cfc6eadeeeb72d5]::ty::context::GlobalCtxt>::enter<rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt<core[5b293a957d0a6e5f]::option::Option<r
ustc_interface[dcf0e0a8a73c9394]::queries::Linker>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[5b293a957d0a6e5f]::option
::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>>::{closure#1}, core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>>::{closure#0}, core
[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>>
  28:     0x7f25dfa8328b - <rustc_middle[7cfc6eadeeeb72d5]::ty::context::TyCtxt>::create_global_ctxt::<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::
Linker>, rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Linker>, rustc_driver_
impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  29:     0x7f25dfa594e0 - <rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c9394]::queries::Lin
ker>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[5b293a957d0a6e5f]::ops::function::FnOnce<(&rustc_session[f994edabbc433fc4]::sessio
n::Session, rustc_middle[7cfc6eadeeeb72d5]::ty::context::CurrentGcx, alloc[d35db71d034d3387]::sync::Arc<rustc_data_structures[ab2ce16cad8618aa]::jobserver::Proxy>, &std[e20d0b87aa1ec278]
::sync::once_lock::OnceLock<rustc_middle[7cfc6eadeeeb72d5]::ty::context::GlobalCtxt>, &rustc_data_structures[ab2ce16cad8618aa]::sync::worker_local::WorkerLocal<rustc_middle[7cfc6eadeeeb7
2d5]::arena::Arena>, &rustc_data_structures[ab2ce16cad8618aa]::sync::worker_local::WorkerLocal<rustc_hir[24a6abdd5fd8257e]::Arena>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{cl
osure#0}::{closure#2})>>::call_once::{shim:vtable#0}  30:     0x7f25dfa580b9 - rustc_interface[dcf0e0a8a73c9394]::passes::create_and_enter_global_ctxt::<core[5b293a957d0a6e5f]::option::Option<rustc_interface[dcf0e0a8a73c19:25:42 [20/9610]
nker>, rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}::{closure#2}>
  31:     0x7f25dfa96b6a - rustc_span[eee2686a21fb97e]::create_session_globals_then::<(), rustc_interface[dcf0e0a8a73c9394]::util::run_in_thread_with_globals<rustc_interface[dcf0e0a8a73c
9394]::util::run_in_thread_pool_with_globals<rustc_interface[dcf0e0a8a73c9394]::interface::run_compiler<(), rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}>::{closure#1},
()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  32:     0x7f25dfab0309 - std[e20d0b87aa1ec278]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[dcf0e0a8a73c9394]::util::run_in_thread_with_globals<rustc_interface[dcf0e
0a8a73c9394]::util::run_in_thread_pool_with_globals<rustc_interface[dcf0e0a8a73c9394]::interface::run_compiler<(), rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}>::{closu
re#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  33:     0x7f25dfab31be - <<std[e20d0b87aa1ec278]::thread::Builder>::spawn_unchecked_<rustc_interface[dcf0e0a8a73c9394]::util::run_in_thread_with_globals<rustc_interface[dcf0e0a8a73c939
4]::util::run_in_thread_pool_with_globals<rustc_interface[dcf0e0a8a73c9394]::interface::run_compiler<(), rustc_driver_impl[a08ff5e51d219c2a]::run_compiler::{closure#0}>::{closure#1}, ()>
::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5b293a957d0a6e5f]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  34:     0x7f25e33e194f - std::sys::thread::unix::Thread::new::thread_start::hbaf586a9e50a98cd
  35:     0x7f25dde84dfa - start_thread
  36:     0x7f25ddf215d8 - __GI___clone3
  37:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/sam/git/rust/rustc-ice-2025-11-03T19_25_37-2688528.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C link-args=-Wl,-z,
origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z unstable-options -Z binary-dep-depinfo -Z on-broken-pipe=kill -Z tls-model=initial-exec -Z allow-features=rustc_private,proc_macro_intern
als,proc_macro_diagnostic,proc_macro_span,proc_macro_span_shrink,proc_macro_def_site,new_zeroed_alloc

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `hir-expand` (lib)

Caused by:
  process didn't exit successfully: `/home/sam/git/rust/build/bootstrap/debug/rustc /home/sam/git/rust/build/bootstrap/debug/rustc --crate-name hir_expand --edition=2024 src/tools/rust-a
nalyzer/crates/hir-expand/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=186 --crate-type lib --emit=dep-info,metadata,link -
C opt-level=3 -C embed-bitcode=no '--warn=clippy::suspicious' '--warn=clippy::style' '--allow=clippy::restriction' '--deny=clippy::perf' '--deny=clippy::correctness' '--warn=clippy::comp
lexity' '--allow=clippy::wrong_self_convention' '--allow=clippy::vec_init_then_push' '--allow=clippy::useless_asref' --warn=unused_lifetimes --warn=unused_extern_crates --warn=unsafe_op_
in_unsafe_fn --warn=unreachable_pub '--allow=clippy::unnecessary_map_or' --warn=unexpected_cfgs '--allow=clippy::type_complexity' '--allow=clippy::too_many_arguments' '--allow=clippy::to
o_long_first_doc_paragraph' '--warn=clippy::todo' '--warn=clippy::str_to_string' '--allow=clippy::single_match' '--allow=clippy::result_unit_err' '--warn=clippy::rc_buffer' '--warn=clipp
y::print_stdout' '--warn=clippy::print_stderr' '--allow=clippy::new_ret_no_self' '--allow=clippy::literal_string_with_formatting_args' '--allow=clippy::len_without_is_empty' --warn=expli
cit_outlives_requirements '--allow=clippy::enum_variant_names' --warn=elided_lifetimes_in_paths '--warn=clippy::dbg_macro' '--allow=clippy::assigning_clones' --check-cfg 'cfg(bootstrap)'
 --cfg 'feature="in-rust-tree"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("in-rust-tree"))' -C metadata=7d5ab60b7d3bf4ab -C extra-filename=-973b90825d73c6eb --out-dir /home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps --extern base_db=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libbase_db-1636374c3827340b.rmeta --extern cfg=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcfg-289a440d8040a881.rmeta --extern cov_mark=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libcov_mark-875961be77dd30b7.rmeta --extern either=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libeither-6adb34716ed382cf.rmeta --extern intern=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libintern-ca09efff03dc133a.rmeta --extern itertools=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-2b7030d06d682684.rmeta --extern mbe=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmbe-38c2f8ad5dcfdfc5.rmeta --extern parser=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libparser-684eff85b762b5ab.rmeta --extern query_group=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libquery_group_macro-9c10caeac860314a.so --extern rustc_hash=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustc_hash-a49c1471b46069ba.rmeta --extern salsa=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsalsa-ad2a67e62c759a17.rmeta --extern salsa_macros=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libsalsa_macros-94f846009bb98812.so --extern smallvec=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsmallvec-7e7489720e82ff4c.rmeta --extern span=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libspan-ee4a54f7c7533503.rmeta --extern stdx=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libstdx-a4736420b6868552.rmeta --extern syntax=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyntax-e1db00a480c5a13a.rmeta --extern syntax_bridge=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyntax_bridge-0d26a40b9e06d1a3.rmeta --extern tracing=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtracing-c7912d9ce2f51344.rmeta --extern triomphe=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtriomphe-4302e14cc2c1eb8c.rmeta --extern tt=/home/sam/git/rust/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libtt-e53196d136d7add1.rmeta --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(rust_analyzer)' -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zunstable-options -Z binary-dep-depinfo` (exit status: 101)
    Building [=====================>   ] 343/387: protobuf, xtask(bin)
    Building [=====================>   ] 344/387: protobuf
Build completed unsuccessfully in 0:27:44
Ngôn ngữ chính
Rust
Star
1.2k
Fork
106
Merge trung bình
6 giờ 17 phút
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rust-lang/rustc_codegen_gcc

Tất cả issue của rust-lang/rustc_codegen_gcc

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.