RealTimeChris / DiscordCoreAPI

A bot library for Discord, written in C++, and featuring explicit multithreading through the usage of custom, asynchronous C++ CoRoutines.
https://discordcoreapi.com
MIT License
153 stars 17 forks source link

[vcpkg] Compile error C2593 #32

Closed FrankXie05 closed 1 year ago

FrankXie05 commented 1 year ago

Hello, I'm a member of Microsoft VCPKG, when I built this port in an internal version of Visual Studio, it failed with following errors:

F:\vcpkg\buildtrees\discordcoreapi\src\8b54cf9-9e5ee11bfa\Source\FoundationEntities.cpp(42): error C2593: 'operator =' is ambiguous
F:\vcpkg\buildtrees\discordcoreapi\src\8b54cf9-9e5ee11bfa\Include\discordcoreapi/Etf.hpp(438): note: could be 'DiscordCoreInternal::EtfSerializer &DiscordCoreInternal::EtfSerializer::=<uint64_t>(_T0) noexcept'
        with
        [
            _T0=uint64_t
        ]

And the same error with gcc/clang.

For us, this is by design. The code is no longer well-formed after P2113R0.

All compilers reject the code (like: 'S& operator=(C auto&& data) noexcept;' works):

@RealTimeChris Can we find a solution? :)

RealTimeChris commented 1 year ago

Sure let me check it out!

RealTimeChris commented 1 year ago

Pretty sure it's been fixed. https://github.com/RealTimeChris/DiscordCoreAPI/blob/dev/Include/discordcoreapi/Etf.hpp#L235-L490

FrankXie05 commented 1 year ago

@RealTimeChris Thanks a lot for your answer and fix. :)

RealTimeChris commented 1 year ago

Np.

FrankXie05 commented 1 year ago

@RealTimeChris Sorry to bother you again. We've been testing this for the past month and found that this issue persists, and it hasn't been fixed. Also, the link you provided has expired. 🫤

RealTimeChris commented 1 year ago

Here is a new link - and I thought you said the fix had worked last time - given that I've removed any usage of auto&& from the code. https://github.com/RealTimeChris/DiscordCoreAPI/blob/dev/Include/discordcoreapi/Utilities/Etf.hpp#L539-L776

FrankXie05 commented 1 year ago

No it didn't disappear, before we knew that in today's test.

RealTimeChris commented 1 year ago

So what is the error that is occurring?

FrankXie05 commented 1 year ago

Exact same error(latest results and logs).:

D:\buildtrees\discordcoreapi\src\v1.40-b8dbdbe84b.clean\Source\WebSocketEntities.cpp(302): error C2593: 'operator =' is ambiguous
D:\buildtrees\discordcoreapi\src\v1.40-b8dbdbe84b.clean\Include\discordcoreapi/Utilities/Etf.hpp(750): note: could be 'DiscordCoreInternal::EtfSerializer &DiscordCoreInternal::EtfSerializer::operator =<uint32_t>(ValueType) noexcept'
        with
        [
            ValueType=uint32_t
        ]

install-x64-windows-dbg-out.log

RealTimeChris commented 1 year ago

Have you tried building it with v1.50? Nvm it won't build with that version either I bet - give me a moment to work on it and I'll open a PR at Vcpkg.

FrankXie05 commented 1 year ago

@RealTimeChris The latest results are on Tuesday, and I will re-test the latest results locally immediately. (I saw the version v1.5 updated yesterday), wait a few minutes. :)

FrankXie05 commented 1 year ago

I'm sure the version I'm manually testing with is v1.50, and the error I get is the same. 😔

RealTimeChris commented 1 year ago

I've just updated the code - it should work with the latest release that's been pushed to main. Should I open a PR over at Vcpkg?

FrankXie05 commented 1 year ago

@RealTimeChris Yes, our tests are aligned with vcpkg repository version. If you fix this issue, submit a PR to vcpkg and we'll merge it. :)

RealTimeChris commented 1 year ago

How can I test if it's still there? Given that my installation of Visual Studio wasn't generating the error like yours.

FrankXie05 commented 1 year ago

Don't worry, I'm testing it (version v1.6.0).

RealTimeChris commented 1 year ago

How did it go?

FrankXie05 commented 1 year ago

@RealTimeChris

PS E:\CI_TEST\0712> ./vcpkg install discordcoreapi:x64-windows
Computing installation plan... 

The following packages will be built and installed:     
discordcoreapi:x64-windows -> 1.60                     
Detecting compiler hash for triplet x64-windows...    
Restored 0 package(s) from C:\Users\v-frankxie\AppData\Local\vcpkg\archives in 123 us. Use --debug to see more details.
Installing 1/1 discordcoreapi:x64-windows...                                                                            
Building discordcoreapi:x64-windows...     
-- Using cached RealTimeChris-DiscordCoreAPI-v1.60.tar.gz.  
-- Cleaning sources at E:/CI_TEST/0712/buildtrees/discordcoreapi/src/v1.60-93115c2271.clean. Use --editable to skip cleaning for the packages you specify.    
-- Extracting source E:/CI_TEST/0712/downloads/RealTimeChris-DiscordCoreAPI-v1.60.tar.gz                                  
-- Using source at E:/CI_TEST/0712/buildtrees/discordcoreapi/src/v1.60-93115c2271.clean                                   
-- Found external ninja('1.11.0').                                                                                   
-- Configuring x64-windows                                                                                          
-- Building x64-windows-dbg                                                                                        
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):                                     
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j9       
    Working Directory: E:/CI_TEST/0712/buildtrees/discordcoreapi/x64-windows-dbg                                        
    See logs for more information:                                                                                  
    E:\CI_TEST\0712\buildtrees\discordcoreapi\install-x64-windows-dbg-out.log   

Call Stack (most recent call first):                                                       
    installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)    
    installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)            
    ports/discordcoreapi/portfile.cmake:17 (vcpkg_cmake_install)                                                             
    scripts/ports.cmake:147 (include)  

Error log:

E:\CI_TEST\0712\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\FoundationEntities.cpp(48): error C2593: 'operator =' is ambiguous
E:\CI_TEST\0712\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Include\discordcoreapi/Utilities/Etf.hpp(746): note: could be 'DiscordCoreInternal::EtfSerializer &DiscordCoreInternal::EtfSerializer::operator =<int>(ValueType) noexcept'
        with
        [
            ValueType=int
        ]

install-x64-windows-dbg-out.log

RealTimeChris commented 1 year ago

How is it that you have your environment configured that it's able to produce these errors?

FrankXie05 commented 1 year ago

@RealTimeChris We will conduct automated testing for each MSVC version of Visual Studio. I can also obtain this MSVC version and kernel construction locally, and build the latest vcpkg by configuring the environment of this version.

RealTimeChris commented 1 year ago

Then why does my install look like this, despite using the same MSVC version:


[0/2] "C:\Program Files (x86)\CMake\bin\cmake.exe" -P C:\Vcpkg\buildtrees\discordcoreapi\x64-windows-dbg\CMakeFiles\VerifyGlobs.cmake
[1/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\CommandController.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\CommandController.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[2/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\GuildMemberEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\GuildMemberEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[3/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\GuildScheduledEventEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\GuildScheduledEventEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[4/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\CoRoutine.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\CoRoutine.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[5/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\AutoModerationEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\AutoModerationEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[6/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\FoundationEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\FoundationEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[7/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\DiscordCoreClient.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\DiscordCoreClient.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\DiscordCoreClient.cpp(288): warning C4018: '<': signed/unsigned mismatch
[8/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\DllMain.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\DllMain.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[9/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\Https.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\Https.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[10/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\ChannelEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\ChannelEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[11/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\ApplicationCommandEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\ApplicationCommandEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[12/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\GuildEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\GuildEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[13/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\StageInstanceEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\StageInstanceEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[14/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\InputEvents.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\InputEvents.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[15/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\VideoConnection.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\VideoConnection.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[16/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\StickerEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\StickerEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[17/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\UDPConnection.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\UDPConnection.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[18/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\RoleEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\RoleEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[19/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\ReactionEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\ReactionEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[20/34] C:/PROGRA~2/CMake/bin/cmcldeps.exe RC C:\Vcpkg\buildtrees\discordcoreapi\x64-windows-dbg\Library\VersionResource.rc Library\CMakeFiles\DiscordCoreAPI.dir\VersionResource.rc.res.d Library\CMakeFiles\DiscordCoreAPI.dir\VersionResource.rc.res "Note: including file: " "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -I C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -I C:\Vcpkg\installed\x64-windows\include -I C:\Vcpkg\installed\x64-windows\include\opus -I C:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -c65001 /DWIN32 -D_DEBUG /fo Library\CMakeFiles\DiscordCoreAPI.dir\VersionResource.rc.res C:\Vcpkg\buildtrees\discordcoreapi\x64-windows-dbg\Library\VersionResource.rc
[21/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\SoundCloudAPI.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\SoundCloudAPI.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[22/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\ThreadEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\ThreadEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[23/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\SongAPI.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\SongAPI.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[24/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\InteractionEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\InteractionEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[25/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\MessageEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\MessageEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[26/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\UserEntities.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\UserEntities.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[27/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install\Windows-Debug\include -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++latest -MDd /MP4 /arch:AVX2 /EHsc /bigobj /Zi /showIncludes /FoLibrary\CMakeFiles\DiscordCoreAPI.dir\__\Source\EventManager.cpp.obj /FdLibrary\CMakeFiles\DiscordCoreAPI.dir\ /FS -c C:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Source\EventManager.cpp
cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
[28/34] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DAVX_TYPE=126 -DDiscordCoreAPI_EXPORTS -IC:\Vcpkg\buildtrees\discordcoreapi\src\v1.60-93115c2271.clean\Library\..\Include -external:IC:\Vcpkg\installed\x64-windows\include -external:IC:\Vcpkg\installed\x64-windows\include\opus -external:IC:\Users\Chris\source\repos\Jsonifier\Install```
FrankXie05 commented 1 year ago

@RealTimeChris The real kernel is not released on the user side, and will not be released. Even the ci of vcpkg cannot be detected. Do you have any solution for this problem? I can help you test locally

RealTimeChris commented 1 year ago

I believe I do - let me push it as the latest release.

RealTimeChris commented 1 year ago

Pretty sure it's been fixed in the latest (v1.60) release.

FrankXie05 commented 1 year ago

Yes, it works for v1.60. :)

RealTimeChris commented 1 year ago

Awesome thanks! I will make a PR over at Vcpkg.

FrankXie05 commented 1 year ago

Welcome to submit a PR. Although I passed this method by manually compiling the file(FoundationEntities.cpp), an error occurred when updating vcpkg locally.

E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parse_Impl.hpp(53): error C2039: 'to_underlying': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\codecvt(23): note: see declaration of 'std'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parser.hpp(40): note: This diagnostic occurred in the compiler generated function 'void JsonifierInternal::ParseNoKeys::op(ValueType &,JsonifierInternal::StructuralIterator &)'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parse_Impl.hpp(54): error C2039: 'to_underlying': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\codecvt(23): note: see declaration of 'std'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parser.hpp(40): note: This diagnostic occurred in the compiler generated function 'void JsonifierInternal::ParseNoKeys::op(ValueType &,JsonifierInternal::StructuralIterator &)'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parse_Impl.hpp(222): error C2039: 'to_underlying': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\codecvt(23): note: see declaration of 'std'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parser.hpp(62): note: This diagnostic occurred in the compiler generated function 'void JsonifierInternal::ParseWithKeys::op(ValueType &,JsonifierInternal::StructuralIterator &)'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parse_Impl.hpp(223): error C2039: 'to_underlying': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\codecvt(23): note: see declaration of 'std'
E:\update\vcpkg\installed\x64-windows\include\jsonifier/Parser.hpp(62): note: This diagnostic occurred in the compiler generated function 'void JsonifierInternal::ParseWithKeys::op(ValueType &,JsonifierInternal::StructuralIterator &)'
E:\update\vcpkg\buildtrees\discordcoreapi\src\3e6053ed81-7ffb7c7f1e.clean\Include\discordcoreapi/Utilities.hpp(832): error C2039: 'to_underlying': is not a member of 'std'

install-x64-windows-dbg-out.log

FrankXie05 commented 1 year ago

Does it look like some header files for c++11 are missing? 🤔

FrankXie05 commented 1 year ago

Looks like it's back to the issue. https://github.com/RealTimeChris/Jsonifier/issues/2