[swift-users] Bootstrapping ninja and building from source
Lane Schwartz
dowobeha at gmail.com
Fri Dec 4 14:44:43 CST 2015
cmake version 2.8.11
On Fri, Dec 4, 2015 at 2:42 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> 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>*/
>
--
When a place gets crowded enough to require ID's, social collapse is not
far away. It is time to go elsewhere. The best thing about space travel
is that it made it possible to go elsewhere.
-- R.A. Heinlein, "Time Enough For Love"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151204/b39f4ce0/attachment.html>
More information about the swift-users
mailing list