[swift-users] Error building Swift

Brandon Knope bknope at me.com
Wed Feb 17 15:59:58 CST 2016

Sure thing! I really appreciate the help!

bknope$ utils/build-script
Building the standard library for: swift-test-stdlib-macosx-x86_64

cmark: using standard linker
+ cd '/Users/bknope/Documents/Development/Home Dev/Swift Open Source/Git/build/Ninja-DebugAssert/cmark-macosx-x86_64'
+ /opt/local/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_BUILD_TYPE:STRING=Debug '-DCMAKE_C_FLAGS= ' '-DCMAKE_CXX_FLAGS= ' -DCMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 '/Users/bknope/Documents/Development/Home Dev/Swift Open Source/Git/cmark'
-- The C compiler identification is AppleClang
-- The CXX compiler identification is AppleClang
-- Check for working C compiler using: Ninja
CMake Error:
  The detected version of Ninja () is less than the version of Ninja required
  by CMake (1.3).

CMake Error: Internal CMake error, TryCompile generation of cmake failed
-- Check for working C compiler using: Ninja -- broken
CMake Error at /opt/local/share/cmake-3.4/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler
  is not able to compile a simple test program.

  It fails with the following output:



  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/bknope/Documents/Development/Home Dev/Swift Open Source/Git/build/Ninja-DebugAssert/cmark-macosx-x86_64/CMakeFiles/CMakeOutput.log".
See also "/Users/bknope/Documents/Development/Home Dev/Swift Open Source/Git/build/Ninja-DebugAssert/cmark-macosx-x86_64/CMakeFiles/CMakeError.log".
utils/build-script: command terminated with a non-zero exit status 1, aborting

which ninja output:

> On Feb 17, 2016, at 4:56 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Wed, Feb 17, 2016 at 1:53 PM, Brandon Knope <bknope at me.com> wrote:
>> I installed it via MacPorts. Before going that route, I had cloned it and had the same problem
> Could you post more of the build log?  And the output of `which ninja`.
> 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>*/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160217/937111a8/attachment.html>

More information about the swift-users mailing list