3.15.5: ccmake does not link when built with cmake
When cmake is build using cmake build fails.
When is used boostrap it is ok.
[ 69%] Linking CXX executable ../bin/cmake cd /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu/Source && /usr/bin/cmake -E cmake_link_script CMakeFiles/cmake.dir/link.txt --verbose=1 /usr/bin/g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin CMakeFiles/cmake.dir/cmakemain.cxx.o CMakeFiles/cmake.dir/cmcmd.cxx.o -o ../bin/cmake libCMakeLib.a libCMakeServerLib.a libCMakeLib.a kwsys/libcmsys.a -ldl /usr/lib64/libexpat.so /usr/lib64/libz.so /usr/lib64/libarchive.so /usr/lib64/libcurl.so /usr/lib64/libjsoncpp.so /usr/lib64/libuv.so /usr/lib64/librhash.so -lpthread /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source/LexerParser/cmFortranLexer.cxx:869:8: warning: type ‘struct yyguts_t’ violates the C++ One Definition Rule [-Wodr] 869 | struct yyguts_t | ^ /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source/LexerParser/cmCommandArgumentLexer.cxx:697: note: a different type is defined in another translation unit 697 | struct yyguts_t | /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source/LexerParser/cmFortranLexer.cxx:873:19: note: the first difference of corresponding definitions is field ‘yyextra_r’ 873 | YY_EXTRA_TYPE yyextra_r; | ^ /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source/LexerParser/cmCommandArgumentLexer.cxx:701: note: a field of same name but different type is defined in another translation unit 701 | YY_EXTRA_TYPE yyextra_r; | /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source/LexerParser/cmFortranLexer.cxx:869:8: note: type name ‘cmFortranParser_s’ should match type name ‘cmCommandArgumentParserHelper’ 869 | struct yyguts_t | ^ /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source/cmCommandArgumentParserHelper.h:13:7: note: the incompatible type is defined here 13 | class cmCommandArgumentParserHelper | ^ make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu' [ 69%] Built target cmake make -f Source/CMakeFiles/ccmake.dir/build.make Source/CMakeFiles/ccmake.dir/depend make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu' cd /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5 /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/Source /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu/Source /home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu/Source/CMakeFiles/ccmake.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu' make -f Source/CMakeFiles/ccmake.dir/build.make Source/CMakeFiles/ccmake.dir/build make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu' make[2]: *** No rule to make target '../form', needed by 'bin/ccmake'. Stop. make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu' make[1]: *** [CMakeFiles/Makefile2:1419: Source/CMakeFiles/ccmake.dir/all] Error 2 make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/cmake-3.15.5/x86_64-redhat-linux-gnu' make: *** [Makefile:166: all] Error 2
Edited by Brad King