MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

Redefinition error in windows.foundation.h

Open raedrizqie opened this issue 4 months ago • 10 comments

Description / Steps to reproduce the issue

Got redefinition error when compiling qt6-webengine:

2024-10-10T10:10:44.2246546Z In file included from gen/base/base_jumbo_44.cc:7:
2024-10-10T10:10:44.2559932Z In file included from ./../../../../../qtwebengine-everywhere-src-6.7.2/src/3rdparty/chromium/base/time/time_win.cc:36:
2024-10-10T10:10:44.3191789Z D:/M/msys64/clang64/include/windows.foundation.h:11730:13: error: redefinition of 'IReference<unsigned char>'
2024-10-10T10:10:44.3681854Z  11730 |             IReference<boolean > : IReference_impl<boolean >
2024-10-10T10:10:44.4331546Z        |             ^~~~~~~~~~~~~~~~~~~~
2024-10-10T10:10:44.4559114Z D:/M/msys64/clang64/include/windows.foundation.h:10022:13: note: previous definition is here
2024-10-10T10:10:44.5218434Z  10022 |             IReference<BYTE > : IReference_impl<BYTE >
2024-10-10T10:10:44.5958990Z        |             ^
2024-10-10T10:10:44.6170092Z D:/M/msys64/clang64/include/windows.foundation.h:11738:1: error: redefinition of '__mingw_uuidof_s<ABI::Windows::Foundation::IReference<BYTE>>'
2024-10-10T10:10:44.6628143Z  11738 | __CRT_UUID_DECL(__FIReference_1_boolean, 0x3c00fd60, 0x2950, 0x5939, 0xa2,0x1a, 0x2d,0x12,0xc5,0xa0,0x1b,0x8a)
2024-10-10T10:10:44.7097306Z        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-10-10T10:10:44.7572017Z D:/M/msys64/clang64/include/_mingw.h:534:23: note: expanded from macro '__CRT_UUID_DECL'
2024-10-10T10:10:44.7879347Z   534 |     template<> struct __mingw_uuidof_s<type> {                   \
2024-10-10T10:10:44.8657538Z       |                       ^~~~~~~~~~~~~~~~~~~~~~
2024-10-10T10:10:44.8971877Z D:/M/msys64/clang64/include/windows.foundation.h:10030:1: note: previous definition is here
2024-10-10T10:10:44.9127173Z  10030 | __CRT_UUID_DECL(__FIReference_1_BYTE, 0xe5198cc8, 0x2873, 0x55f5, 0xb0,0xa1, 0x84,0xff,0x9e,0x4a,0xad,0x62)
2024-10-10T10:10:44.9594902Z        | ^
2024-10-10T10:10:44.9908560Z D:/M/msys64/clang64/include/_mingw.h:534:23: note: expanded from macro '__CRT_UUID_DECL'
2024-10-10T10:10:45.0689448Z   534 |     template<> struct __mingw_uuidof_s<type> {                   \
2024-10-10T10:10:45.1157802Z       |                       ^

Expected behavior

Compiles without error.

Actual behavior

Compile error.

Verification

  • [X] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • [X] MINGW64
  • [ ] MINGW32
  • [X] UCRT64
  • [X] CLANG64
  • [ ] CLANGARM64

Are you willing to submit a PR?

No response

raedrizqie avatar Oct 11 '24 05:10 raedrizqie