Skip to content

tests/ui/sanitizer/asan_odr_windows.rs fails with lld #138222

New issue

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

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

Already on GitHub? # to your account

Closed
ChrisDenton opened this issue Mar 8, 2025 · 2 comments
Closed

tests/ui/sanitizer/asan_odr_windows.rs fails with lld #138222

ChrisDenton opened this issue Mar 8, 2025 · 2 comments

Comments

@ChrisDenton
Copy link
Member

On a Windows host I tried running tests/ui/sanitizer/asan_odr_windows.rs with lld:

./x test ui --stage 1 --test-args asan_odr_windows --set rust.lld=true

This fails with the following error:

error: linking with `F:\rust\build\x86_64-pc-windows-msvc\stage0\lib/rustlib\x86_64-pc-windows-msvc\bin\rust-lld` failed: exit code: 1
   |
   = note: "F:\\rust\\build\\x86_64-pc-windows-msvc\\stage0\\lib/rustlib\\x86_64-pc-windows-msvc\\bin\\rust-lld" "-flavor" "link" "/NOLOGO" "F:\\Temp\\rustc_temp\\rustcXvYNiU\\symbols.o" "/WHOLEARCHIVE:<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc-dev_rt.asan.a" "<1 object files omitted>" "F:\\rust\\build\\x86_64-pc-windows-msvc\\test\\ui\\sanitizer\\asan_odr_windows\\auxiliary/{libothercrate.rlib}.rlib" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\std-e975f39360e5da55.dll.lib" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "F:\\Temp\\rustc_temp\\rustcXvYNiU\\api-ms-win-core-synch-l1-2-0.dll_imports_indirect.lib" "F:\\Temp\\rustc_temp\\rustcXvYNiU\\bcryptprimitives.dll_imports_indirect.lib" "/NXCOMPAT" "/LIBPATH:F:\\rust\\build\\x86_64-pc-windows-msvc\\native\\rust-test-helpers" "/LIBPATH:F:\\rust\\build\\x86_64-pc-windows-msvc\\test\\ui\\sanitizer\\asan_odr_windows\\auxiliary" "/OUT:F:\\rust\\build\\x86_64-pc-windows-msvc\\test\\ui\\sanitizer\\asan_odr_windows\\a.exe" "/OPT:REF,ICF" "/DEBUG" "/PDBALTPATH:%_PDB%"
   = note: some arguments are omitted. use `--verbose` to show all linker arguments
   = note: rust-lld: error: could not open 'F:\rust\build\x86_64-pc-windows-msvc\stage1\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc-dev_rt.asan.a': no such file or directory␍

The test passed with the msvc linker.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 8, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Mar 8, 2025

I think this is #135013? 😄

@ChrisDenton
Copy link
Member Author

ChrisDenton commented Mar 8, 2025

Oh, you're right! Duplicate of #135013

@ChrisDenton ChrisDenton closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2025
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 8, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants