<div>Hello,</div>
<div> </div>
<div>I&#39;ve been trying to set up CMake on different build machines.<br></div>
<div> </div>
<div>Everything went perfectly on Linux machines (32/64bit),</div>
<div> </div>
<div>however, CMake gave me the following error message during configuration on HP IA64.</div>
<div> </div>
<div>-- The C compiler identification is GNU<br>-- Check for working C compiler: /usr/local/bin/gcc<br>-- Check for working C compiler: /usr/local/bin/gcc -- broken<br>CMake Error at .../cmake-2.8.1-HP-UX-9000_785/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):<br>

  The C compiler &quot;/usr/local/bin/gcc&quot; is not able to compile a simple test program.<br><br>  It fails with the following output:<br><br>   Change Dir: /data5/obmtp4/tmp/ofsrc5_build/CMakeFiles/CMakeTmp<br><br>  <br>

<br>  Run Build Command:/usr/local/bin/gmake &quot;cmTryCompileExec/fast&quot;<br><br>  /usr/local/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make<br>  CMakeFiles/cmTryCompileExec.dir/build<br><br>  gmake[1]: Entering directory<br>

  `/data5/obmtp4/tmp/ofsrc5_build/CMakeFiles/CMakeTmp&#39;<br><br>  /data5/obmtp4/cmake-2.8.1-HP-UX-9000_785/bin/cmake -E cmake_progress_report<br>  /data5/obmtp4/tmp/ofsrc5_build/CMakeFiles/CMakeTmp/CMakeFiles 1<br><br>
  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o<br>
<br>  /usr/local/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c<br>  /data5/obmtp4/tmp/ofsrc5_build/CMakeFiles/CMakeTmp/testCCompiler.c<br><br>  Linking C executable cmTryCompileExec<br><br>  /data5/obmtp4/cmake-2.8.1-HP-UX-9000_785/bin/cmake -E cmake_link_script<br>

  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1<br><br>  /usr/local/bin/gcc CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o<br>  cmTryCompileExec -Wl,+s,-E,+nodefaultrpath -Wl,+b/usr/lib<br><br><b>  ld: Can&#39;t find library or mismatched ABI for -lc</b><br>

<br>  Fatal error.<br><br><br>So, I added the following two lines in HP-UX.cmake file to solve the problem:<br><br>SET(CMAKE_C_COMPILER /usr/bin/cc)   ==&gt;  Replace C compiler<br>SET(CMAKE_C_FLAGS &quot;+DD64&quot;)            ==&gt;  Added +DD64 compiler option for IA64.<br>

<br>After inserting these lines, CMake could compile the sample C source file.<br><br>To compare with other HP machine I tried the same in HP RISC machine, and it compiled fine without those lines.<br><br>Is there anything that I need to set up before compiling on HP IA64 machine?<br>

<br>Also, I wonder why CMake would not add &quot;+DD64&quot; compile option automatically.<br><br>If possible, I would prefer the way that CMake add necessary compile options by itself.<br><br>Thank you very much,<br><br>

Won<br></div>