Open gaozhou opened 1 year ago
Interesting. It sounds like your computer is running out of memory. How much RAM do you have? I'll try to test the build on a VM with limited memory.
Interesting. It sounds like your computer is running out of memory. How much RAM do you have? I'll try to test the build on a VM with limited memory.
40GB
That's far, far more than enough. Now I'm extremely curious what this could possibly be.
I can't think of an obvious way to debug this. Can you?
I'll do some googling and see if it turns up anything.
That's far, far more than enough. Now I'm extremely curious what this could possibly be.
I can't think of an obvious way to debug this. Can you?
I'll do some googling and see if it turns up anything.
"C:\Program Files\JetBrains\CLion 2023.1.4\bin\cmake\win\x64\bin\cmake.exe" --build D:\projects\noh\cmake-build-release --target all -j 6 [1/510] Building CXX object CMakeFiles\k2.dir\src\k2\c_servergamelib.cpp.obj FAILED: CMakeFiles/k2.dir/src/k2/c_servergamelib.cpp.obj C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx86\x86\cl.exe /nologo /TP -DK2_DLL -DK2_EXPORTS -DNDEBUG -D_HAS_DEPRECATED_ALLOCATOR_MEMBERS -D_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS -Dk2_EXPORTS -ID:\projects\noh\lib\fmodex\api\core\inc -ID:\projects\noh\lib\SpeedTree\cmake..\include -ID:\projects\noh\cmake-build-release\vcpkg_installed\x86-windows\include -ID:\projects\noh\cmake-build-release\vcpkg_installed\x86-windows\include\libxml2 -ID:\projects\noh\lib\libpng\include -ID:\projects\noh\lib\k2public /DWIN32 /D_WINDOWS /EHsc /Zi /O2 /Ob1 /DNDEBUG -MD -std:c++20 /YuD:/projects/noh/cmake-build-release/CMakeFiles/k2.dir/cmake_pch.hxx /FpD:/projects/noh/cmake-build-release/CMakeFiles/k2.dir/./cmake_pch.cxx.pch /FID:/projects/noh/cmake-build-release/CMakeFiles/k2.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\k2.dir\src\k2\c_servergamelib.cpp.obj /FdCMakeFiles\k2.dir\ /FS -c D:\projects\noh\src\k2\c_servergamelib.cpp c1xx: error C3859: Failed to create virtual memory for PCH c1xx: note: PCH: Unable to obtain requested memory block c1xx: note: please visit https://aka.ms/pch-help for more details c1xx: fatal error C1076: compiler limit: internal heap limit reached
What is your visual studio version and CLion version? According to https://aka.ms/pch-help one fix is to update visual studio.
I’d like to support older versions of VS though.
On Mon, Jul 10, 2023 at 7:09 AM tallship @.***> wrote:
That's far, far more than enough. Now I'm extremely curious what this could possibly be.
I can't think of an obvious way to debug this. Can you?
I'll do some googling and see if it turns up anything.
"C:\Program Files\JetBrains\CLion 2023.1.4\bin\cmake\win\x64\bin\cmake.exe" --build D:\projects\noh\cmake-build-release --target all -j 6 [1/510] Building CXX object CMakeFiles\k2.dir\src\k2\c_servergamelib.cpp.obj FAILED: CMakeFiles/k2.dir/src/k2/c_servergamelib.cpp.obj C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx86\x86\cl.exe /nologo /TP -DK2_DLL -DK2_EXPORTS -DNDEBUG -D_HAS_DEPRECATED_ALLOCATOR_MEMBERS -D_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS -Dk2_EXPORTS -ID:\projects\noh\lib\fmodex\api\core\inc -ID:\projects\noh\lib\SpeedTree\cmake..\include -ID:\projects\noh\cmake-build-release\vcpkg_installed\x86-windows\include -ID:\projects\noh\cmake-build-release\vcpkg_installed\x86-windows\include\libxml2 -ID:\projects\noh\lib\libpng\include -ID:\projects\noh\lib\k2public /DWIN32 /D_WINDOWS /EHsc /Zi /O2 /Ob1 /DNDEBUG -MD -std:c++20 /YuD:/projects/noh/cmake-build-release/CMakeFiles/k2.dir/cmake_pch.hxx /FpD:/projects/noh/cmake-build-release/CMakeFiles/k2.dir/./cmake_pch.cxx.pch /FID:/projects/noh/cmake-build-release/CMakeFiles/k2.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\k2.dir\src\k2\c_servergamelib.cpp.obj /FdCMakeFiles\k2.dir\ /FS -c D:\projects\noh\src\k2\c_servergamelib.cpp c1xx: error C3859: Failed to create virtual memory for PCH c1xx: note: PCH: Unable to obtain requested memory block c1xx: note: please visit https://aka.ms/pch-help for more details c1xx: fatal error C1076: compiler limit: internal heap limit reached
— Reply to this email directly, view it on GitHub https://github.com/shawwn/noh/issues/3#issuecomment-1628833910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOR4HIKGHHHI2RE44U7HTXPPWHRANCNFSM6AAAAAA2CVJNZU . You are receiving this because you commented.Message ID: @.***>
from what i understood, the memory allocated for the precompiled headers is too small. what you can do to fix it is add:
/Zm 150
to the line where you're compiling the headers, it's not an issue with your RAM or SSD. (if that still doesn't work, just make the 150 a bigger number till it does)
c1xx: error C3859: unable to create virtual memory for PCH"