[swift-users] Bootstrapping ninja and building from source

Dmitri Gribenko gribozavr at gmail.com
Fri Dec 4 14:42:58 CST 2015

On Fri, Dec 4, 2015 at 12:36 PM, Lane Schwartz <dowobeha at gmail.com> wrote:
> I'm on Scientific Linux 7.1. I added the two instances of "which ninja" as
> you suggested, then re-ran build-script:
>> $ ./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
>> /home/lanes/swift/build/Ninja-DebugAssert/ninja-build/ninja
>> cmark: using standard linker
>> + which ninja
>> /home/lanes/swift/build/Ninja-DebugAssert/ninja-build/ninja
>> + cd /home/lanes/swift/build/Ninja-DebugAssert/cmark-linux-x86_64
>> + /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=clang
>> /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.

Interesting.  So ninja is found in both places, but CMake does not see
it.  What's your CMake version?


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-users mailing list