Skip to content

Windows CI broken #76

@MichaelGrupp

Description

@MichaelGrupp

The Windows CI job fails with a linker error while building a dependency. Strangely enough, this even happens with cargo build --locked without changes in the maps repo.

why

Details

error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcApypTK\\symbols.o" "<2 object files omitted>" "D:\\a\\maps\\maps\\target\\kittest\\deps/{libbuilt-cc46dacbfb1af59a.rlib,libgit2-765c90c18b1d10e7.rlib,liburl-7f03ee623b99752a.rlib,libidna-c451b04595737127.rlib,libidna_adapter-a50a7a9832e8643b.rlib,libicu_normalizer-e4b8d27b26aaaf86.rlib,libicu_normalizer_data-b8ab9d68521141d2.rlib,libwrite16-aa0be06de2280653.rlib,libutf8_iter-c94dc76f5a89502e.rlib,libutf16_iter-894325408d2a37f3.rlib,libsmallvec-6989b309a2a3aafc.rlib,libicu_properties-7f7fe1428d86a412.rlib,libicu_properties_data-bd51705fa1374410.rlib,libicu_locid_transform-0010008cfca5b5be.rlib,libicu_locid_transform_data-a50a392482864751.rlib,libicu_collections-3e47ec808ce9fb18.rlib,libicu_provider-07b195cd809e7990.rlib,libicu_locid-2035527885c53b0d.rlib,liblitemap-96a573ef7dc99cc4.rlib,libtinystr-a7f3e84d737547af.rlib,libzerovec-7be057b76c9938cc.rlib,libwriteable-bd82d9de2f474d8f.rlib,libyoke-d5237fb721960585.rlib,libzerofrom-2bb8a9b03904d584.rlib,libstable_deref_trait-ba10e75ac4b1f1cf.rlib,libform_urlencoded-632f5fddb1543c8f.rlib,libpercent_encoding-7ac1db0db2aa321d.rlib,liblog-7faaeac5f2486cfa.rlib,liblibgit2_sys-7e3589afb9dba484.rlib,liblibz_sys-203db28b7406a5a6.rlib,liblibc-7d52453d8f721fc3.rlib,libbitflags-cf85fa984b352097.rlib}.rlib" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "winhttp.lib" "rpcrt4.lib" "ole32.lib" "crypt32.lib" "secur32.lib" "legacy_stdio_definitions.lib" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.43.34808\\atlmfc\\lib\\x64" "/LIBPATH:D:\\a\\maps\\maps\\target\\kittest\\build\\libgit2-sys-8a41ed44d2b0d65f\\out\\build" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.43.34808\\atlmfc\\lib\\x64" "/LIBPATH:D:\\a\\maps\\maps\\target\\kittest\\build\\libz-sys-5465bc1a65c266f0\\out\\lib" "/LIBPATH:D:\\a\\maps\\maps\\target\\kittest\\build\\libz-sys-5465bc1a65c266f0\\out\\lib" "/OUT:D:\\a\\maps\\maps\\target\\kittest\\build\\rav1e-4c71ebd03fb33601\\build_script_build-4c71ebd03fb33601.exe" "/OPT:REF,NOICF" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libstd.natvis"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note:    Creating library D:\a\maps\maps\target\kittest\build\rav1e-4c71ebd03fb33601\build_script_build-4c71ebd03fb33601.lib and object D:\a\maps\maps\target\kittest\build\rav1e-4c71ebd03fb33601\build_script_build-4c71ebd03fb33601.exp␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_OpenProcessToken referenced in function current_user_sid␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_CheckTokenMembership referenced in function git_fs_path_owner_is␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_CopySid referenced in function sid_dup␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_EqualSid referenced in function git_fs_path_owner_is␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_GetLengthSid referenced in function sid_dup␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_GetTokenInformation referenced in function current_user_sid␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_IsValidSid referenced in function file_owner_sid␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_IsWellKnownSid referenced in function git_fs_path_owner_is␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-fs_path.o) : error LNK2019: unresolved external symbol __imp_GetNamedSecurityInfoW referenced in function file_owner_sid␍
          liblibgit2_sys-7e3589afb9dba484.rlib(43a19b30e9e69d8f-sysdir.o) : error LNK2019: unresolved external symbol __imp_RegCloseKey referenced in function lookup_registry_key␍
          liblibgit2_sys-7e3589afb9dba484.rlib(43a19b30e9e69d8f-sysdir.o) : error LNK2019: unresolved external symbol __imp_RegOpenKeyExW referenced in function lookup_registry_key␍
          liblibgit2_sys-7e3589afb9dba484.rlib(43a19b30e9e69d8f-sysdir.o) : error LNK2019: unresolved external symbol __imp_RegQueryValueExW referenced in function lookup_registry_key␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-rand.o) : error LNK2019: unresolved external symbol __imp_CryptAcquireContextA referenced in function getseed␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-rand.o) : error LNK2019: unresolved external symbol __imp_CryptReleaseContext referenced in function getseed␍
          liblibgit2_sys-7e3589afb9dba484.rlib(f6e81ea219c0b9f3-rand.o) : error LNK2019: unresolved external symbol __imp_CryptGenRandom referenced in function getseed␍
          D:\a\maps\maps\target\kittest\build\rav1e-4c71ebd03fb33601\build_script_build-4c71ebd03fb33601.exe : fatal error LNK1120: 15 unresolved externals

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindowsAffects Windows

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions