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

Incremental compilation linker error: 'relocation R_X86_64_PC32 against undefined hidden symbol' #67802

Closed
Aaron1011 opened this issue Jan 2, 2020 · 6 comments
Labels
A-incr-comp Area: Incremental compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Aaron1011
Copy link
Member

This looks very similar to #59535 - maybe #67020 didn't fix it completely.

This occured during incremetal compilation of rustc, so I don't really have a good reproducer. Here's the relevant part of the error:

  = note: /usr/sbin/ld: /tmp/rustcgtN4Kl/librustc_lint-0370311e82758631.rlib(rustc_lint-0370311e82758631.1cfi9zh1qwftgcfw.rcgu.o): in function `rustc::ty::sty::DebruijnIndex::from_u32':
          /home/aaron/repos/rust/<::std::macros::panic macros>:3: undefined reference to `anon.3397d7d767771b30960460dfd4dee5de.2.llvm.13934392132103289839'
          /usr/sbin/ld: /tmp/rustcgtN4Kl/librustc_lint-0370311e82758631.rlib(rustc_lint-0370311e82758631.1cfi9zh1qwftgcfw.rcgu.o): relocation R_X86_64_PC32 against undefined hidden symbol `anon.3397d7d767771b30960460dfd4dee5de.2.llvm.13934392132103289839' can not be used when making a shared object
          /usr/sbin/ld: final link failed: bad value
          clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
@Aaron1011
Copy link
Member Author

Unfortunately, I wasn't editing anything related to the paths shown in the error (I modified src/librustc/mir/interpret/mod.rs), so I'm not really sure how to narrow this down.

@jonas-schievink jonas-schievink added A-incr-comp Area: Incremental compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example labels Jan 2, 2020
@Aaron1011
Copy link
Member Author

I just ran into this again, this time while editing librustc_mir. The error message seems a little more relevant this time:

  = note: /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `<hashbrown::map::HashMap<K,V,S> as core::iter::traits::collect::IntoIterator>::into_iter':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1878: undefined reference to `<hashbrown::raw::RawTable<T> as core::iter::traits::collect::IntoIterator>::into_iter'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `<hashbrown::map::Iter<K,V> as core::iter::traits::iterator::Iterator>::size_hint':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1895: undefined reference to `<hashbrown::raw::RawIter<T> as core::iter::traits::iterator::Iterator>::size_hint'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1895: undefined reference to `<hashbrown::raw::RawIter<T> as core::iter::traits::iterator::Iterator>::size_hint'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `<hashbrown::map::Iter<K,V> as core::iter::traits::iterator::Iterator>::next':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1888: undefined reference to `<hashbrown::raw::RawIter<T> as core::iter::traits::iterator::Iterator>::next'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `<hashbrown::map::Iter<K,V> as core::iter::traits::iterator::Iterator>::size_hint':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1895: undefined reference to `<hashbrown::raw::RawIter<T> as core::iter::traits::iterator::Iterator>::size_hint'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `<hashbrown::map::IntoIter<K,V> as core::iter::traits::iterator::Iterator>::next':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1945: undefined reference to `<hashbrown::raw::RawIntoIter<T> as core::iter::traits::iterator::Iterator>::next'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::raw::RawTable<T>::find':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:882: undefined reference to `hashbrown::raw::RawTable<T>::probe_seq'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:883: undefined reference to `hashbrown::raw::RawTable<T>::ctrl'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:886: undefined reference to `hashbrown::raw::RawTable<T>::bucket'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:887: undefined reference to `hashbrown::raw::Bucket<T>::as_ref'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::reserve':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:583: undefined reference to `hashbrown::raw::RawTable<T>::reserve'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::raw::RawTable<T>::find':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:882: undefined reference to `hashbrown::raw::RawTable<T>::probe_seq'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:883: undefined reference to `hashbrown::raw::RawTable<T>::ctrl'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:886: undefined reference to `hashbrown::raw::RawTable<T>::bucket'
          /usr/sbin/ld: /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:887: undefined reference to `hashbrown::raw::Bucket<T>::as_ref'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::reserve':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:583: undefined reference to `hashbrown::raw::RawTable<T>::reserve'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::with_hasher':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:266: undefined reference to `hashbrown::raw::RawTable<T>::new'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::with_hasher':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:266: undefined reference to `hashbrown::raw::RawTable<T>::new'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::iter':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:430: undefined reference to `hashbrown::raw::RawTable<T>::iter'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1bi9i1a99w6ukhk0.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::iter':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:430: undefined reference to `hashbrown::raw::RawTable<T>::iter'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1faphbo1kfqvuvdd.rcgu.o): in function `<rustc_mir::transform::inline::Integrator as rustc::mir::visit::MutVisitor>::visit_local':
          /home/aaron/repos/rust/src/librustc_mir/transform/inline.rs:671: undefined reference to `_ZN9rustc_mir9transform6inline10Integrator20make_integrate_local17h85a5bc2e64ccfdb8E.llvm.17716994606215347223'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.1faphbo1kfqvuvdd.rcgu.o): in function `rustc::mir::visit::MutVisitor::super_statement':
          /home/aaron/repos/rust/src/librustc/mir/visit.rs:(.text._ZN5rustc3mir5visit10MutVisitor22super_basic_block_data17h231264b8007af5deE+0x71): undefined reference to `_ZN9rustc_mir9transform6inline10Integrator20make_integrate_local17h85a5bc2e64ccfdb8E.llvm.17716994606215347223'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `core::ptr::real_drop_in_place':
          /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawIntoIter<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `core::ptr::real_drop_in_place':
          /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawTable<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `core::ptr::real_drop_in_place':
          /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawTable<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::with_hasher':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:266: undefined reference to `hashbrown::raw::RawTable<T>::new'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::with_hasher':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:266: undefined reference to `hashbrown::raw::RawTable<T>::new'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `<hashbrown::map::IntoIter<K,V> as core::iter::traits::iterator::Iterator>::next':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1945: undefined reference to `<hashbrown::raw::RawIntoIter<T> as core::iter::traits::iterator::Iterator>::next'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `core::ptr::real_drop_in_place':
          /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawIntoIter<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::with_hasher':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:266: undefined reference to `hashbrown::raw::RawTable<T>::new'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `hashbrown::map::HashMap<K,V,S>::with_hasher':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:266: undefined reference to `hashbrown::raw::RawTable<T>::new'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `<hashbrown::map::IntoIter<K,V> as core::iter::traits::iterator::Iterator>::next':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/map.rs:1945: undefined reference to `<hashbrown::raw::RawIntoIter<T> as core::iter::traits::iterator::Iterator>::next'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2cct58omhch0nmrk.rcgu.o): in function `core::ptr::real_drop_in_place':
          /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawIntoIter<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2czhn8xrpxst0wlf.rcgu.o): in function `core::ptr::real_drop_in_place':
          /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawTable<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /home/aaron/repos/rust/src/libcore/ptr/mod.rs:184: undefined reference to `<hashbrown::raw::RawTable<T> as core::ops::drop::Drop>::drop'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2h900bpbh0zmqpwn.rcgu.o): in function `hashbrown::raw::RawTable<T>::buckets':
          /home/aaron/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.6.2/src/raw/mod.rs:919: undefined reference to `str.0.llvm.8333985234810216789'
          /usr/sbin/ld: /tmp/rustcSiRFTe/librustc_mir-73e40d5863ab96ba.rlib(rustc_mir-73e40d5863ab96ba.2h900bpbh0zmqpwn.rcgu.o): relocation R_X86_64_PC32 against undefined hidden symbol `str.0.llvm.8333985234810216789' can not be used when making a shared object
          /usr/sbin/ld: final link failed: bad value
          clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: aborting due to previous error

error: could not compile `rustc_driver`.

@Aaron1011
Copy link
Member Author

A similar instance:

 = note: /usr/sbin/ld: /tmp/rustcanegHw/libsyntax-5fd21376722f156b.rlib(syntax-5fd21376722f156b.20e7bp0qmy5q4tkj.rcgu.o): in function `<alloc::string::String as core::iter::traits::collect::Extend<char>>::extend::{{closure}}':
          /home/aaron/repos/rust/src/liballoc/string.rs:1797: undefined reference to `_ZN5alloc6string6String4push17h4bc615fe4aa3a523E.llvm.7902427079162915264'
          /usr/sbin/ld: /home/aaron/repos/rust/src/liballoc/string.rs:1797: undefined reference to `_ZN5alloc6string6String4push17h4bc615fe4aa3a523E.llvm.7902427079162915264'
          /usr/sbin/ld: /home/aaron/repos/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_driver-1bedce06f54f9695.so: hidden symbol `_ZN5alloc6string6String4push17h4bc615fe4aa3a523E.llvm.7902427079162915264' isn't defined
          /usr/sbin/ld: final link failed: bad value
          clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

@Aaron1011
Copy link
Member Author

I haven't encountered this issue in a while - I suspect that #71131 was responsible for fixing this. Since I have no idea how to reproduce this issue, I'm going to close it.

@jaques-sam
Copy link

jaques-sam commented Aug 25, 2023

This happens already for a long time when compiling with CARGO_INCREMENTAL=0 and RUSTFLAGS=-Cinstrument-coverage. Still haven't managed to fix this. I'm just unable to have code coverage for my project.

Example:

   ...
   Compiling aho-corasick v1.0.4
     Running `/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/bin/rustc --crate-name aho_corasick --edition=2021 /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.0.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=0 --cfg 'feature="default"' --cfg 'feature="perf-literal"' --cfg 'feature="std"' -C metadata=a9091094c63bef83 -C extra-filename=-a9091094c63bef83 --out-dir /opt/atlassian/pipelines/agent/build/target/debug/deps -L dependency=/opt/atlassian/pipelines/agent/build/target/debug/deps --extern memchr=/opt/atlassian/pipelines/agent/build/target/debug/deps/libmemchr-aafa1801c19ff835.rmeta --cap-lints allow -Cinstrument-coverage`
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustcd7tcEC/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcd7tcEC/symbols.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.0.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.1.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.10.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.11.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.12.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.13.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.14.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.15.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.2.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.3.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.4.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.5.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.6.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.7.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.8.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.proc_macro_error_attr.1d6ee736baaae0df-cgu.9.rcgu.o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.462xd9p4azoa4it9.rcgu.rmeta" "/opt/atlassian/pipelines/agent/build/target/debug/deps/proc_macro_error_attr-30557b267e957b0d.470cdldz2k1qjt6i.rcgu.o" "-Wl,--as-needed" "-L" "/opt/atlassian/pipelines/agent/build/target/debug/deps" "-L" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/target/debug/deps/libquote-f24938ab83b9e384.rlib" "/target/debug/deps/libproc_macro2-f71289186c073abc.rlib" "/target/debug/deps/libunicode_ident-14fdf9f3a01ad79e.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libprofiler_builtins-b8cf4bf4747f4a72.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-918a4c8e5082c14b.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-7b9f6349d87c69a1.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-8aa13c9d539a65d0.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-584d799a3f3eb3c4.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-31c151ca16df12cb.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-c7816532343be4b4.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-b9b833ec51690ba4.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-77071c92726d4076.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-e299e57d9e5c1111.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-2c7771df0549e461.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-ea1a747db17b6836.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-0e3146805ce934d6.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-464690d32269d503.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-6563489380ff8725.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-eeca9ee8c0120aaf.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-d302b9c70aefff51.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-99d811a5f83caaf4.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-699fe6dfc31ade7e.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-4efaba4fe03302d5.rlib" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d092fa2c0bdfc89c.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/atlassian/pipelines/agent/build/target/debug/deps/libproc_macro_error_attr-30557b267e957b0d.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-u" "__llvm_profile_runtime"
  = note: /usr/bin/ld: /usr/local/rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libprofiler_builtins-b8cf4bf4747f4a72.rlib(InstrProfilingPlatformLinux.o): relocation R_X86_64_PC32 against undefined hidden symbol `__ehdr_start' can not be used when making a shared object
          /usr/bin/ld: final link failed: nonrepresentable section on output
          collect2: error: ld returned 1 exit status

@bjorn3
Copy link
Member

bjorn3 commented Aug 25, 2023

@jaques-sam that is a different kind of linker error. #79946 (comment) has the same error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants