Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/rustdoc-ui/issues/issue-107918 fails on x86_64-apple-darwin #117575

Open
eggyal opened this issue Nov 4, 2023 · 0 comments
Open

tests/rustdoc-ui/issues/issue-107918 fails on x86_64-apple-darwin #117575

eggyal opened this issue Nov 4, 2023 · 0 comments
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc O-macos Operating system: macOS T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@eggyal
Copy link
Contributor

eggyal commented Nov 4, 2023

Linker fails to find the following symbols during auxiliary build of tests/rustdoc-ui/issues/auxiliary/panic-handler.rs:

  • __Unwind_Resume
  • ___bzero
  • _memcmp
  • _memcpy
  • _memset
  • _rust_eh_personality
x test tests/rustdoc-ui/issues/issue-107918.rs
% x test tests/rustdoc-ui/issues/issue-107918.rs 
Building bootstrap
    Finished dev [unoptimized] target(s) in 1.04s
Building stage0 library artifacts (x86_64-apple-darwin)
    Finished release [optimized + debuginfo] target(s) in 2.48s
Building compiler artifacts (stage0 -> stage1, x86_64-apple-darwin)
    Finished release [optimized + debuginfo] target(s) in 11.93s
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building stage1 library artifacts (x86_64-apple-darwin)
    Finished release [optimized + debuginfo] target(s) in 1.25s
Building stage0 tool compiletest (x86_64-apple-darwin)
    Finished release [optimized + debuginfo] target(s) in 3.99s
Building tool rustdoc (stage0 -> stage1, x86_64-apple-darwin)
    Finished release [optimized + debuginfo] target(s) in 3.77s
Testing stage1 compiletest suite=rustdoc-ui mode=ui (x86_64-apple-darwin)
 
running 1 tests
F
 
failures:
 
---- [ui] tests/rustdoc-ui/issues/issue-107918.rs stdout ----
 
error: auxiliary build of "/Users/eggyal/rust/tests/rustdoc-ui/issues/auxiliary/panic-handler.rs" failed to compile: 
status: exit status: 1
command: RUSTC_ICE="0" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/bin/rustc" "/Users/eggyal/rust/tests/rustdoc-ui/issues/auxiliary/panic-handler.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=/Users/eggyal/.cargo" "--sysroot" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1" "--target=x86_64-apple-darwin" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/Users/eggyal/rust/build/x86_64-apple-darwin/test/rustdoc-ui/issues/issue-107918/auxiliary" "-A" "internal_features" "-Cdebuginfo=0" "-Lnative=/Users/eggyal/rust/build/x86_64-apple-darwin/native/rust-test-helpers" "-C" "panic=abort" "--crate-type" "dylib" "-L" "/Users/eggyal/rust/build/x86_64-apple-darwin/test/rustdoc-ui/issues/issue-107918/auxiliary"
stdout: none
--- stderr -------------------------------
error: linking with `cc` failed: exit status: 1
   |
   = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/eggyal/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list,/var/folders/wr/r99xx1jj23jby6mpg_y8k4n00000gp/T/rustc2HEZhn/list" "-arch" "x86_64" "-m64" "/var/folders/wr/r99xx1jj23jby6mpg_y8k4n00000gp/T/rustc2HEZhn/symbols.o" "/Users/eggyal/rust/build/x86_64-apple-darwin/test/rustdoc-ui/issues/issue-107918/auxiliary/panic-handler.panic_handler.7f215d55538769da-cgu.0.rcgu.o" "/Users/eggyal/rust/build/x86_64-apple-darwin/test/rustdoc-ui/issues/issue-107918/auxiliary/panic-handler.oc5iqxvr9bf848n.rcgu.rmeta" "-L" "/Users/eggyal/rust/build/x86_64-apple-darwin/native/rust-test-helpers" "-L" "/Users/eggyal/rust/build/x86_64-apple-darwin/test/rustdoc-ui/issues/issue-107918/auxiliary" "-L" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-13284c2ec92d253a.rlib" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libcore-02c4a0fbd73316df.rlib" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-5bcb1aed973f54f5.rlib" "-L" "/Users/eggyal/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/eggyal/rust/build/x86_64-apple-darwin/test/rustdoc-ui/issues/issue-107918/auxiliary/libpanic_handler.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"
   = note: ld: warning: cannot export hidden symbols ...
           Undefined symbols for architecture x86_64:
             "__Unwind_Resume", referenced from:
                 _$LT$core..net..ip_addr..Ipv4Addr$u20$as$u20$core..ops..bit..BitAndAssign$GT$::bitand_assign::h9126a0d1f1e5bc3b in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 _$LT$core..net..ip_addr..Ipv4Addr$u20$as$u20$core..ops..bit..BitAndAssign$LT$$RF$core..net..ip_addr..Ipv4Addr$GT$$GT$::bitand_assign::h58047ede8f2fb132 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 _$LT$core..net..ip_addr..Ipv4Addr$u20$as$u20$core..ops..bit..BitOrAssign$GT$::bitor_assign::h65198dff8f58ccbc in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 _$LT$core..net..ip_addr..Ipv4Addr$u20$as$u20$core..ops..bit..BitOrAssign$LT$$RF$core..net..ip_addr..Ipv4Addr$GT$$GT$::bitor_assign::habdc5eb6631c0c5f in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 _$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..ops..bit..BitAndAssign$GT$::bitand_assign::he7d723c09c3a17b7 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 _$LT$core..net..ip_addr..Ipv6Addr$u20$as$u20$core..ops..bit..BitOrAssign$GT$::bitor_assign::h46c1303682a4979d in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
             "___bzero", referenced from:
                 core::num::dec2flt::decimal::parse_decimal::h4c196d9f84bc85f8 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.04.rcgu.o)
                 core::num::flt2dec::strategy::dragon::format_shortest::hf4316a8e62084d34 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.10.rcgu.o)
                 core::num::flt2dec::strategy::dragon::format_exact::h585c8568f39089ea in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.10.rcgu.o)
                 core::num::bignum::Big32x40::from_u64::hf52f96927a9862fa in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.11.rcgu.o)
                 core::num::bignum::Big32x40::mul_pow2::ha73dcc0fe6c72749 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.11.rcgu.o)
                 core::num::bignum::Big32x40::div_rem::hfaeca84b9f33708a in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.11.rcgu.o)
                 core::num::bignum::tests::Big8x3::mul_pow2::hc2c884f457e8d820 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.13.rcgu.o)
                 ...
             "_memcmp", referenced from:
                 _$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$::equal::hc6e4f57dad447b16 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.07.rcgu.o)
                 _$LT$$u5b$A$u5d$$u20$as$u20$core..slice..cmp..SlicePartialEq$LT$B$GT$$GT$::equal::he7c64ff482cba1f0 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.07.rcgu.o)
             "_memcpy", referenced from:
                 core::num::dec2flt::decimal::parse_decimal::h4c196d9f84bc85f8 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.04.rcgu.o)
                 core::num::flt2dec::strategy::dragon::format_shortest::hf4316a8e62084d34 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.10.rcgu.o)
                 core::num::flt2dec::strategy::dragon::format_exact::h585c8568f39089ea in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.10.rcgu.o)
                 core::num::fmt::Part::write::hd0fad743a1f51545 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 core::num::fmt::Formatted::write::h643e97340c798fdd in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 core::slice::_$LT$impl$u20$$u5b$T$u5d$$GT$::copy_from_slice::ha52603237412243a in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 core::slice::_$LT$impl$u20$$u5b$T$u5d$$GT$::copy_from_slice::hf9ab193e97d0df62 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 ...
                (maybe you meant: compiler_builtins::mem::__llvm_memcpy_element_unordered_atomic_2::h031b4fdddebc1529, ___llvm_memcpy_element_unordered_atomic_16 , ___llvm_memcpy_element_unordered_atomic_4 , ___llvm_memcpy_element_unordered_atomic_1 , ___llvm_memcpy_element_unordered_atomic_8 , ___llvm_memcpy_element_unordered_atomic_2 , compiler_builtins::mem::__llvm_memcpy_element_unordered_atomic_16::h19b2193ddf252156 , compiler_builtins::mem::__llvm_memcpy_element_unordered_atomic_8::ha680d29f15d130b6 , compiler_builtins::mem::__llvm_memcpy_element_unordered_atomic_1::ha3023393e589b4dd , compiler_builtins::mem::__llvm_memcpy_element_unordered_atomic_4::hafbed51d0a950d3c )
             "_memset", referenced from:
                 core::num::flt2dec::strategy::dragon::format_exact::h585c8568f39089ea in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.10.rcgu.o)
                 core::num::fmt::Part::write::hd0fad743a1f51545 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
                 core::num::flt2dec::round_up::hb708b1c2c955845e in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.15.rcgu.o)
                 core::fmt::num::fmt_u128::h7cdc1c1c0be74f29 in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.01.rcgu.o)
                (maybe you meant: compiler_builtins::mem::__llvm_memset_element_unordered_atomic_8::ha9e8855b58ae3ab7, compiler_builtins::mem::__llvm_memset_element_unordered_atomic_4::h626e916b451a27be , compiler_builtins::mem::__llvm_memset_element_unordered_atomic_1::hbe353f0c6c1a8a35 , ___llvm_memset_element_unordered_atomic_8 , ___llvm_memset_element_unordered_atomic_1 , ___llvm_memset_element_unordered_atomic_2 , compiler_builtins::mem::__llvm_memset_element_unordered_atomic_16::ha7d71975f79905b1 , ___llvm_memset_element_unordered_atomic_4 , ___llvm_memset_element_unordered_atomic_16 , compiler_builtins::mem::__llvm_memset_element_unordered_atomic_2::h2afced21dd3e33e7 )
             "_rust_eh_personality", referenced from:
                 Dwarf Exception Unwind Info (__eh_frame) in libcore-02c4a0fbd73316df.rlib(core-02c4a0fbd73316df.core.6f371f77b1462388-cgu.09.rcgu.o)
           ld: symbol(s) not found for architecture x86_64
           clang: error: linker command failed with exit code 1 (use -v to see invocation)
            
 
error: aborting due to previous error
------------------------------------------
 
 
 
failures:
    [ui] tests/rustdoc-ui/issues/issue-107918.rs
 
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 238 filtered out; finished in 210.74ms
 
Some tests failed in compiletest suite=rustdoc-ui mode=ui host=x86_64-apple-darwin target=x86_64-apple-darwin
Build completed unsuccessfully in 0:00:50

cc #107918, #108431, @GuillaumeGomez
@rustbot label A-rustdoc-ui A-testsuite O-macos

@rustbot rustbot added needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. A-rustdoc-ui Area: Rustdoc UI (generated HTML) A-testsuite Area: The testsuite used to check the correctness of rustc O-macos Operating system: macOS labels Nov 4, 2023
@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 4, 2023
@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. and removed A-rustdoc-ui Area: Rustdoc UI (generated HTML) labels Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc O-macos Operating system: macOS T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants