<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>For a long time, we’ve been stuck on CMake 2.8 because later versions silently hang for us. This is doing in-source builds, which I know are considered Evil, but we can’t move off them yet.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>We had another problem (see my earlier posts with Subject: Dependency weirdness) that turned out to be related to a bug in CMake, Cygwin, or Windows, where the dependencies worked if the source directory had a period in the name and didn’t if not, due to a case mismatch in the CMakeLists.txt.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>That led me to wonder whether that was causing the hang. I do not believe it does. I installed CMake 3.0.1 and did NOT customize it to support the cross-compiler we’re using, then switched to it and tried that. Hang. This is the CMake command:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>cmake -DCMAKE_TOOLCHAIN_FILE:string="%~dp0\zosport.cmake" -G"Unix Makefiles" .\<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Hmm, sez I, I wonder if it’s due to the lack of cross-compiler support. I know, I’ll copy the CMakeLists.txt to c:\temp and try it there. Hang.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>What about 2.8? I removed (well, renamed) the compiler support and tried it:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>C:\temp>cmake -DCMAKE_TOOLCHAIN_FILE:string="%~dp0\zosport.cmake" -G"Unix Makefiles" .\<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:92 (MESSAGE):<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>  Could not find toolchain file: %~dp0\zosport.cmake<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Call Stack (most recent call first):<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>  CMakeLists.txt:8 (project)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Missing variable is:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMAKE_C_COMPILER_ENV_VAR<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Missing variable is:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMAKE_C_COMPILER<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Could not find cmake module file:C:/temp/CMakeFiles/CMakeCCompiler.cmake<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: cmListFileCache: error can not open file C:/temp<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Could not find cmake module file:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Missing variable is:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMAKE_ASM_DIGNUS_COMPILER_ENV_VAR<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Missing variable is:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMAKE_ASM_DIGNUS_COMPILER<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Could not find cmake module file:C:/temp/CMakeFiles/CMakeASM_DIGNUSCompiler.cmake<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Missing variable is:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMAKE_CXX_COMPILER_ENV_VAR<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>Missing variable is:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMAKE_CXX_COMPILER<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Could not find cmake module file:C:/temp/CMakeFiles/CMakeCXXCompiler.cmake<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: Could not find cmake module file:CMakeASM_DIGNUSInformation.cmake<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: CMAKE_ASM_DIGNUS_COMPILER not set, after EnableLanguage<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Courier New";color:black'>-- Configuring incomplete, errors occurred!<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Seems like the hang in 3.0.1 is wrong, but I don’t have the skills to tell. And since the Toolchain file is not missing in the actual path, this isn’t necessarily the same hang, but it seems worth understanding. The hang *<b>feels</b>* like something is getting a null input and is thus trying to read from stdin, though typing junk on the console doesn’t make it happy, even with a ^Z after it.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>Any ideas?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#1F497D'>…phsiii<o:p></o:p></span></p></div></body></html>