3.9.3 build failure with gcc4.3
cmake-3.9.3 build fails with gcc4.3, whereas cmake-3.8.2 is fine.
Error below:
$ ../cmake-3.9.3/configure --prefix=$HOME/xc3
---------------------------------------------
CMake 3.9.3, Copyright 2000-2017 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc -std=gnu99
C++ compiler on this system is: g++ -std=gnu++0x
Makefile processor on this system is: gmake
g++ is GNU compiler
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
[snip]
g++ -std=gnu++0x -I/home/x/b/Bootstrap.cmk -I/home/x/cmake-3.9.3/Source -I/home/x/cmake-3.9.3/Source/LexerParser -I/home/x/cmake-3.9.3/Utilities -c /home/x/cmake-3.9.3/Source/cmComputeLinkDepends.cxx -o cmComputeLinkDepends.o
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, _Args&& ...) [with _Args = int, _Tp = cmComputeLinkDepends::DependSetList*]’:
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:703: instantiated from ‘void std::vector<_Tp, _Alloc>::push_back(_Args&& ...) [with _Args = int, _Tp = cmComputeLinkDepends::DependSetList*, _Alloc = std::allocator<cmComputeLinkDepends::DependSetList*>]’
/home/x/cmake-3.9.3/Source/cmComputeLinkDepends.cxx:289: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ext/new_allocator.h:114: error: invalid conversion from ‘int’ to ‘cmComputeLinkDepends::DependSetList*’
gmake: *** [cmComputeLinkDepends.o] Error 1