Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4034

CMake doesn't work to build compiler on MacOS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.11.0
    • Component/s: Compiler (General)
    • Labels:
    • Environment:

      macOS Sierra + CMake 3.7.2

      Description

      AS document said.

      When I ran cmake .. in /thrift/compiler/cpp/cmake-build, CMake reports error as below:

      – The C compiler identification is AppleClang 8.0.0.8000042
      – The CXX compiler identification is AppleClang 8.0.0.8000042
      – Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
      – Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc – works
      – Detecting C compiler ABI info
      – Detecting C compiler ABI info - done
      – Detecting C compile features
      – Detecting C compile features - done
      – Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
      – Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ – works
      – Detecting CXX compiler ABI info
      – Detecting CXX compiler ABI info - done
      – Detecting CXX compile features
      – Detecting CXX compile features - done
      – Found FLEX: /usr/bin/flex (found version "2.5.35")
      – Found BISON: /usr/local/bin/bison (found version "3.0.4")
      CMake Error at CMakeLists.txt:152 (install):
      install TARGETS given no RUNTIME DESTINATION for executable target
      "thrift-compiler".

      CMake Warning (dev) in CMakeLists.txt:
      No cmake_minimum_required command is present. A line of code such as

      cmake_minimum_required(VERSION 3.7)

      should be added at the top of the file. The version specified may be lower
      if you wish to support older CMake versions for this project. For more
      information run "cmake --help-policy CMP0000".
      This warning is for project developers. Use -Wno-dev to suppress it.

      – Configuring incomplete, errors occurred!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Robert Lu Robert Lu
                Reporter:
                Robert Lu Robert Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: