Repository: rust
Issue: Build failure with llvm 19
Labels: A-linkage,A-LLVM,T-bootstrap,C-bug,O-AArch64,requires-custom-config,E-needs-investigation

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
  Compiling rustc_driver v0.0.0 (/root/rust-nightly/BUILD/rustc-nightly-src/compiler/rustc_driver)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/aarch64-unknown-linux-gnu/bin:/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0/lib/rustlib/aarch64-unknown-linux-gnu/bin:/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0/lib/rustlib/aarch64-unknown-linux-gnu/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/tmp/rustcexm4mg/symbols.o" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/deps/rustc_main-33be16a5521dac56.rustc_main.1c7d98ad3486e0b0-cgu.0.rcgu.o" "-Wl,--as-needed" "-Wl,-Bdynamic" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_driver-a1631ec590227105.so" "-Wl,-Bstatic" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-db3f30e40f5d63a0.rlib" "-Wl,-Bdynamic" "-lPolly" "-lPollyISL" "-lrt" "-ldl" "-lm" "-lz" "-lzstd" "-lxml2" "-lstdc++" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/build/psm-ccb1c9596e3b84f8/out" "-L" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/build/blake3-ea5437fa3aa84c23/out" "-L" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/build/rustc_llvm-24183734d575e6fb/out" "-L" "/usr/lib64" "-L" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "/root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/deps/rustc_main-33be16a5521dac56" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,origin" "-Wl,-rpath,$ORIGIN/../lib"
  = note: /usr/bin/aarch64-rosa-linux-gnu-ld: /root/rust-nightly/BUILD/rustc-nightly-src/build/aarch64-unknown-linux-gnu/stage0-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_driver-a1631ec590227105.so: undefined reference to `llvm::DOTGraphTraits<llvm::RegionNode*>::getNodeLabel[abi:cxx11](llvm::RegionNode*, llvm::RegionNode*)'
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
```