Foundation: build.ninja No such file or directory


(Mohit Athwani) #1

I am trying to build Foundation and is anybody else getting build.ninja: No
such file or directory error?

I just cloned everything from github. This did not happen with me when I
worked on my previous pull request.

Cheers!

Mohit


(Mohit Athwani) #2

I am trying to build Foundation and is anybody else getting build.ninja: No such file or directory error?

I just cloned everything from github. This did not happen with me when I worked on my previous pull request.

Cheers!

···

--
Mohit Athwani
http://about.me/mohitathwani


(Philippe Hausler) #3

What host os are you attempting to build on?

For linux you need to have a configured Foundation initially to run ninja. This means that you need to build swift with the build-script including --foundation and --libdispatch and --xctest

After one successful build you can run ninja in the Foundation directory to build it, and if you need to modify the build scripts (for example including additional files) you can run ./configure --reconfigure

···

On Mar 28, 2017, at 12:28 PM, Mohit Athwani via swift-users <swift-users@swift.org> wrote:

I am trying to build Foundation and is anybody else getting build.ninja: No such file or directory error?

I just cloned everything from github. This did not happen with me when I worked on my previous pull request.

Cheers!

--
Mohit Athwani
http://about.me/mohitathwani
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Mohit Athwani) #4

Hi Phillipe,

I'm doing this on Ubuntu 16.04 LTS and I first ran:

swift/utils/build-script --xctest --foundation -t

and then

cd swift-corelibs-foundation
ninja

I wonder why this is happening!

Thanks for your help!

Mohit

···

On Tue, Mar 28, 2017 at 12:31 PM, Philippe Hausler <phausler@apple.com> wrote:

What host os are you attempting to build on?

For linux you need to have a configured Foundation initially to run ninja.
This means that you need to build swift with the build-script including
--foundation and --libdispatch and --xctest

After one successful build you can run ninja in the Foundation directory
to build it, and if you need to modify the build scripts (for example
including additional files) you can run ./configure --reconfigure

On Mar 28, 2017, at 12:28 PM, Mohit Athwani via swift-users < > swift-users@swift.org> wrote:

I am trying to build Foundation and is anybody else getting build.ninja:
No such file or directory error?

I just cloned everything from github. This did not happen with me when I
worked on my previous pull request.

Cheers!

--
Mohit Athwani
http://about.me/mohitathwani
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users