cmake installation on osx: missing files & strange layout

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      on osx, our jenkins jobs fail when trying to build with the automatically installed cmake:

      ...
           [exec] CMake Error: Could not find cmake module file: CMakeSystemSpecificInitialize.cmake
           [exec] CMake Error at /Volumes/data/tools/cmake/share/cmake-3.3/Modules/CMakeCompilerIdDetection.cmake:38 (list):
           [exec]   list sub-command REMOVE_ITEM requires two or more arguments.
           [exec] Call Stack (most recent call first):
           [exec]   /Volumes/data/tools/cmake/share/cmake-3.3/Modules/CMakeDetermineCompilerId.cmake:108 (compiler_id_detection)
           [exec]   /Volumes/data/tools/cmake/share/cmake-3.3/Modules/CMakeDetermineCompilerId.cmake:126 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
           [exec]   /Volumes/data/tools/cmake/share/cmake-3.3/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
           [exec]   /Volumes/data/tools/cmake/share/cmake-3.3/Modules/CMakeDetermineCCompiler.cmake:109 (CMAKE_DETERMINE_COMPILER_ID)
           [exec]   CMakeLists.txt:8 (project)
      

      the error message indicates missing cmake files:
      the installed cmake has a strange layout and some files seem to be missing. observe the difference (e.g. missing *-DetermineCompiler.cmake files) between the jenkins-installed cmake and the one installed via "port":

      PORT

      zrh-jnk-osx10-64-b1:~ root# ls /opt/local/share/cmake-3.3/Modules/Compiler/
      ADSP-DetermineCompiler.cmake               GNU.cmake                                  QCC-C.cmake
      Absoft-Fortran.cmake                       HP-ASM.cmake                               QCC-CXX.cmake
      AppleClang-ASM.cmake                       HP-C-DetermineCompiler.cmake               QCC.cmake
      AppleClang-C-FeatureTests.cmake            HP-C.cmake                                 SCO-C.cmake
      AppleClang-C.cmake                         HP-CXX-DetermineCompiler.cmake             SCO-CXX.cmake
      AppleClang-CXX-FeatureTests.cmake          HP-CXX.cmake                               SCO-DetermineCompiler.cmake
      AppleClang-CXX.cmake                       HP-Fortran.cmake                           SCO.cmake
      AppleClang-DetermineCompiler.cmake         IAR-ASM.cmake                              SDCC-C-DetermineCompiler.cmake
      Borland-DetermineCompiler.cmake            IAR-C.cmake                                SunPro-ASM.cmake
      

      JENKINS CMAKEBUILDER

      zrh-jnk-osx10-64-b1:~ root# ls /Volumes/data/tools/cmake/share/cmake-3.3/Modules/Compiler/
      Absoft-Fortran.cmake    GHS-CXX.cmake           IAR.cmake               PGI.cmake               SunPro-Fortran.cmake
      AppleClang-ASM.cmake    GNU-ASM.cmake           Intel-ASM.cmake         PathScale-C.cmake       TI-ASM.cmake
      AppleClang-C.cmake      GNU-C.cmake             Intel-C.cmake           PathScale-CXX.cmake     TI-C.cmake
      AppleClang-CXX.cmake    GNU-CXX.cmake           Intel-CXX.cmake         PathScale.cmake         TI-CXX.cmake
      Clang-ASM.cmake         GNU-Fortran.cmake       Intel-Fortran.cmake     QCC-C.cmake             TinyCC-C.cmake
      Clang-C.cmake           GNU.cmake               MIPSpro-C.cmake         QCC-CXX.cmake           VisualAge-C.cmake
      Clang-CXX.cmake         HP-ASM.cmake            MIPSpro-CXX.cmake       QCC.cmake               VisualAge-CXX.cmake
      

      also, the whole package layout seems weird, compare the unpacked tar ball vs the cmake installed by cmakebuilder:

      UNPACKED

      cmake-3.3.2-Darwin-x86_64
      └── CMake.app
          └── Contents
              ├── Frameworks
              ├── Info.plist
              ├── MacOS
              ├── Resources
              ├── bin
              ├── doc
              ├── man
              └── share
      

      CMAKEBUILDER

      /Volumes/data/tools/cmake/
      ├── Frameworks
      │   ├── QtCore.framework
      │   └── QtGui.framework
      ├── Info.plist
      ├── MacOS
      │   └── CMake
      ├── Resources
      │   └── CMakeSetup.icns
      ├── bin
      │   ├── ccmake
      │   ├── cmake
      │   ├── cmake-gui -> ../MacOS/CMake
      │   ├── cmakexbuild
      │   ├── cpack
      │   └── ctest
      ├── cmake-3.3.2-Darwin-x86_64
      │   └── CMake.app
      └── share
          ├── aclocal
          └── cmake-3.3
      

      why the differences?

            Assignee:
            Martin Weber
            Reporter:
            mistafunk
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: