Skip to content

error LNK2019: unresolved external symbol SystemFunction036 referenced in function _ZN9jobserver3imp9getrandom17h2fd72538b1d9a0c3E #4870

Open
@davehorner

Description

@davehorner

windows 11 vs2022 I get the following

Running: cargo run --bin basic  [from Some("c:\\w\\rust\\webrender")]
warning: C:\w\rust\webrender\swgl\Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
warning: c:\w\rust\webrender\wrench\Cargo.toml: file `c:\w\rust\webrender\wrench\src\main.rs` found to be present in multiple build targets:
  * `lib` target `wrench`
  * `bin` target `wrench`
   Compiling webrender v0.62.0 (C:\w\rust\webrender\webrender)
error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\dhorner\\AppData\\Local\\Temp\\rustcJ76P17\\symbols.o" "<105 object files omitted>" "C:\\w\\rust\\webrender\\target\\debug\\deps/{libglslopt-dcadfa799fc0546d.rlib,libbuild_parallel-84b48083a65bfb98.rlib,libnum_cpus-ccfe8c579962b749.rlib,libjobserver-87bfe1732cd48cf4.rlib,libcrossbeam_utils-3f60268a6a906f91.rlib,libcfg_if-ccf0b37a71a9b1f9.rlib,libwebrender_build-7b6f1f02fb5da860.rlib,liblazy_static-f34d9ed173f57e6c.rlib,libbitflags-6d4d996c6399bc35.rlib,libserde-b2ad8d6a238be7f3.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" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:c:\\w\\rust\\webrender\\target\\debug\\build\\glslopt-25348ef9737ed57d\\out" "/LIBPATH:c:\\w\\rust\\webrender\\target\\debug\\build\\glslopt-25348ef9737ed57d\\out" "/LIBPATH:c:\\w\\rust\\webrender\\target\\debug\\build\\glslopt-25348ef9737ed57d\\out" "/OUT:c:\\w\\rust\\webrender\\target\\debug\\build\\webrender-5362c64ca8d4aa29\\build_script_build-5362c64ca8d4aa29.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: libjobserver-87bfe1732cd48cf4.rlib(jobserver-87bfe1732cd48cf4.jobserver.cbc0442afe8bc89a-cgu.2.rcgu.o) : error LNK2019: unresolved external symbol SystemFunction036 referenced in function _ZN9jobserver3imp9getrandom17h2fd72538b1d9a0c3E␍
          c:\w\rust\webrender\target\debug\build\webrender-5362c64ca8d4aa29\build_script_build-5362c64ca8d4aa29.exe : fatal error LNK1120: 1 unresolved externals␍


error: could not compile `webrender` (build script) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions