<div dir="ltr"><div><br></div><div>Please consider this as FYI if you're interested in running cmake on HPUX 11iv3:</div><div><br></div><div>The nightly HPUX 11iv3 test run get an error in the BuildDepends test (<a href="http://open.cdash.org/index.php?project=CMake">http://open.cdash.org/index.php?project=CMake</a>).  This fails virtually all the time, however, for some reason, a successful run does occasionally happen.  This appears to be an issue with the native "make" command on HPUX at least according to the unit tests I've done.</div>
<div><br></div><div>On the surface this appears to be an error in the LINK_DEPENDS_NO_SHARED property but that is not the case, the problem is more fundamental.  In fact, just about the simplest test case for dependency checking (building a program with a single file) needs to be built twice to recognize that it is up-to-date.</div>
<div><br></div><div>My test case ultimately was simply:</div><div><br></div><div>-------------------------------------------------------------------</div><div><div>cmake_minimum_required(VERSION 2.8.12.2)</div><div>project(MyBuildDepends)</div>
<div><br></div><div>add_executable(prog prog.c)</div></div><div>--------------------------------------------------------------------</div><div><br></div><div>With this, I run the native "make" command twice and, each time it will re-link "prog":</div>
<div><br></div><div><div>--------------------------------------------------------------------</div></div><div><div># cmake ..</div><div>-- The C compiler identification is HP 6.25.0</div><div>-- The CXX compiler identification is HP 6.25.0</div>
<div>-- Check for working C compiler: /bin/cc</div><div>-- Check for working C compiler: /bin/cc -- works</div><div>-- Detecting C compiler ABI info</div><div>-- Detecting C compiler ABI info - done</div><div>-- Check for working CXX compiler: /bin/c++</div>
<div>-- Check for working CXX compiler: /bin/c++ -- works</div><div>-- Detecting CXX compiler ABI info</div><div>-- Detecting CXX compiler ABI info - done</div><div>-- Configuring done</div><div>-- Generating done</div><div>
-- Build files have been written to: /home/eberge/projects/cmake/BuildDepends-failure/testcase2/build</div><div># make</div><div>Scanning dependencies of target prog</div><div>[100%] Building C object CMakeFiles/prog.dir/prog.c.o</div>
<div>Linking C executable prog</div><div>[100%] Built target prog</div><div># make</div><div>Linking C executable prog</div><div>[100%] Built target prog</div><div># make</div><div>[100%] Built target prog</div><div># </div>
</div><div>--------------------------------------------------------------------<br></div><div><br></div><div>Actually the odd thing is that it appears to have a "domino effect" where the first "make" builds the .o and links the executable, the 2nd only links the executable, and the last will finally do nothing.</div>
<div><br></div><div>Since I had gmake on the system I gave that a try, and gmake works just fine.</div><div><br></div><div>I'm not really looking for a solution for this, but just in case others run into problems on HPUX 11iv3 I thought it was worth saving you the hours it look me to run this down.</div>
<div><br></div><div>For now I plan on setting CMAKE_MAKE_PROGRAM to gmake to allow the nightly 11iv3 tests to run successfully (but we'll see how well that expectation pans out tonight...).</div><div><br></div><div>I did look around for a potential bugfix for make in HPUX but I didn't find anything but that might be because I don't know how to navigate the HPUX labyrith :-)</div>
<div><br></div><div>Eric Berge</div><div><br></div><div><br></div></div>