[cmake-developers] [CMake][BUG] CMake built with SolarisStudio 12.4 is unusable

CHEVRIER, Marc marc.chevrier at sap.com
Fri Sep 25 04:18:50 EDT 2015


Hi,

When CMake is built with SolarisStudio 12.4, cmake tool is unusable. Even the most simple test failed at generation time!

This simple CMakeLists.txt
cmake_minimum_required (VERSION 3.3.2)
project (Test LANGUAGES CXX)

Generates the following error:
-- The CXX compiler identification is SunPro 5.13.0
-- Check for working CXX compiler: /opt/solarisstudio12.4/bin/CC
CMake Error: CMake can not determine linker language for target: cmTC_d9073
CMake Error: Cannot determine link language for target "cmTC_d9073".
CMake Error: Internal CMake error, TryCompile generation of cmake failed
-- Check for working CXX compiler: /opt/solarisstudio12.4/bin/CC -- broken
CMake Error at /usr/u/i051466/INSTALL/share/cmake-3.3/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "/opt/solarisstudio12.4/bin/CC" is not able to compile a
  simple test program.

  It fails with the following output:


  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)

-- Configuring incomplete, errors occurred!
See also "/usr/u/i051466/tests/cmake/build/CMakeFiles/CMakeOutput.log".
See also "/usr/u/i051466/tests/cmake/build/CMakeFiles/CMakeError.log".

Unfortunately, there is absolutely nothing in the CMakeError.log file!
I have no real idea what is the problem but here are some elements:

  *   Same CMake sources (3.3.2) built with SolarisStudio !2.2 (C++ 5.11) produce a perfectly usable cmake
  *   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).
  *   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.

Marc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150925/7a5cbd05/attachment.html>


More information about the cmake-developers mailing list