Open eopb opened 1 year ago
If you add the glibc.static
package that test should work, but when I last tried that it introduced some new trouble.
I think the way to fix this is to change the test to not link glibc statically, but it's not immediately obvious what the best alternative would be.
The recommended
shell.nix
fails to linktests/ui/process/nofile-limit.rs
.Output
``` rust on master [?] via 🐍 v3.9.17 via 🦀 v1.75.0-nightly via ❄ impure (rustc) took 2m24s ❯ ./x test tests/ui/process/nofile-limit.rs Building bootstrap Finished dev [unoptimized] target(s) in 0.04s Updating submodule src/tools/cargo Submodule 'src/tools/cargo' (https://github.com/rust-lang/cargo.git) registered for path 'src/tools/cargo' Cloning into '/home/ethan/Code/rust-lang/rust/src/tools/cargo'... fatal: unable to access 'https://github.com/rust-lang/cargo.git/': Recv failure: Connection reset by peer fatal: clone of 'https://github.com/rust-lang/cargo.git' into submodule path '/home/ethan/Code/rust-lang/rust/src/tools/cargo' failed Failed to clone 'src/tools/cargo'. Retry scheduled Cloning into '/home/ethan/Code/rust-lang/rust/src/tools/cargo'... remote: Enumerating objects: 2122, done. remote: Counting objects: 100% (2122/2122), done. remote: Compressing objects: 100% (1474/1474), done. remote: Total 2122 (delta 560), reused 1307 (delta 431), pack-reused 0 Receiving objects: 100% (2122/2122), 2.82 MiB | 2.85 MiB/s, done. Resolving deltas: 100% (560/560), done. remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Enumerating objects: 361, done. remote: Counting objects: 100% (361/361), done. remote: Compressing objects: 100% (143/143), done. remote: Total 189 (delta 159), reused 70 (delta 43), pack-reused 0 Receiving objects: 100% (189/189), 79.51 KiB | 3.31 MiB/s, done. Resolving deltas: 100% (159/159), completed with 113 local objects. From https://github.com/rust-lang/cargo * branch 8eb8acbb116e7923ea2ce33a50109933ed5ab375 -> FETCH_HEAD Submodule path 'src/tools/cargo': checked out '8eb8acbb116e7923ea2ce33a50109933ed5ab375' Submodule path 'src/tools/cargo': checked out '8eb8acbb116e7923ea2ce33a50109933ed5ab375' Updating submodule library/backtrace Submodule 'library/backtrace' (https://github.com/rust-lang/backtrace-rs.git) registered for path 'library/backtrace' Cloning into '/home/ethan/Code/rust-lang/rust/library/backtrace'... remote: Enumerating objects: 149, done. remote: Counting objects: 100% (149/149), done. remote: Compressing objects: 100% (113/113), done. remote: Total 149 (delta 6), reused 93 (delta 5), pack-reused 0 Receiving objects: 100% (149/149), 113.60 KiB | 2.77 MiB/s, done. Resolving deltas: 100% (6/6), done. remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Enumerating objects: 84, done. remote: Counting objects: 100% (84/84), done. remote: Compressing objects: 100% (39/39), done. remote: Total 43 (delta 23), reused 17 (delta 2), pack-reused 0 Unpacking objects: 100% (43/43), 9.13 KiB | 719.00 KiB/s, done. From https://github.com/rust-lang/backtrace-rs * branch 99faef833f890fe89f1a959d89b951954118828b -> FETCH_HEAD Submodule path 'library/backtrace': checked out '99faef833f890fe89f1a959d89b951954118828b' Updating submodule library/stdarch Submodule 'library/stdarch' (https://github.com/rust-lang/stdarch.git) registered for path 'library/stdarch' Cloning into '/home/ethan/Code/rust-lang/rust/library/stdarch'... remote: Enumerating objects: 308, done. remote: Counting objects: 100% (308/308), done. remote: Compressing objects: 100% (258/258), done. remote: Total 308 (delta 48), reused 128 (delta 18), pack-reused 0 Receiving objects: 100% (308/308), 1.16 MiB | 5.01 MiB/s, done. Resolving deltas: 100% (48/48), done. remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Enumerating objects: 105, done. remote: Counting objects: 100% (105/105), done. remote: Compressing objects: 100% (52/52), done. remote: Total 54 (delta 42), reused 8 (delta 0), pack-reused 0 Unpacking objects: 100% (54/54), 12.32 KiB | 157.00 KiB/s, done. From https://github.com/rust-lang/stdarch * branch 333e9e9977188d0748327e9b5be0f3f412063174 -> FETCH_HEAD Submodule path 'library/stdarch': checked out '333e9e9977188d0748327e9b5be0f3f412063174' downloading https://ci-artifacts.rust-lang.org/rustc-builds/ca89f732ec0f910fc92111a45dd7e6829baa9d4b/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz ############################################################################################################################################################################################################ 100.0% extracting /home/ethan/Code/rust-lang/rust/build/cache/llvm-ca89f732ec0f910fc92111a45dd7e6829baa9d4b-false/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm info: You seem to be using Nix. attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-cov /nix/store/daqb6f30lkyhaxdrzj77pp3155ixcnbj-rust-stage0-dependencies attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-dwarfdump attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-nm attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-dis attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-ar attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-profdata attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-bcanalyzer attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-tblgen attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-objdump attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/lld attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-dwp attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-config info: You seem to be using Nix. attempting to patch /home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/ci-llvm/lib/libLLVM-17-rust-1.75.0-nightly.so Building stage0 library artifacts (x86_64-unknown-linux-gnu) Compiling compiler_builtins v0.1.101 Compiling core v0.0.0 (/home/ethan/Code/rust-lang/rust/library/core) Compiling libc v0.2.149 Compiling cc v1.0.79 Compiling memchr v2.5.0 Compiling std v0.0.0 (/home/ethan/Code/rust-lang/rust/library/std) Compiling unwind v0.0.0 (/home/ethan/Code/rust-lang/rust/library/unwind) Compiling rustc-std-workspace-core v1.99.0 (/home/ethan/Code/rust-lang/rust/library/rustc-std-workspace-core) Compiling alloc v0.0.0 (/home/ethan/Code/rust-lang/rust/library/alloc) Compiling cfg-if v1.0.0 Compiling adler v1.0.2 Compiling rustc-demangle v0.1.23 Compiling rustc-std-workspace-alloc v1.99.0 (/home/ethan/Code/rust-lang/rust/library/rustc-std-workspace-alloc) Compiling panic_unwind v0.0.0 (/home/ethan/Code/rust-lang/rust/library/panic_unwind) Compiling panic_abort v0.0.0 (/home/ethan/Code/rust-lang/rust/library/panic_abort) Compiling gimli v0.28.0 Compiling object v0.32.0 Compiling std_detect v0.1.5 (/home/ethan/Code/rust-lang/rust/library/stdarch/crates/std_detect) Compiling miniz_oxide v0.7.1 Compiling hashbrown v0.14.2 Compiling addr2line v0.21.0 Compiling rustc-std-workspace-std v1.99.0 (/home/ethan/Code/rust-lang/rust/library/rustc-std-workspace-std) Compiling proc_macro v0.0.0 (/home/ethan/Code/rust-lang/rust/library/proc_macro) Compiling unicode-width v0.1.10 Compiling getopts v0.2.21 Compiling test v0.0.0 (/home/ethan/Code/rust-lang/rust/library/test) Compiling sysroot v0.0.0 (/home/ethan/Code/rust-lang/rust/library/sysroot) Finished release [optimized + debuginfo] target(s) in 27.22s Building compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu) Compiling proc-macro2 v1.0.63 Compiling unicode-ident v1.0.9 Compiling quote v1.0.29 Compiling cfg-if v1.0.0 Compiling unicode-xid v0.2.4 Compiling syn v1.0.109 Compiling libc v0.2.149 Compiling version_check v0.9.4 Compiling once_cell v1.18.0 Compiling stable_deref_trait v1.2.0 Compiling smallvec v1.11.0 Compiling autocfg v1.1.0 Compiling allocator-api2 v0.2.15 Compiling memchr v2.5.0 Compiling cc v1.0.79 Compiling equivalent v1.0.0 Compiling proc-macro-hack v0.5.20+deprecated Compiling tracing-core v0.1.30 Compiling scopeguard v1.1.0 Compiling typenum v1.16.0 Compiling parking_lot_core v0.9.8 Compiling ahash v0.8.3 Compiling pin-project-lite v0.2.10 Compiling lock_api v0.4.10 Compiling log v0.4.19 Compiling rustix v0.38.19 Compiling generic-array v0.14.7 Compiling rustc-hash v1.1.0 Compiling bitflags v2.4.0 Compiling hashbrown v0.14.2 Compiling linux-raw-sys v0.4.10 Compiling parking_lot_core v0.8.6 Compiling syn v2.0.29 Compiling instant v0.1.12 Compiling thin-vec v0.2.12 Compiling bitflags v1.3.2 Compiling arrayvec v0.7.4 Compiling thiserror v1.0.47 Compiling fastrand v2.0.0 Compiling indexmap v2.0.0 Compiling psm v0.1.21 Compiling stacker v0.1.15 Compiling either v1.8.1 Compiling getrandom v0.2.10 Compiling memmap2 v0.2.3 Compiling parking_lot v0.12.1 Compiling parking_lot v0.11.2 Compiling rand_core v0.6.4 Compiling rustc_serialize v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_serialize) Compiling perf-event-open-sys v3.0.0 Compiling itertools v0.10.5 Compiling jobserver v0.1.26 Compiling block-buffer v0.10.4 Compiling crypto-common v0.1.6 Compiling measureme v10.1.1 Compiling ena v0.14.2 Compiling rustc_arena v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_arena) Compiling digest v0.10.7 Compiling elsa v1.7.1 Compiling ppv-lite86 v0.2.17 Compiling rustc_graphviz v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_graphviz) Compiling unicode-width v0.1.10 Compiling cpufeatures v0.2.8 Compiling thiserror-core v1.0.38 Compiling scoped-tls v1.0.1 Compiling crc32fast v1.3.2 Compiling rand_chacha v0.3.1 Compiling rand v0.8.5 Compiling sha1 v0.10.5 Compiling sha2 v0.10.7 Compiling md-5 v0.10.5 Compiling static_assertions v1.1.0 Compiling adler v1.0.2 Compiling writeable v0.5.2 Compiling litemap v0.7.0 Compiling tempfile v3.8.0 Compiling miniz_oxide v0.7.1 Compiling byteorder v1.4.3 Compiling serde v1.0.185 Compiling type-map v0.4.0 Compiling flate2 v1.0.26 Compiling twox-hash v1.6.3 Compiling unicode-properties v0.1.0 Compiling regex-automata v0.2.0 Compiling rustc_lexer v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_lexer) Compiling itoa v1.0.6 Compiling synstructure v0.13.0 Compiling self_cell v0.10.2 Compiling serde_json v1.0.99 Compiling rand_xoshiro v0.6.0 Compiling annotate-snippets v0.9.1 Compiling synstructure v0.12.6 Compiling ryu v1.0.13 Compiling ident_case v1.0.1 Compiling fnv v1.0.7 Compiling rustc_fs_util v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_fs_util) Compiling strsim v0.10.0 Compiling odht v0.3.1 Compiling darling_core v0.20.3 Compiling termize v0.1.1 Compiling termcolor v1.2.0 Compiling getopts v0.2.21 Compiling semver v1.0.17 Compiling memoffset v0.9.0 Compiling rustc_apfloat v0.2.0+llvm-462a31f5a5ab Compiling datafrog v2.0.1 Compiling convert_case v0.4.0 Compiling tinyvec_macros v0.1.1 Compiling tinyvec v1.6.0 Compiling crossbeam-utils v0.8.16 Compiling polonius-engine v0.13.0 Compiling rustc_version v0.4.0 Compiling aho-corasick v1.0.2 Compiling regex-syntax v0.7.2 Compiling snap v1.1.0 Compiling libloading v0.7.4 Compiling field-offset v0.3.6 Compiling crossbeam-channel v0.5.8 Compiling unicode-normalization v0.1.22 Compiling unicase v2.6.0 Compiling lazy_static v1.4.0 Compiling unicode-script v0.5.5 Compiling regex-syntax v0.6.29 Compiling gimli v0.28.0 Compiling unicode-security v0.1.0 Compiling rustc_llvm v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_llvm) Compiling rustc-demangle v0.1.23 Compiling punycode v0.4.1 Compiling pulldown-cmark v0.9.3 Compiling overload v0.1.1 Compiling nu-ansi-term v0.46.0 Compiling regex v1.8.4 Compiling displaydoc v0.2.4 Compiling tracing-attributes v0.1.26 Compiling rustc_macros v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_macros) Compiling zerofrom-derive v0.1.2 Compiling yoke-derive v0.7.1 Compiling zerovec-derive v0.9.4 Compiling thiserror-impl v1.0.47 Compiling tracing v0.1.37 Compiling thiserror-core-impl v1.0.38 Compiling icu_provider_macros v1.2.0 Compiling serde_derive v1.0.185 Compiling fluent-syntax v0.11.0 Compiling zerofrom v0.1.2 Compiling darling_macro v0.20.3 Compiling yoke v0.7.1 Compiling zerovec v0.9.4 Compiling rustc_index v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_index) Compiling ruzstd v0.4.0 Compiling darling v0.20.3 Compiling derive_setters v0.1.6 Compiling rustc_data_structures v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_data_structures) Compiling tinystr v0.7.1 Compiling object v0.32.0 Compiling unic-langid-impl v0.9.1 Compiling unic-langid-macros-impl v0.9.1 Compiling icu_locid v1.2.0 Compiling derive_more v0.99.17 Compiling unic-langid-macros v0.9.1 Compiling unic-langid v0.9.1 Compiling rustc_span v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_span) Compiling icu_provider v1.2.0 Compiling intl_pluralrules v7.0.2 Compiling fluent-langneg v0.13.0 Compiling intl-memoizer v0.5.1 Compiling fluent-bundle v0.15.2 Compiling icu_provider_adapters v1.2.0 Compiling icu_list v1.2.0 Compiling rustc_type_ir v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_type_ir) Compiling rustc_feature v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_feature) Compiling rustc_fluent_macro v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_fluent_macro) Compiling rustc_ast v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_ast) Compiling rustc_baked_icu_data v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_baked_icu_data) Compiling rustc_abi v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_abi) Compiling rustc_parse_format v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_parse_format) Compiling rustc_error_messages v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_error_messages) Compiling regex-automata v0.1.10 Compiling thorin-dwp v0.7.0 Compiling ar_archive_writer v0.1.5 Compiling sharded-slab v0.1.4 Compiling rustc_ast_pretty v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_ast_pretty) Compiling gsgdt v0.1.2 Compiling matchers v0.1.0 Compiling thread_local v1.1.7 Compiling rustc_target v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_target) Compiling pathdiff v0.2.1 Compiling tracing-subscriber v0.3.17 Compiling tracing-log v0.1.3 Compiling is-terminal v0.4.8 Compiling cstr v0.2.8 Compiling time-core v0.1.1 Compiling time v0.3.22 Compiling rustc_error_codes v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_error_codes) Compiling stable_mir v0.1.0-preview (/home/ethan/Code/rust-lang/rust/compiler/stable_mir) Compiling rustc-main v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc) Compiling tracing-tree v0.2.4 Compiling rustc_hir v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_hir) Compiling rustc_log v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_log) Compiling rustc_lint_defs v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_lint_defs) Compiling rustc_hir_pretty v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_hir_pretty) Compiling rustc_errors v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_errors) Compiling rustc_session v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_session) Compiling rustc_attr v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_attr) Compiling rustc_query_system v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_query_system) Compiling rustc_parse v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_parse) Compiling rustc_middle v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_middle) Compiling rustc_ast_passes v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_ast_passes) Compiling rustc_expand v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_expand) Compiling rustc_builtin_macros v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_builtin_macros) Compiling rustc_infer v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_infer) Compiling rustc_metadata v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_metadata) Compiling rustc_mir_dataflow v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_mir_dataflow) Compiling rustc_incremental v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_incremental) Compiling rustc_symbol_mangling v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_symbol_mangling) Compiling rustc_ast_lowering v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_ast_lowering) Compiling rustc_query_impl v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_query_impl) Compiling rustc_monomorphize v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_monomorphize) Compiling rustc_transmute v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_transmute) Compiling rustc_trait_selection v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_trait_selection) Compiling rustc_codegen_ssa v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_codegen_ssa) Compiling rustc_lint v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_lint) Compiling rustc_hir_analysis v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_hir_analysis) Compiling rustc_const_eval v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_const_eval) Compiling rustc_traits v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_traits) Compiling rustc_mir_build v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_mir_build) Compiling rustc_mir_transform v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_mir_transform) Compiling rustc_privacy v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_privacy) Compiling rustc_hir_typeck v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_hir_typeck) Compiling rustc_borrowck v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_borrowck) Compiling rustc_plugin_impl v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_plugin_impl) Compiling rustc_ty_utils v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_ty_utils) Compiling rustc_passes v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_passes) Compiling rustc_codegen_llvm v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_codegen_llvm) Compiling rustc_resolve v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_resolve) Compiling rustc_interface v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_interface) Compiling rustc_driver_impl v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_driver_impl) Compiling rustc_driver v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_driver) Compiling rustc_smir v0.0.0 (/home/ethan/Code/rust-lang/rust/compiler/rustc_smir) Finished release [optimized + debuginfo] target(s) in 5m 54s Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`) Building stage1 library artifacts (x86_64-unknown-linux-gnu) Compiling compiler_builtins v0.1.101 Compiling core v0.0.0 (/home/ethan/Code/rust-lang/rust/library/core) Compiling libc v0.2.149 Compiling cc v1.0.79 Compiling memchr v2.5.0 Compiling std v0.0.0 (/home/ethan/Code/rust-lang/rust/library/std) Compiling unwind v0.0.0 (/home/ethan/Code/rust-lang/rust/library/unwind) Compiling rustc-std-workspace-core v1.99.0 (/home/ethan/Code/rust-lang/rust/library/rustc-std-workspace-core) Compiling alloc v0.0.0 (/home/ethan/Code/rust-lang/rust/library/alloc) Compiling cfg-if v1.0.0 Compiling adler v1.0.2 Compiling rustc-demangle v0.1.23 Compiling rustc-std-workspace-alloc v1.99.0 (/home/ethan/Code/rust-lang/rust/library/rustc-std-workspace-alloc) Compiling panic_abort v0.0.0 (/home/ethan/Code/rust-lang/rust/library/panic_abort) Compiling panic_unwind v0.0.0 (/home/ethan/Code/rust-lang/rust/library/panic_unwind) Compiling gimli v0.28.0 Compiling miniz_oxide v0.7.1 Compiling std_detect v0.1.5 (/home/ethan/Code/rust-lang/rust/library/stdarch/crates/std_detect) Compiling object v0.32.0 Compiling hashbrown v0.14.2 Compiling addr2line v0.21.0 Compiling rustc-std-workspace-std v1.99.0 (/home/ethan/Code/rust-lang/rust/library/rustc-std-workspace-std) Compiling proc_macro v0.0.0 (/home/ethan/Code/rust-lang/rust/library/proc_macro) Compiling unicode-width v0.1.10 Compiling getopts v0.2.21 Compiling test v0.0.0 (/home/ethan/Code/rust-lang/rust/library/test) Compiling sysroot v0.0.0 (/home/ethan/Code/rust-lang/rust/library/sysroot) Finished release [optimized + debuginfo] target(s) in 1m 01s Building test helpers for x86_64-unknown-linux-gnu running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-o" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o" "-c" "/home/ethan/Code/rust-lang/rust/tests/auxiliary/rust_test_helpers.c" cargo:warning=In file included from /nix/store/hkj250rjsvxcbr31fr1v81cv88cdfp4l-glibc-2.37-8-dev/include/bits/libc-header-start.h:33, cargo:warning= from /nix/store/hkj250rjsvxcbr31fr1v81cv88cdfp4l-glibc-2.37-8-dev/include/stdint.h:26, cargo:warning= from /nix/store/954bf25934x5zl77cw9qiny3vfg0wnpk-gcc-9.5.0/lib/gcc/x86_64-unknown-linux-gnu/9.5.0/include/stdint.h:9, cargo:warning= from /home/ethan/Code/rust-lang/rust/tests/auxiliary/rust_test_helpers.c:3: cargo:warning=/nix/store/hkj250rjsvxcbr31fr1v81cv88cdfp4l-glibc-2.37-8-dev/include/features.h:413:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 413 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 running: ZERO_AR_DATE="1" "ar" "cq" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o" exit status: 0 running: "ar" "s" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a" exit status: 0 Building stage0 tool compiletest (x86_64-unknown-linux-gnu) Compiling proc-macro2 v1.0.63 Compiling quote v1.0.29 Compiling unicode-ident v1.0.9 Compiling memchr v2.5.0 Compiling libc v0.2.149 Compiling cfg-if v1.0.0 Compiling autocfg v1.1.0 Compiling serde v1.0.185 Compiling once_cell v1.18.0 Compiling parking_lot_core v0.9.8 Compiling rustix v0.38.19 Compiling regex-syntax v0.6.29 Compiling scopeguard v1.1.0 Compiling serde_json v1.0.99 Compiling regex-syntax v0.7.2 Compiling lazy_static v1.4.0 Compiling smallvec v1.11.0 Compiling bitflags v2.4.0 Compiling anyhow v1.0.75 Compiling linux-raw-sys v0.4.10 Compiling tracing-core v0.1.30 Compiling lock_api v0.4.10 Compiling itoa v1.0.6 Compiling overload v0.1.1 Compiling ryu v1.0.13 Compiling pin-project-lite v0.2.10 Compiling nu-ansi-term v0.46.0 Compiling sharded-slab v0.1.4 Compiling aho-corasick v1.0.2 Compiling syn v2.0.29 Compiling thread_local v1.1.7 Compiling unicode-width v0.1.10 Compiling equivalent v1.0.0 Compiling log v0.4.19 Compiling diff v0.1.13 Compiling hashbrown v0.14.2 Compiling regex-automata v0.1.10 Compiling regex v1.8.4 Compiling is-terminal v0.4.8 Compiling parking_lot v0.12.1 Compiling same-file v1.0.6 Compiling colored v2.0.4 Compiling matchers v0.1.0 Compiling walkdir v2.3.3 Compiling indexmap v2.0.0 Compiling unified-diff v0.2.1 Compiling getopts v0.2.21 Compiling miropt-test-tools v0.1.0 (/home/ethan/Code/rust-lang/rust/src/tools/miropt-test-tools) Compiling glob v0.3.1 Compiling lazycell v1.3.0 Compiling home v0.5.5 Compiling serde_derive v1.0.185 Compiling tracing-attributes v0.1.26 Compiling tracing v0.1.37 Compiling tracing-subscriber v0.3.17 Compiling build_helper v0.1.0 (/home/ethan/Code/rust-lang/rust/src/tools/build_helper) Compiling rustfix v0.6.1 Compiling compiletest v0.0.0 (/home/ethan/Code/rust-lang/rust/src/tools/compiletest) Finished release [optimized + debuginfo] target(s) in 24.22s Testing stage1 compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu) running 1 tests F failures: ---- [ui] tests/ui/process/nofile-limit.rs stdout ---- error: test compilation failed although it shouldn't! status: exit status: 1 command: RUSTC_ICE="0" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/home/ethan/Code/rust-lang/rust/tests/ui/process/nofile-limit.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/ethan/.cargo" "--sysroot" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-o" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/a" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/auxiliary" "-Ctarget-feature=+crt-static" "-Crpath=no" "-Crelocation-model=static" stdout: none --- stderr ------------------------------- error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/aw76ql7s2n8gl02swkf2i3bdn9m7qxvh-bash-interactive-5.2-p15/bin:/nix/store/wk79jy16gqnshlc8vlq1jv2jmaddqznh-gcc-wrapper-9.5.0/bin:/nix/store/954bf25934x5zl77cw9qiny3vfg0wnpk-gcc-9.5.0/bin:/nix/store/lyri4viji7lx2jwp5xy5fi1i1y0wx8z0-glibc-2.37-8-bin/bin:/nix/store/j4fwy5gi1rdlrlbk2c0vnbs7fmlm60a7-coreutils-9.1/bin:/nix/store/fmf140xgbmldfnp6c98fshrr0lx1kadw-binutils-wrapper-2.40/bin:/nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin:/nix/store/qnjzh4b0zgdkpb9x3r3h3bnc3rhdysbx-binutils-wrapper-2.40/bin:/nix/store/jvcvx2kmln6iphr96y1mjgnjp15n2vz9-cmake-3.25.3/bin:/nix/store/wn01dri5vj3d57gkvrs4qxajadplz10a-ninja-1.11.1/bin:/nix/store/k3hzl4p4wjh6phpigyb9pna5v0mn05r2-openssl-3.0.9-bin/bin:/nix/store/kl09gwjk0yalh2win6myp07jy6jzm084-pkg-config-wrapper-0.29.2/bin:/nix/store/71cs4rgm6bfj9bm4g8gr34x33x4vp2c5-python3-3.9.17/bin:/nix/store/hvigb4pkvww5za9zwvv6vx93cxqhwyms-git-2.40.1/bin:/nix/store/prfbl6drays5p1cl8jy7xqrv12wjwhrw-curl-8.1.1-dev/bin:/nix/store/myg7z6mv1vmbbcs776iarbgxmyssy8kf-brotli-1.0.9/bin:/nix/store/x2ri7x2cpd15fkqqpnkx7djb6ih9mzfi-libkrb5-1.20.1-dev/bin:/nix/store/x1gzph54hj3lxrxyl9x6558f48n0frc9-libkrb5-1.20.1/bin:/nix/store/iz4kn90gacb4vhkzfs1b190bxs47a6dc-nghttp2-1.51.0-bin/bin:/nix/store/mkv4c9x6knlv97dsrx9k0ln7j0r0pq77-libidn2-2.3.4-bin/bin:/nix/store/ypbwpz4gxzg9rr6zvn3n9pvlc9gs396r-zstd-1.5.5-bin/bin:/nix/store/mk93ifrbqrj67vhshzzjf62lxpnif8mh-zstd-1.5.5/bin:/nix/store/yw7b9hfqivbkfnz36bjn3pi4x83d27m6-curl-8.1.1-bin/bin:/nix/store/5rbqiz11vagap5fsk3vw8fgznw6vxyrh-patchelf-0.15.0/bin:/nix/store/2zdq28c97x3rqb7fqrrvwkdzh44pdq05-nix-2.13.3/bin:/nix/store/2dxn43nj00ggzc2jrkzbhscdv2qzz3x4-psutils-17/bin:/nix/store/lcf37pgp3rgww67v9x2990hbfwx96c1w-gcc-wrapper-12.2.0/bin:/nix/store/b7hvml0m3qmqraz1022fwvyyg6fc1vdy-gcc-12.2.0/bin:/nix/store/j4fwy5gi1rdlrlbk2c0vnbs7fmlm60a7-coreutils-9.1/bin:/nix/store/x6rwgp1jl5sgzwbsaigqkdbdc7krzwj7-findutils-4.9.0/bin:/nix/store/1x4qg9ap1x3b50z7j4mbdvqlf1sjkbf8-diffutils-3.9/bin:/nix/store/vqj2w8rqghmmp4wkn9lkcym5kzlqk372-gnused-4.9/bin:/nix/store/8mzvz6kk57p9aqdk72pq1adsl38bkzi6-gnugrep-3.7/bin:/nix/store/49q1zfhkan4k0rqyxfhj512nw2wwngsf-gawk-5.2.1/bin:/nix/store/s2bx6wbg6ppr0r1wm8w0zqv5ihh36n8h-gnutar-1.34/bin:/nix/store/s9dzv58651xf1d6m5i48s17vkbipg5ww-gzip-1.12/bin:/nix/store/bsca0mm8zc66gnibdvp5wwpfqh5c91xa-bzip2-1.0.8-bin/bin:/nix/store/ik9ibmq0rbznwyj6472lv2ab0c397lhy-gnumake-4.4.1/bin:/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin:/nix/store/0cw69kwj62xnid3bkcd3lylnwz7w6gn8-patch-2.7.6/bin:/nix/store/08bbg98v5l4aalxbr583mhpxasrwsf41-xz-5.4.3-bin/bin:/nix/store/2q1x5hazpr8yf5hh0pj09nmz94sc7q81-file-5.44/bin:/run/wrappers/bin:/home/ethan/.nix-profile/bin:/nix/profile/bin:/home/ethan/.local/state/nix/profile/bin:/etc/profiles/per-user/ethan/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin" VSLANG="1033" "cc" "-m64" "/run/user/1000/rustcXAQBBp/symbols.o" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/a.nofile_limit.c5aa8a555885375c-cgu.0.rcgu.o" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/a.18ifvcbw7e5uugh9.rcgu.o" "-Wl,--as-needed" "-L" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/auxiliary" "-L" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-41cd043bab69af46.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-17ea8db40b237790.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-e00ef37c883fcbd4.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-ca5fd0d9c183ecd6.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-6f48641cd187234b.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-ad22da3b0b02ed23.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-de21cede507132c5.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-257ca831dd300a7f.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-5497bd32ca4efeb0.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-52dcc25b2c651a04.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-e7d3434a7254d55e.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-fb3077b1c6655ceb.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-73d591f6a7f7ace2.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-bc84c31c559e75a5.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-d9853aa335b612eb.rlib" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-lgcc_eh" "-lgcc" "-lc" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f40b4967dbb08f3c.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-247d2edaa15d3b08.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a473fd398ff94225.rlib" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-aaa76b7b5c842ca1.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/ethan/Code/rust-lang/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/a" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs" = note: /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lutil: No such file or directory /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lrt: No such file or directory /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lpthread: No such file or directory /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lm: No such file or directory /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -ldl: No such file or directory /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lc: No such file or directory /nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find -lc: No such file or directory collect2: error: ld returned 1 exit status error: aborting due to previous error ------------------------------------------ failures: [ui] tests/ui/process/nofile-limit.rs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 15652 filtered out; finished in 338.83ms Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu Build completed unsuccessfully in 0:08:14 ```This may be related: https://discourse.nixos.org/t/shell-nix-for-static-and-shared-linking-with-gcc/12227