std::thread::available_parallelism merging linux/android/freebsd version by devnexen · Pull Request #120589 · rust-lang/rust (original) (raw)

[RUSTC-TIMING] rustc_query_impl test:false 138.695
[RUSTC-TIMING] rustc_driver test:false 8.493
error: linking with `x86_64-unknown-freebsd12-clang` failed: exit status: 1
  |
  = note:  "x86_64-unknown-freebsd12-clang" "-m64" "/tmp/rustcDM5tt9/symbols.o" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bdynamic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-rustc/x86_64-unknown-freebsd/release/deps/librustc_driver-ea6df38576632e17.so" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lc++" "-lc" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lmemstat" "-lkvm" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-lexecinfo" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lmemstat" "-lkvm" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-L" "/tmp/rustcDM5tt9/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-rustc/x86_64-unknown-freebsd/release/build/psm-a2b1386b6a4c2e24/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-rustc/x86_64-unknown-freebsd/release/build/blake3-9525560521e5f270/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-rustc/x86_64-unknown-freebsd/release/build/rustc_llvm-28f0c305d9ff5368/out" "-L" "/checkout/obj/build/x86_64-unknown-freebsd/llvm/lib" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-rustc/x86_64-unknown-freebsd/release/deps/rustc_main-1ca440777a4b1988" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,origin" "-Wl,-rpath,$ORIGIN/../lib"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/local/x86_64-unknown-freebsd12/bin/ld: /checkout/obj/build/x86_64-unknown-linux-gnu/stage2-rustc/x86_64-unknown-freebsd/release/deps/librustc_driver-ea6df38576632e17.so: undefined reference to `sched_getaffinity'
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified