Uploaded image for project: 'Swift'
  1. Swift
  2. SR-58

Problem building using bootstrapped ninja

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:
    • Environment:

      Scientific Linux 7.1

      Description

      Failure to build when using a bootstrapped ninja.

      Steps to reproduce:

      • On Scientific Linux 7.1, install llvm, llvm-devel, clang, and cmake (version 2.8.11)
      • Create new directory for swift repos, and in that directory, clone all swift-related repos from github, as per README.md in the swift repo
      • In that same new directory, also clone ninja
      • Run ./swift/utils/build-script

      See also swift-users mailing list thread titled "Bootstrapping ninja and building from source" started on Fri, 4 Dec 2015.

      Results of running ./swift/utils/build-script:

      which: no ninja in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/lanes/.local/bin:/home/lanes/bin)
      Building the standard library for: swift-stdlib-linux-x86_64
      Running Swift tests for: check-swift-linux-x86_64
      + rm -rf /home/lanes/swift/build/Ninja-DebugAssert/ninja-build
      + cp -r /home/lanes/swift/ninja /home/lanes/swift/build/Ninja-DebugAssert/ninja-build
      ++ uname -s
      + [[ Linux == \D\a\r\w\i\n ]]
      + cd /home/lanes/swift/build/Ninja-DebugAssert/ninja-build
      + python ./configure.py --bootstrap
      bootstrapping ninja...
      warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build.
      wrote build.ninja.
      bootstrap complete. rebuilding...
      [24/24] LINK ninja
      cmark: using standard linker
      + cd /home/lanes/swift/build/Ninja-DebugAssert/cmark-linux-x86_64
      + /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=clang -DCMAKE_CXX_COMPILER:PATH=clang++ -DCMAKE_BUILD_TYPE:STRING=Debug /home/lanes/swift/cmark
      CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
      CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
      Missing variable is:
      CMAKE_C_COMPILER_ENV_VAR
      CMake Error: Could not find cmake module file:/home/lanes/swift/build/Ninja-DebugAssert/cmark-linux-x86_64/CMakeFiles/2.8.11/CMakeCCompiler.cmake
      CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
      Missing variable is:
      CMAKE_CXX_COMPILER_ENV_VAR
      CMake Error: Could not find cmake module file:/home/lanes/swift/build/Ninja-DebugAssert/cmark-linux-x86_64/CMakeFiles/2.8.11/CMakeCXXCompiler.cmake
      – Configuring incomplete, errors occurred!
      ./swift/utils/build-script: command terminated with a non-zero exit status 1, aborting

        Attachments

          Activity

            People

            • Assignee:
              smikes Sam Mikes
              Reporter:
              dowobeha Lane Schwartz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: