bootstrap cmake in infinite loop on CentOS5-32bit
i need a fairly new cmake on an old CentOS-5-32bit installation. bootstrap cmake-3.22.6 compiles fine with gcc 9.3.0 and last CentOS5-glibc:
Name : glibc Relocations: (not relocatable)
Version : 2.5 Vendor: CentOS
Release : 123.el5_11.3 Build Date: Mon 17 Aug 2015 06:32:38 PM CEST
bootstrapped cmake can not build cmake - it goes into endless loop trace ends with:
cmake-3.22.6/Modules/CMakeDetermineCompilerId.cmake(828):
file(STRINGS cmake-3.22.6/CMakeFiles/3.22.6/CompilerIdC/a.out
CMAKE_C_COMPILER_ID_STRINGS LIMIT_COUNT 38 REGEX .?I.?N.?F.?O.?:.?[A-Za-z0-9_]+\[[^]]*\] )
i tracked down the loop the while-loop in cmFileCommand.cxx does never terminate:
// Parse strings out of the file.
int output_size = 0;
std::vector<std::string> strings;
std::string s;
while ((!limit_count || strings.size() < limit_count) &&
(limit_input < 0 || static_cast<int>(fin.tellg()) < limit_input) &&
fin) {
... never ends
can you help or is 32-bit no more possible?
Edited by Brad King