[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
>> -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.

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

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-users mailing list