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

Fatal linker error LNK1181 on Windows #147

Closed
fpoli opened this issue Aug 24, 2023 · 3 comments · Fixed by #220
Closed

Fatal linker error LNK1181 on Windows #147

fpoli opened this issue Aug 24, 2023 · 3 comments · Fixed by #220

Comments

@fpoli
Copy link

fpoli commented Aug 24, 2023

I'm trying to run ui_tests on Windows, but I keep getting the linker error "fatal error LNK1181: cannot open input file 'windows.0.48.5.lib'". I tried both ui_tests version 0.10 and 0.17, but with no luck. The same tests work on Ubuntu and macOS.

To reproduce:

In particular, the ui.rs that launches ui_tests is this one: https://github.com/duchess-rs/duchess/blob/f5919288f212d9c60697a4c8d3b7bfc2d3e2cbb3/test-crates/duchess-java-tests/tests/ui.rs

Output:

tests\ui\examples\log_local_ref_and_two_calls.rs:
  Error: no message
  Error: you likely need to bless the tests
  Error: Error: linking with `link.exe` failed: exit code: 1181
  pass test got exit code: 1, but expected 0
  
  actual output differed from expected
  Execute `"D:\\a\\duchess\\duchess\\test-crates\\target\\debug\\deps\\ui-bf3232b29b03ce5a.exe" --bless` to update `tests\ui\examples\log_local_ref_and_two_calls.stderr` to the actual output
  --- tests\ui\examples\log_local_ref_and_two_calls.stderr
  +++ <stderr output>
  +error: linking with `link.exe` failed: exit code: 1181
  +  |
  +  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\/link.exe" "/NOLOGO" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcQXzJN9\/symbols.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.0.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.1.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.10.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.11.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.12.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.13.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.14.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.15.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.2.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.3.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.4.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.5.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.6.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.7.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.8.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.9.rcgu.o" "..\\target\\ui\/log_local_ref_and_two_calls.324tu3cr00hcoivw.rcgu.o" "/LIBPATH:D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\debug\\deps" "/LIBPATH:D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps" "/LIBPATH:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libduchess-41e91d22ca22a63f.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libcesu8-4aa70e52252aab05.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libjava_locator-10ac43da87ffde02.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/liblazy_static-2c1780ce1f1c49f4.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libglob-990d2ccf93aaa33e.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libtracing-b053a9666d3ad529.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libcfg_if-6ff079a5faaf2937.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libpin_project_lite-2978b65e242f8cfb.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libtracing_core-5027c1360c57a43e.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libjni_sys-3f48a63c4dd8d548.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/liblibloading-a21ff566406b1c80.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libwindows_sys-1fb863ca2ba2b90c.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libwindows_targets-a40b71bbee77917b.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libonce_cell-393a315680f7bc46.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\/libthiserror-8b187e744d0c5a5b.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libstd-4e8f46f7d0c95848.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libpanic_unwind-5db344dab6eb1d2b.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/librustc_demangle-74e09b816cbd5555.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libstd_detect-0e78b5195f1cb27a.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libhashbrown-bfdbaec42e428240.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/librustc_std_workspace_alloc-ece31b1fa03921a4.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libminiz_oxide-b1cda3daaedb751f.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libadler-fcb0daf3e92ec962.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libunwind-943c8b115715a79a.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libcfg_if-86ba8a5505ea3939.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/liblibc-5e13ccbf89e39d2e.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/liballoc-150c9edec7571387.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/librustc_std_workspace_core-cd5722df944967ab.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libcore-f671e54f90f2e08c.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\/libcompiler_builtins-0157311a6d6a27aa.rlib" "windows.0.48.5.lib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:..\\target\\ui\/log_local_ref_and_two_calls.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\/intrinsic.natvis" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\/liballoc.natvis" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\/libcore.natvis" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\/libstd.natvis"
  +  = note: LINK : fatal error LNK1181: cannot open input file 'windows.0.48.5.lib'
  +          
  +
  +error: aborting due to previous error
  +
  
  
  There were 1 unmatched diagnostics that occurred outside the testfile and had no pattern
      Error: linking with `link.exe` failed: exit code: 1181
  
  full stderr:
  error: linking with `link.exe` failed: exit code: 1181
    |
    = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcQXzJN9\\symbols.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.0.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.1.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.10.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.11.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.12.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.13.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.14.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.15.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.2.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.3.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.4.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.5.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.6.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.7.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.8.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.log_local_ref_and_two_calls.76471adb22c5b38f-cgu.9.rcgu.o" "..\\target\\ui\\log_local_ref_and_two_calls.324tu3cr00hcoivw.rcgu.o" "/LIBPATH:D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\debug\\deps" "/LIBPATH:D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps" "/LIBPATH:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libduchess-41e91d22ca22a63f.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libcesu8-4aa70e52252aab05.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libjava_locator-10ac43da87ffde02.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\liblazy_static-2c1780ce1f1c49f4.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libglob-990d2ccf93aaa33e.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libtracing-b053a9666d3ad529.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libcfg_if-6ff079a5faaf2937.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libpin_project_lite-2978b65e242f8cfb.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libtracing_core-5027c1360c57a43e.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libjni_sys-3f48a63c4dd8d548.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\liblibloading-a21ff566406b1c80.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libwindows_sys-1fb863ca2ba2b90c.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libwindows_targets-a40b71bbee77917b.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libonce_cell-393a315680f7bc46.rlib" "D:\\a\\duchess\\duchess\\test-crates\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libthiserror-8b187e744d0c5a5b.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-4e8f46f7d0c95848.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-5db344dab6eb1d2b.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-74e09b816cbd5555.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-0e78b5195f1cb27a.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-bfdbaec42e428240.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-ece31b1fa03921a4.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libminiz_oxide-b1cda3daaedb751f.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libadler-fcb0daf3e92ec962.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-943c8b115715a79a.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-86ba8a5505ea3939.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-5e13ccbf89e39d2e.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-150c9edec7571387.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-cd5722df944967ab.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-f671e54f90f2e08c.rlib" "C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-0157311a6d6a27aa.rlib" "windows.0.48.5.lib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:..\\target\\ui\\log_local_ref_and_two_calls.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\runneradmin\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
    = note: LINK : fatal error LNK1181: cannot open input file 'windows.0.48.5.lib'
            
  
  error: aborting due to previous error
  
  
  

tests\ui\examples\log_one_big_call.rs FAILED:
command: "rustc" "--error-format=json" "--extern" "duchess=D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libduchess-41e91d22ca22a63f.rlib" "--extern" "duchess=D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libduchess-41e91d22ca22a63f.rmeta" "--extern" "thiserror=D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libthiserror-8b187e744d0c5a5b.rlib" "--extern" "thiserror=D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps\\libthiserror-8b187e744d0c5a5b.rmeta" "-L" "D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\debug\\deps" "-L" "D:\\a\\duchess\\duchess\\test-crates\\duchess-java-tests\\..\\target\\ui\\x86_64-pc-windows-msvc\\debug\\deps" "--out-dir" "..\\target\\ui" "tests\\ui\\examples\\log_one_big_call.rs" "--edition" "2021"

Have you already seen anything like this?

@oli-obk
Copy link
Owner

oli-obk commented Aug 28, 2023

I have not, I'll spin up my windows machine tomorrow and run these locally to see what's up

@smoelius
Copy link
Contributor

I can reproduce this error.

Moreover, when I run cargo build -vv within the duchess-java-tests directory, the command I see ends with this:

-L 'native=C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\lib'

And windows.0.48.5.lib is in that directory.

I don't understand ui_test internals, but could it be that -L flag is not getting picked up?

@oli-obk
Copy link
Owner

oli-obk commented Apr 29, 2024

I can reproduce this on windows with your crates, but I haven't figured out a minimization yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants