[CMake] cmake self build with ninja works on Darwin, but a view tests fail
Claus Klein
claus.klein at arcormail.de
Sun May 27 06:26:41 EDT 2012
Hi all,
I tried to build cmake with ninja generator enabled and build cmake
itself with ninja.
Nice, it works ;-))
Only a view tests fails, but most of the problems are NOT caused by
ninja.
It seems, that while testing, cmake on Darwin use options only valid
for old native apple gcc?
But I use gcc47 installed with macports!
Here is my test script:
#!/bin/sh
MAKECOMMAND=/opt/local/bin/ninja
set -x
set -e
/usr/local/bin/cmake -G Ninja -DCMAKE_TEST_GENERATOR:STRING="Ninja" \
-DCMAKE_TEST_MAKEPROGRAM:FILEPATH="${MAKECOMMAND}" -
DCMAKE_ENABLE_NINJA:BOOL="ON" \
-DBUILD_CursesDialog:BOOL="OFF" -DBUILD_QtDialog:BOOL="OFF" \
-DMAKECOMMAND:STRING="${MAKECOMMAND} -d stats" \
../cmake
time ${MAKECOMMAND} clean
# Cleaning... 783 files.
time ${MAKECOMMAND} -d stats
# + /opt/local/bin/ninja -d stats
# ...
# [405/405] Generating ../Docs/cmake.txt
# metric count avg (us) total (ms)
# .ninja parse 2 5540.5 11.1
# canonicalize str 2986 0.3 1.0
# canonicalize path 2986 0.2 0.5
# lookup node 2986 0.1 0.4
# .ninja_log load 1 5449.0 5.4
# node stat 1014 5.2 5.3
# depfile load 378 7.8 2.9
#
# path->node hash load 0.73 (1131 entries / 1543 buckets)
#
# real 1m55.262s
# user 3m1.512s
# sys 0m26.803s
time ${MAKECOMMAND} -d stats -d explain
# + /opt/local/bin/ninja -d stats -d explain
# ninja: no work to do.
# metric count avg (us) total (ms)
# .ninja parse 2 5645.0 11.3
# canonicalize str 2986 0.3 1.0
# canonicalize path 10624 0.2 1.9
# lookup node 10624 0.2 2.1
# .ninja_log load 1 4944.0 4.9
# node stat 1565 6.9 10.8
# depfile load 378 52.4 19.8
#
# path->node hash load 0.55 (1682 entries / 3079 buckets)
#
# real 0m0.057s
# user 0m0.030s
# sys 0m0.023s
########
exit
########
${MAKECOMMAND} test
# Total Test time (real) = 860.22 sec
# The following tests FAILED:
# 54 - ExportImport (Failed)
# 59 - Architecture (Failed)
# 61 - Qt4Deploy (Failed)
# 83 - BuildDepends (Failed)
# 93 - CPackComponentsForAll-DragNDrop-IgnoreGroup (Failed)
# 94 - CPackComponentsForAll-DragNDrop-AllInOne (Failed)
# 96 - X11 (Failed)
# 128 - BundleTest (Failed)
# 129 - CFBundleTest (Failed)
# 130 - ObjC++ (Failed)
# 230 - CMake.CheckSourceTree (Failed)
# Errors while running CTest
# ninja: build stopped: subcommand failed.
I have prepared a small patch to fix the X11 test.
For the others, I need your help please.
I attach the logs of my manually started tests as info.
With regards
Claus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestsX11HelloWorldX11.patch
Type: application/octet-stream
Size: 293 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120527/48b4c9dd/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake-tests-errorlogs.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120527/48b4c9dd/attachment-0001.txt>
More information about the CMake
mailing list