semarie / build-rust

Script helper for building rustc and cargo from source on OpenBSD (without rustup)
59 stars 15 forks source link

ld: error: unable to find library -lz.so.7.0 #22

Closed zacknewman closed 1 year ago

zacknewman commented 1 year ago

Forgive the noise if this issue is due to trying to compile nightly on -stable, but I get the following error:

ld: error: unable to find library -lz.so.7.0

when compiling rustc_driver v0.0.0. Here is the last portion of the build:

   Compiling rustc_driver v0.0.0 (/home/zack/build_rust/build_dir/rustc-beta-src/compiler/rustc_driver)
     Running `/home/zack/build_rust/build_dir/build/bootstrap/debug/rustc --crate-name rustc_driver --edition=2021 compiler/rustc_driver/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Zunstable-options --check-cfg 'values(feature)' --check-cfg 'names()' --check-cfg 'values()' -C metadata=69a90979649981e5 -C extra-filename=-69a90979649981e5 --out-dir /home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps --target x86_64-unknown-openbsd -L dependency=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps -L dependency=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/release/deps --extern rustc_driver_impl=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_driver_impl-d13ec7e52503458b.rlib --extern rustix=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustix-b96ee38a242a9670.rlib --cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=values(bootstrap)' '--check-cfg=values(parallel_compiler)' '--check-cfg=values(no_btreemap_remove_entry)' '--check-cfg=values(crossbeam_loom)' '--check-cfg=values(span_locations)' '--check-cfg=values(rustix_use_libc)' '--check-cfg=values(emulate_second_only_system)' '--check-cfg=values(windows_raw_dylib)' -Zmacro-backtrace -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Zunstable-options -Csplit-debuginfo=off -Zunstable-options '-Wrustc::internal' -Cprefer-dynamic -Z binary-dep-depinfo -L native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/psm-87b1b850d3c433d7/out -L native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/rustc_llvm-f77adc7d3b2103ad/out -L native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/llvm/build/lib`
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot/lib/rustlib/x86_64-unknown-openbsd/bin:/home/zack/build_rust/build_dir/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustcKaZjRH/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcKaZjRH/symbols.o" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/rustc_driver-69a90979649981e5.rustc_driver.423f9435a7cdb76d-cgu.0.rcgu.o" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/rustc_driver-69a90979649981e5.rx69i84fnfbh5oj.rcgu.rmeta" "-Wl,--as-needed" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/release/deps" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/psm-87b1b850d3c433d7/out" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/rustc_llvm-f77adc7d3b2103ad/out" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/llvm/build/lib" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot/lib/rustlib/x86_64-unknown-openbsd/lib" "-Wl,-Bstatic" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_driver_impl-d13ec7e52503458b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_log-1bf5e1b22ffef0e5.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtracing_tree-4547017c989c5075.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtracing_log-0756396afee7f2b9.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtracing_subscriber-0f7efbe4d102044a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libnu_ansi_term-bee2fc54bcba59c3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liboverload-fc090f18c09e82a4.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libparking_lot-390f1286956808e0.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libparking_lot_core-4704de5133a25992.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libsharded_slab-be36e276229ba0dc.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liblazy_static-db009ffa460dc2ae.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libmatchers-2e57da2ca8ee8224.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libregex_automata-ca211d012196e582.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libregex_syntax-eec55e456bcae863.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libthread_local-cf1845bcabe3325f.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_error_codes-028c29ab35e85b28.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_interface-cb48038bb8d30814.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_codegen_llvm-df1fd69755e07e19.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_llvm-4d899a8c2c76f93e.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_ty_utils-083adfe225fd7cfc.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_hir_typeck-615daef3afd3f755.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_privacy-3a1ca6b95a22db49.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_hir_analysis-852821f3c0dbb9cc.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_monomorphize-d20867171c518de9.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_mir_transform-7f85a5cd2d191650.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_const_eval-df6c74114870f068.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_ast_lowering-a7d2600ae72289e3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_builtin_macros-5589ba4897b57fd3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_resolve-81f2359037da5e30.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libpulldown_cmark-bb6af60e00f70dba.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunicase-660154ba98385640.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_passes-5c4b753553042dd4.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_mir_build-4730fc0489464458.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_borrowck-7ff08a172c4dc342.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_traits-67ab05fe5c4e0e88.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_mir_dataflow-5865d5074f821d24.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_query_impl-c1dda12f6d4af50a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_codegen_ssa-581c9f981e593b6d.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libthorin-e8618ea34e66634b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libgimli-11c2dc3615defc78.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libfallible_iterator-4b5ce6c3b007e7b4.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_symbol_mangling-84883f43fd77b08b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_demangle-306a6a2901409fe6.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libpunycode-5839a0dafa0382dc.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_incremental-6f7857e8bcd172b7.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libpathdiff-30ff0c653929e232.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libregex-798687bae5d56266.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libaho_corasick-abdb84ffaefcc531.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libregex_syntax-947f8fbcbabee180.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcc-93eee7c835d5dd8a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libar_archive_writer-d783c08d86253751.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_plugin_impl-561192dd58c0a571.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_metadata-6704c2e89208d060.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_hir_pretty-15d6137933837a84.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libsnap-55aba69c58a8d242.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_expand-9e4eb942f0f08b88.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcrossbeam_channel-eb3caf7c73a2c355.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcrossbeam_utils-69e9d3db150e63ac.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_ast_passes-2b391721188d070f.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_parse-4efa98def8f60fc5.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot/lib/rustlib/x86_64-unknown-openbsd/lib/libproc_macro-7eeb8135002120d3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liblibloading-16e39ca06b9b473f.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_lint-f142a378194a1c42.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunicode_security-54ed34ed56abcbf6.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunicode_script-aacf799513efcf11.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunicode_normalization-38204bd6f8547d29.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtinyvec-212af83a99ac1122.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtinyvec_macros-5f06bded3abc2fea.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_trait_selection-d56d36ff768301cb.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_parse_format-d19e0dc9f7e3d70b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_transmute-baed9d2430bd11bc.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_infer-0c318f497d65ab45.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_middle-3debaf460e21cf0a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libfield_offset-0240a9f53fdfd771.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libmemoffset-1d6afd3393401973.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_apfloat-08c9bc58bc8954c1.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libgsgdt-88d4739760c4af0a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libpolonius_engine-682f0e0c561221e3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libdatafrog-e455db2b429acea1.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_attr-fe949332b1d0ff85.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_query_system-6ad7e25e2c0a6f68.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_session-07a225455dbb995a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libatty-066c3aec5089c6b4.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libgetopts-905388f494dc1581.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_errors-b8e03c7ab6ea9074.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtermize-1726f3b02b8be4b2.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_type_ir-4ba8ab2680b0ed54.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_ast_pretty-c13469a09f5022ad.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libannotate_snippets-e5c138b2ab6138ed.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtermcolor-2a47a75ee47e0f76.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_lint_defs-58752b8f6edc4589.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_hir-e34d881490e64cdf.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libodht-d0110adf6298acea.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_target-ec34685dba7bbf9f.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_feature-361e1015d4412fdb.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libobject-78c747dc394d34bf.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libindexmap-2d06008743c0545a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libhashbrown-30a5511f6ff0cecf.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libahash-074dc02c84cce9ff.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libruzstd-73cd3e9121af1b49.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtwox_hash-e862127a107f3c4b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libstatic_assertions-2ccabb8d746d2e91.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libbyteorder-d34a1253f86615ec.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libflate2-2cbdc4e9d1a7dfcb.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libminiz_oxide-c841b89ca1081d2c.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libadler-b393f62e41b2e7d7.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcrc32fast-0611eb5485780ee9.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_fs_util-3e28b03268e68550.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libserde_json-eb32febbad916042.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libryu-de3e2006a78db92d.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libitoa-e7621055eb77dad7.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libserde-3c214ab5c4845f92.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_abi-4452c81229b021c5.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librand_xoshiro-c103e6ca5718ceeb.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librand-89f12bfd51c0c048.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librand_chacha-8ae00c1bfc299b83.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libppv_lite86-7d2ec2791ab9b4eb.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librand_core-ea8eef047b93fa8b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libgetrandom-dd933f3671042a8d.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_error_messages-792cc25429cf7650.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_baked_icu_data-bbc2eb7946d3322b.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libicu_list-ef6c3bc5fbba628a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libregex_automata-b431c9ddc1cb7864.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libfluent_bundle-01654a8df4fd4f64.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libfluent_langneg-2ab87e5cb232eaef.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libintl_pluralrules-5afb091837f97e44.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libself_cell-83b049c6d1cc60a7.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libintl_memoizer-2df85d5b0cde9f19.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtype_map-f1ffcd151f1e6587.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_langid-72de96d02e64db9f.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_langid_macros-d046c9aefa0eb7c3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_langid_impl-0108d943f66404a7.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libicu_provider_adapters-da44583f2175be63.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libicu_provider-a2d8ab681c3c2926.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libicu_locid-158a44bdb144f4dd.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtinystr-9d6eaf628747e6dd.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liblitemap-2ecad04887c11b36.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libzerovec-42bd5ed95e3c6fc8.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libyoke-6a416fc035da6316.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libzerofrom-742aadcb94354f29.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libwriteable-829276aa28228584.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libfluent_syntax-2cd19a650697f3c3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libthiserror-eb43a5a85ce1a736.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_ast-3817b5b83438cb18.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libmemchr-3f7217f68064e244.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_lexer-616dcc4c26ae07af.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_emoji_char-736e003120e01add.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_ucd_version-04edc8b411ddb4fa.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_common-ab26d4c84c2c6061.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_char_property-e1155f28501e9a2f.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunic_char_range-1ff8f811b776bbc6.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunicode_xid-eb299b0295e241ff.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_span-5c7c1c28eababbbc.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libscoped_tls-a64c5b69a19e5669.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libsha2-6d18547cc51af578.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libsha1-f7d4acc9656651f0.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcpufeatures-320b63d37265c439.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libmd5-863833426426375c.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libdigest-f3ae7f7d0e6af9dd.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libblock_buffer-8a1c6a016f0eaf76.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcrypto_common-97e8ccad8d8e4f24.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libgeneric_array-8c50ad0bf0d28faf.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtypenum-2e37828a172ebebe.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libunicode_width-056470a31fc8416e.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_arena-d46727282349a973.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_data_structures-6def655a943c6d34.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libelsa-8458e0d8953dc4d0.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libstable_deref_trait-2004ea1a01b0842e.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libstacker-39f8f5e8c4d68e66.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libpsm-19f3ad24e6966086.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libmemmap2-f2e3a0c5759ce43d.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtempfile-588c942796de8ff7.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libfastrand-ab249efd5a529753.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustix-b96ee38a242a9670.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libbitflags-0eccd76c74f3ae65.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liberrno-4e9a673db054aa14.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libio_lifetimes-06f5afcaa66acae5.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libitertools-4a062c03204edcb9.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libeither-877e868bb63eb7be.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libmeasureme-ba02b30783eb36a6.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libparking_lot-e31e798e9f9a6ed5.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libparking_lot_core-862fdde01f2ce6a1.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liblock_api-566e6ef929486ff5.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libscopeguard-032c898e562a0686.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libinstant-c07fee64ccd00d59.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libena-e543acbce5a3df10.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liblog-f4cf188fdbdb3058.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_graphviz-1147ccd57e966a01.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libjobserver-06216e555409c228.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/liblibc-abf0d1f26903a856.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_hash-4aa0b4035d642a37.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_index-56dacae59597f9d0.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_serialize-9c1bbc842ee4ae18.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libindexmap-ceeb60d752f95f6d.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libequivalent-6686116c1ca28bad.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libhashbrown-16022f84686536d2.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libthin_vec-0e6b7a2159a9180a.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libsmallvec-c8ab9880b00918a3.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libarrayvec-b980f3e279868796.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtracing-a024e40ed18d0e26.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libcfg_if-bdbae3cbd3984d93.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libpin_project_lite-9060536aeb8bac52.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libtracing_core-edf06244f12a5509.rlib" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/libonce_cell-9d19ded49b2b1ca8.rlib" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot/lib/rustlib/x86_64-unknown-openbsd/lib" "-Wl,-Bdynamic" "-lstd-90c0cad1b41ecdae" "-Wl,-Bstatic" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot/lib/rustlib/x86_64-unknown-openbsd/lib/libcompiler_builtins-561a566cbdfa18ad.rlib" "-Wl,-Bdynamic" "-lexecinfo" "-lpthread" "-lm" "-lz.so.7.0" "-lc++" "-lutil" "-lexecinfo" "-lpthread" "-lc++abi" "-lc" "-lm" "-lutil" "-lexecinfo" "-lcompiler_rt" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot/lib/rustlib/x86_64-unknown-openbsd/lib" "-o" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_driver-69a90979649981e5.so" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,origin" "-Wl,-rpath,$ORIGIN/../lib"
  = note: ld: error: unable to find library -lz.so.7.0
          cc: error: linker command failed with exit code 1 (use -v to see invocation)

Did not run successfully: exit status: 1
LD_LIBRARY_PATH="/usr/local/lib:/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/release/deps:/usr/local/lib" "/usr/local/bin/rustc" "--crate-name" "rustc_driver" "--edition=2021" "compiler/rustc_driver/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts,future-incompat" "--crate-type" "dylib" "--emit=dep-info,link" "-C" "prefer-dynamic" "-C" "opt-level=3" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "-Zunstable-options" "--check-cfg" "values(feature)" "--check-cfg" "names()" "--check-cfg" "values()" "-C" "metadata=69a90979649981e5" "-C" "extra-filename=-69a90979649981e5" "--out-dir" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps" "--target" "x86_64-unknown-openbsd" "-L" "dependency=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps" "-L" "dependency=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/release/deps" "--extern" "rustc_driver_impl=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_driver_impl-d13ec7e52503458b.rlib" "--extern" "rustix=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustix-b96ee38a242a9670.rlib" "--cfg=bootstrap" "--cfg=windows_raw_dylib" "-Csymbol-mangling-version=v0" "-Zunstable-options" "--check-cfg=values(bootstrap)" "--check-cfg=values(parallel_compiler)" "--check-cfg=values(no_btreemap_remove_entry)" "--check-cfg=values(crossbeam_loom)" "--check-cfg=values(span_locations)" "--check-cfg=values(rustix_use_libc)" "--check-cfg=values(emulate_second_only_system)" "--check-cfg=values(windows_raw_dylib)" "-Zmacro-backtrace" "-Clink-args=-Wl,-z,origin" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Zunstable-options" "-Csplit-debuginfo=off" "-Zunstable-options" "-Wrustc::internal" "-Cprefer-dynamic" "-Z" "binary-dep-depinfo" "-L" "native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/psm-87b1b850d3c433d7/out" "-L" "native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/rustc_llvm-f77adc7d3b2103ad/out" "-L" "native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/llvm/build/lib" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Wsemicolon_in_expressions_from_macros" "-Dwarnings" "--sysroot" "/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot" "-Ztls-model=initial-exec" "-Z" "force-unstable-if-unmarked"
-------------
error: could not compile `rustc_driver` (lib) due to previous error

Caused by:
  process didn't exit successfully: `/home/zack/build_rust/build_dir/build/bootstrap/debug/rustc --crate-name rustc_driver --edition=2021 compiler/rustc_driver/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Zunstable-options --check-cfg 'values(feature)' --check-cfg 'names()' --check-cfg 'values()' -C metadata=69a90979649981e5 -C extra-filename=-69a90979649981e5 --out-dir /home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps --target x86_64-unknown-openbsd -L dependency=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps -L dependency=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/release/deps --extern rustc_driver_impl=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustc_driver_impl-d13ec7e52503458b.rlib --extern rustix=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/deps/librustix-b96ee38a242a9670.rlib --cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=values(bootstrap)' '--check-cfg=values(parallel_compiler)' '--check-cfg=values(no_btreemap_remove_entry)' '--check-cfg=values(crossbeam_loom)' '--check-cfg=values(span_locations)' '--check-cfg=values(rustix_use_libc)' '--check-cfg=values(emulate_second_only_system)' '--check-cfg=values(windows_raw_dylib)' -Zmacro-backtrace -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Zunstable-options -Csplit-debuginfo=off -Zunstable-options '-Wrustc::internal' -Cprefer-dynamic -Z binary-dep-depinfo -L native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/psm-87b1b850d3c433d7/out -L native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc/x86_64-unknown-openbsd/release/build/rustc_llvm-f77adc7d3b2103ad/out -L native=/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/llvm/build/lib` (exit status: 1)
command did not execute successfully: cd "/home/zack/build_rust/build_dir/rustc-beta-src" && AR_x86_64_unknown_openbsd="ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_TARGET_DIR="/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-rustc" CC_x86_64_unknown_openbsd="cc" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-openbsd" CFG_DEFAULT_CODEGEN_BACKEND="llvm" CFG_DISABLE_UNSTABLE_FEATURES="1" CFG_LIBDIR_RELATIVE="lib" CFG_RELEASE="1.72.0-beta.6" CFG_RELEASE_CHANNEL="beta" CFG_VERSION="1.72.0-beta.6 (d8fd588af 2023-08-03) (built from a source tarball)" CFG_VER_DATE="2023-08-03" CFG_VER_HASH="d8fd588afa24f6fa5259a01b815912710713d62f" CFLAGS_x86_64_unknown_openbsd="-O2 -ffunction-sections -fdata-sections -fPIC -m64 -O2 -pipe" CXXFLAGS_x86_64_unknown_openbsd="-O2 -ffunction-sections -fdata-sections -fPIC -m64" CXX_x86_64_unknown_openbsd="c++" LIBC_CHECK_CFG="1" LLVM_CONFIG="/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/llvm/build/bin/llvm-config" LLVM_NDEBUG="1" LLVM_RUSTLLVM="1" RANLIB_x86_64_unknown_openbsd="ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/native" RUSTC="/home/zack/build_rust/build_dir/build/bootstrap/debug/rustc" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_ERROR_METADATA_DST="/home/zack/build_rust/build_dir/build/tmp/extended-error-metadata" RUSTC_FORCE_UNSTABLE="1" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/usr/local/lib" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings" RUSTC_REAL="/usr/local/bin/rustc" RUSTC_SNAPSHOT="/usr/local/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/usr/local/lib" RUSTC_STAGE="0" RUSTC_SYSROOT="/home/zack/build_rust/build_dir/build/x86_64-unknown-openbsd/stage0-sysroot" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1" RUSTDOC="/home/zack/build_rust/build_dir/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="--cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) --check-cfg=values(parallel_compiler) --check-cfg=values(no_btreemap_remove_entry) --check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations) --check-cfg=values(rustix_use_libc) --check-cfg=values(emulate_second_only_system) --check-cfg=values(windows_raw_dylib) -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.72.0-beta.6\t(d8fd588af\t2023-08-03)\t(built\tfrom\ta\tsource\ttarball) -Zcrate-attr=warn(rust_2018_idioms)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="--cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) --check-cfg=values(parallel_compiler) --check-cfg=values(no_btreemap_remove_entry) --check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations) --check-cfg=values(rustix_use_libc) --check-cfg=values(emulate_second_only_system) --check-cfg=values(windows_raw_dylib) -Zmacro-backtrace -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,$ORIGIN/../lib -Zunstable-options -Csplit-debuginfo=off -Zunstable-options -Wrustc::internal -Cprefer-dynamic" RUST_TEST_THREADS="8" WINAPI_NO_BUNDLED_LIBRARIES="1" __CARGO_DEFAULT_LIB_METADATA="bootstrap" "/usr/local/bin/cargo" "build" "--target" "x86_64-unknown-openbsd" "--release" "-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j" "8" "-v" "--frozen" "--features" "llvm max_level_info" "--manifest-path" "/home/zack/build_rust/build_dir/rustc-beta-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
  File "/home/zack/build_rust/build_dir/rustc-beta-src/x.py", line 50, in <module>
    bootstrap.main()
  File "/home/zack/build_rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 1113, in main
    bootstrap(args)
  File "/home/zack/build_rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 1088, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/home/zack/build_rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 184, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /home/zack/build_rust/build_dir/build/bootstrap/debug/bootstrap --config /home/zack/build_rust/build_dir/config.toml --build-dir /home/zack/build_rust/build_dir/build dist --jobs=8
Sun Aug  6 11:04:34 MDT 2023: task not finished: see build.log for detail
Sun Aug  6 11:04:34 MDT 2023: task not finished: see build.log for detail

I have successfully built the version of rust from -current on -stable and made sure to use an embedded version of LLVM per your suggestion.

semarie commented 1 year ago

ah. I missed that, sorry. embedded llvm needs patching.

for now, you could manually apply the following diff at lang/rust (another diff might be need if you are building on sparc64)

I will look to add that in the script.

zacknewman commented 1 year ago

Tangentially related, what's the reason for the lack of a rust-nightly package? I believe such a package would be useful even in -release/-stable. Asked differently without the air of entitlement, would such a package/port be accepted if a maintainer could be found? Nightly is useful even when it's not the newest version of rustc. People that only have rust installed would be unaffected, and people that go through the "hassle" of building nightly would likely prefer simply installing the package/port. I realize people can also use the RUSTC_BOOTSTRAP hack to get stable to compile nightly features, but that should be avoided if one can help it. One can then use an alias for cargo in the event they want the default to be nightly.

On -current this would make the lack of rustup practically moot.

zacknewman commented 1 year ago

for now, you could manually apply the following diff at lang/rust (another diff might be need if you are building on sparc64)

I'll try. Embarrassingly, I am not terribly familiar with applying diffs and patches. As for your sparc64 remark, the script is currently only configured to work on i386 and amd64; so that architecture is not relevant:

case $(arch -s) in
i386)
    triple_arch='i686-unknown-openbsd'
    ;;
amd64)
    triple_arch='x86_64-unknown-openbsd'
    ;;
*)
    echo "error: unsupported arch" >&2
    exit 1
    ;;
esac
zacknewman commented 1 year ago

I am not confident enough to patch build.sh myself, but I was finally able to compile nightly on -stable with the following changes:

build$ diff build.sh build_rust/build.sh
193,202d192
<   ## openssl-sys: libressl in -current isn't explicitly supported
<   echo "patching: openssl-sys: libressl in -current isn't explicitly supported"
<   # keep last supported version in hold space
<   # when seeing last entry (error), replace with hold space (as generic)
<   sed -i -e "/ => ('.', '.'),/h" \
<       -e "/ => ('.', '.', '.'),/h" \
<       -e "/_ => version_error(),/{g; s/(.*) =>/_ =>/; }" \
<       "${rustc_xdir}/vendor/openssl-sys/build/main.rs"
<   sed -i 's/"files":{[^}]*}/"files":{}/' "${rustc_xdir}/vendor/openssl-sys/.cargo-checksum.json"
<
228a219,222
>   ## patch embedded llvm
>   echo 'patching: embedded llvm'
>   sed -i 's/set(suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES})/set(suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES} ".so.[0-9]+.[0-9]+")/' "${rustc_xdir}/src/llvm-project/llvm/cmake/modules/GetLibraryName.cmake"

The removal of the patch to openssl-sys was simply because that crate supports the version of LibreSSL on -stable.

I successfully compiled some silly code with nightly features just to make sure it works, and it does.

I did run into an issue where I needed to set LD_LIBRARY_PATH=/home/zack/build_rust/install_dir/nightly/lib, or more aggressively ldconfig -m /home/zack/build_rust/install_dir/nightly/lib. I am sure that is obvious to you, but it was not to me; therefore it may make sense to add that to README.md perhaps near where you state to amend the PATH variable.

semarie commented 1 year ago

it should have been fixed in last commits (d9bfaeb0e508dfa16e9e666f37774ff3f8725b91). thanks.