<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
Just to inform CMake users on Mac OS X that problem is solved by
using CTEST_USE_LAUNCHERS option.<br>
<br>
As a reminder, problem is that some warnings generated by
different clang processes during parallel compilation get mixed
together, become unreadable, and are therefore processed as errors
by ctest.<br>
<br>
With 'CTEST_USE_LAUNCHERS' option, stdout and stderr outputs of
parallel clang processes are handled differently and do not get
mixed together anymore.<br>
<br>
More details about this option are available in this page at item
2. : <a class="moz-txt-link-freetext" href="http://www.kitware.fr/blog/home/post/11">http://www.kitware.fr/blog/home/post/11</a><br>
<br>
To activate CTEST_USE_LAUNCHERS in you ctest script, following
lines are needed :<br>
<br>
<code>set(CTEST_USE_LAUNCHERS 1)<br>
<br>
...<br>
<br>
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}"<br>
<br>
OPTIONS "-DCTEST_USE_LAUNCHERS=${CTEST_USE_LAUNCHERS}"<br>
<br>
... )<br>
<br>
<br>
</code>A last point : a side effect of this option I have observed
is that warnings and errors are counted differently. Number of
compilation units yielding errors and warnings are counted, and
not individual errors and warning messages.<br>
If someone knowns a method to use CTEST_USE_LAUNCHERS option with
individual counting of error and warning messages, I am
interested.<br>
<br>
Hope this helps,<br>
<br>
Kind regards<br>
<br>
Ananda<br>
<br>
On 10/01/2013 15:24, Ananda Tallur wrote:<br>
</div>
<blockquote cite="mid:50EECF2D.3010602@maunakeatech.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre>Hi,
We have the same problem here with ctest and clang on Mac OS X.
Versions used are :
- clang 4.2, from XCode 4.6DP4 on Mac OS X 10.7
- cmake 2.8.10.2
In our ctest script, compilation is launched with 4 jobs (make -j4).
In our dashboard (and same thing when directly looking at the text output of the ctest process), we notice that some compilations outputs get mixed.
In this case we can see the beginning of one compilation process output starting in the middle of a previous compilation output.
This leads to some mixed outputs of two different compilation processes, that cannot be properly interpreted by ctest as warning, and are therefore displayed as errors.
At the end of this mail, an example of the kind of mixes we have.
Is anybody facing the same problem and is there a workaround available ?
Kind regards
Ananda
-----
12:
In file included from O/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/functional/hash/hash.hppIn file included from /usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/date_time/gregorian/gregorian.hppO:S15:
T:_I34/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/functional/hash/detail/hash_float.hpp:T71E:R:
25In file included from AT:O Rwarning: _/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/date_time/gregorian/parsers.hppFcAa:s13tC :
In file included from AD/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/date_time/date_parsing.hpp:fEr_oP15:
mL US'In file included from 'c
har/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/tokenizer.hpp:20 *:
In file included from ' /usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/token_iterator.hpp:24t return tmp += n; \o ':
s ^t/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/token_functions.hpp
:312:d:33: :swarning: uiznuse_e/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/gil/image_view.hpp:d125 t: p68a:* 'note: ir(n aiansmetaktae n'tuianrt iso'n igonefd lofnugb' * [')n- Wicutninocnr etaesmpeulass rteed-peaq rsameupiteercri]al
eidz aatliiognn m'ebnoto sftr:o:mo p1e rtaot o8 static void assign(Iterator b, Iterator e, Token &t) { }
^
r [+-<Wbcoa/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/token_functions.hpposstt:-:a312l:i:gg45inl]
[ 58%] Building CXX object libProcessing/tests/CMakeFiles/jitterestimationfilter_test.dir/jitterestimationfilter_test.cpp.o
:::iterator warning: _frunom_2dus<bedoos parat:me:gteilr ::'eme' mo[r-Wuy_basnued_se2d_lod-capator<brametooerst]
::gil: seed = *(std::size_t*) ptr;
:m ^~~~~~~~~~~~~~~~~~
emory_b static void assign(Iterator b, Iterator e, Token &t) { }
^
ased/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/token_functions.hpp:312_st:55ep: _iwarning: utenurasetod r<conparstamete ur ns'tig' [-Wneund usshedor-parat met/usr/local/mkt-dev/install/boost-1.52.0_patch_range_search_n-macosx10.7-x86_64-gnu++11_libc++-20121226/build-x86_64/include/boost/functional/hash/detail/hash_float.hpp*:e>r76 :]>
----
Andreas Fetzer <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:stromsau@gmx.de"><stromsau@gmx.de></a> wrote
> Hi there,
>
> On our dashboard some warnings are treated as errors and hence the build fails (only for Mac OS X systems):
>
<a moz-do-not-send="true" href="http://cdash.mitk.org/viewBuildError.php?buildid=132336">> http://cdash.mitk.org/viewBuildError.php?buildid=132336</a>
>
> Apparently not the hole output line of the clang compiler was considered. This happens especially when we are using the apple clang compiler.
>
> Is this a issue of ctest?
>
>
> Regards
> Andreas
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! <a moz-do-not-send="true" href="https://freundschaftswerbung.gmx.de">https://freundschaftswerbung.gmx.de</a></pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<span style="font-family: Trebuchet MS; font-size: 11px;"> <span
style="color: rgb(130, 130, 130); font-weight: bold;
font-size: 12px;">Ananda Tallur | </span> <span
style="color: rgb(0, 75, 141);">Software Development Engineer
</span><br>
<span style="color: rgb(0, 75, 141);">Mauna Kea Technologies | 9
rue d'Enghien – 75010 Paris, France </span><br>
<span style="color: rgb(0, 75, 141);"> Tel : + 33 1 48 24 05 68
| Cell : + 33 6 77 77 71 67 | Fax : + 33 1 48 24 12 18 | <a
style="color: rgb(0, 75, 141);"
href="http://www.maunakeatech.com/">www.maunakeatech.com</a></span><br>
<br>
<img moz-do-not-send="false"
src="cid:part5.03020506.02010903@maunakeatech.com"
alt="logomaunakeatech.jpg"><br>
<br>
<span style="font-family: Trebuchet MS; color: rgb(130, 130,
130)">This message and any attached documents are CONFIDENTIAL
and intended only for the use of the intended recipient.<br>
Ce message et tous les documents attachés sont CONFIDENTIELS
et à la seule attention du destinataire pour lequel ils ont
été écrits.</span>
</span></div>
</body>
</html>