gpu.js icon indicating copy to clipboard operation
gpu.js copied to clipboard

When installing: error: 'numeric_limits' is not a member of 'std' (/angle/src/libANGLE/HandleAllocator.cpp)

Open KosRud opened this issue 3 years ago • 3 comments

When installing gpu.js on arch linux got following error:

../angle/src/libANGLE/HandleAllocator.cpp: In constructor 'gl::HandleAllocator::HandleAllocator()':
│ ../angle/src/libANGLE/HandleAllocator.cpp:27:52: error: 'numeric_limits' is not a member of 'std'
│    27 |     mUnallocatedList.push_back(HandleRange(1, std::numeric_limits<GLuint>::max()));

HandleAllocator.cpp - line 27

Fixed by adding #include <limits> to HandleAllocator.cpp.

KosRud avatar Apr 14 '22 17:04 KosRud

Same issue here. Also running on Arch. I'm not sure how to test this fix, but I'm also using Docker, so it doesn't affect me much. A PR would be appreciated though!

Vectorrent avatar Apr 18 '22 08:04 Vectorrent

@LuciferianInk use export CXXFLAGS='-include /usr/include/c++/11.2.0/limits' for your Docker env

smallst avatar May 02 '22 06:05 smallst

@smallst, I've run into this issue in multiple environments, and your solution has worked every time. Thank you!

As a note to anyone who may not know; your C++ version and install location may vary, depending on distro. You may need to adjust the above path accordingly.

Vectorrent avatar Nov 13 '22 12:11 Vectorrent