<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif; color: rgb(0, 0, 0);">
<div style="color: rgb(0, 0, 0);">
<div>
<div><br>
</div>
</div>
</div>
<div style="color: rgb(0, 0, 0);">Hi,</div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
<div style="color: rgb(0, 0, 0);">When CMake is built with SolarisStudio 12.4, cmake tool is unusable. Even the most simple test failed at generation time!</div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
<div style="color: rgb(0, 0, 0);">This simple CMakeLists.txt</div>
<div>
<div><font color="#ff0000">cmake_minimum_required (VERSION 3.3.2)</font></div>
<div><font color="#ff0000">project (Test LANGUAGES CXX)</font></div>
</div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
<div style="color: rgb(0, 0, 0);">Generates the following error:</div>
<div>
<div><font color="#ff0000">-- The CXX compiler identification is SunPro 5.13.0</font></div>
<div><font color="#ff0000">-- Check for working CXX compiler: /opt/solarisstudio12.4/bin/CC</font></div>
<div><font color="#ff0000">CMake Error: CMake can not determine linker language for target: cmTC_d9073</font></div>
<div><font color="#ff0000">CMake Error: Cannot determine link language for target "cmTC_d9073".</font></div>
<div><font color="#ff0000">CMake Error: Internal CMake error, TryCompile generation of cmake failed</font></div>
<div><font color="#ff0000">-- Check for working CXX compiler: /opt/solarisstudio12.4/bin/CC -- broken</font></div>
<div><font color="#ff0000">CMake Error at /usr/u/i051466/INSTALL/share/cmake-3.3/Modules/CMakeTestCXXCompiler.cmake:54 (message):</font></div>
<div><font color="#ff0000">  The C++ compiler "/opt/solarisstudio12.4/bin/CC" is not able to compile a</font></div>
<div><font color="#ff0000">  simple test program.</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">  It fails with the following output:</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">  CMake will not be able to correctly generate this project.</font></div>
<div><font color="#ff0000">Call Stack (most recent call first):</font></div>
<div><font color="#ff0000">  CMakeLists.txt:4 (project)</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">-- Configuring incomplete, errors occurred!</font></div>
</div>
<div>
<div><font color="#ff0000">See also "/usr/u/i051466/tests/cmake/build/CMakeFiles/CMakeOutput.log".</font></div>
<div><font color="#ff0000">See also "/usr/u/i051466/tests/cmake/build/CMakeFiles/CMakeError.log".</font></div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
</div>
<div style="color: rgb(0, 0, 0);">Unfortunately, there is absolutely nothing in the CMakeError.log file!</div>
<div style="color: rgb(0, 0, 0);">I have no real idea what is the problem but here are some elements:</div>
<ul>
<li>Same CMake sources (3.3.2) built with SolarisStudio !2.2 (C++ 5.11) produce a perfectly usable cmake</li><li>When SolarisStudio 12.4 is used (C++ 5.13), I notice that cmake bootstrap tool select the most advanced mode of the compiler (I.e. c++11).</li><li>May be the problem is linked to the fact that, currently, C++11 mode support is broken for SolarisStudio 12.4 (see a previous mail sent by me on this subject) because if CMake rely on this mode internally for its tests, for sure all will failed.</li></ul>
<div><br>
</div>
<div>Marc</div>
<div><br>
</div>
</body>
</html>