Skip to content

Unable to build Windows release template (ld.lld: error: duplicate symbol: PKEY_Device_FriendlyName) #97882

Closed
@TibAverus

Description

@TibAverus

Tested versions

4.3-stable 77dcf97 pulled from GitHub

System information

Windows 11 (23H2), llvm-mingw version 19.1.1

Issue description

Trying to build a release template from source will fail near the end with the following exception:

[100%] ERROR: ld.lld: error: duplicate symbol: PKEY_Device_FriendlyName
>>> defined at libdrivers.windows.template_release.x86_64.llvm.a(audio_driver_wasapi.windows.template_release.x86_64.llvm.o)
>>> defined at /home/runner/work/llvm-mingw/llvm-mingw/install/llvm-mingw/x86_64-w64-mingw32/include/functiondiscoverykeys_devpkey.h:21
>>>            libuuid.a(lib64_libuuid_a-uuid.o)
clang-19: error: linker command failed with exit code 1 (use -v to see invocation)

scons: *** [bin\godot.windows.template_release.x86_64.llvm.mono.exe] Error 1
scons: building terminated because of errors.

Command used to build:

scons platform=windows use_llvm=true use_mingw=yes mingw64_prefix=x86_64-w64-mingw32- arch=x86_64 target=template_release module_mono_enabled=yes

Steps to reproduce

  • Clone the godot source files
  • Switch to the 4.3-stable tag
  • Build using the following command: scons platform=windows use_llvm=true use_mingw=yes mingw64_prefix=x86_64-w64-mingw32- arch=x86_64 target=template_release module_mono_enabled=yes

Minimal reproduction project (MRP)

Not applicable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions