UE4SS-RE / RE-UE4SS

Injectable LUA scripting system, SDK generator, live property editor and other dumping utilities for UE4/5 games
http://docs.ue4ss.com/
MIT License
1.38k stars 188 forks source link

[BUG - Main] Unable to build glaze, and therefore UE4SS #600

Closed UE4SS closed 4 months ago

UE4SS commented 4 months ago

Using a clean clone, I get the following output when trying to generate the xmake project:

include\glaze/json/write.hpp(1308): fatal error C1001: Internal compiler error.

Full output:

Z:\repos\oss_ue4ss\ue4ss-test>xmake f --profilerFlavor=None --cxxflags="-DDO_ENSURE=0 -m "Game__Debug__Win64" -y
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.37.32824
  => install glaze v2.9.0 .. failed  

_5553007B9F4347E4B0C44DFC7D5E7A35.cpp
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\expected(12): warning STL4038: The contents of <expected> are available only with C++23 or later.
C:\Users\<Username>\AppData\Local\Temp\.xmake\240724\_5553007B9F4347E4B0C44DFC7D5E7A35.cpp(19): warning C4834: discarding return value of function with 'nodiscard' attribute
C:\Users\<Username>\AppData\Local\.xmake\packages\g\glaze\v2.9.0\f90707fe45a94e99893750f43297dab1\include\glaze/json/write.hpp(1308): fatal error C1001: Internal compiler error.
(compiler file 'D:\a\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\symbols.c', line 32907)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
  ${yellow}> in ${bright}C:\Users\<Username>\AppData\Local\Temp\.xmake\240724\_5553007B9F4347E4B0C44DFC7D5E7A35.cpp
if you want to get more verbose errors, please see:
  -> C:\Users\<Username>\AppData\Local\.xmake\cache\packages\2407\g\glaze\v2.9.0\installdir.failed\logs\install.txt
UE4SS commented 4 months ago

This appears to be a problem with MSVC. I updated MSVC and it now works:

checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33812
  => clone https://github.com/stephenberry/glaze.git v2.9.0 .. ok
  => install glaze v2.9.0 .. ok