<div dir="ltr">Hi Gerhard,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 1, 2017 at 7:26 AM, Gerhard Gappmeier <span dir="ltr"><<a href="mailto:gerhard.gappmeier@ascolab.com" target="_blank">gerhard.gappmeier@ascolab.com</a><wbr>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    hi all,<br>
    <br>
    just recently I discovered that our coverage builds on CDash don't
    work anymore.<br>
    By analyzing the problem I found out that this is related to Ninja
    generator.<br>
    I don't know when the problem was introduced but it still exists
    with CMake 3.9.1.<br>
    (GCC and gcov are version 4.9.4, but this is not important)<br>
    <br>
    I attached a simple test program to reproduce the problem.<br>
    <br>
    <tt>$> tar xf demo.tar.gz</tt><tt><br>
    </tt><tt>$> cd demo</tt><tt><br>
    </tt><tt>$> mkdir bl</tt><tt>d</tt></div></blockquote><div>What if you call `<span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">chcp 65001</span>` here before the CMake call? (Force using <span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"> </span><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">UTF-8 console)</span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><tt><br>
    </tt><tt>$> cmake -GNinja ..</tt><tt><br>
    </tt><tt>$> ninja Nightly</tt><tt><br>
    </tt><tt>...</tt><tt><br>
    </tt><tt>Configure project</tt><tt><br>
    </tt><tt>   Each . represents 1024 bytes of output</tt><tt><br>
    </tt><tt>    . Size of output: 0K</tt><tt><br>
    </tt><tt>Build project</tt><tt><br>
    </tt><tt>   Each symbol represents 1024 bytes of output.</tt><tt><br>
    </tt><tt>   '!' represents an error and '*' a warning.</tt><tt><br>
    </tt><tt>    . Size of output: 0K</tt><tt><br>
    </tt><tt>   0 Compiler errors</tt><tt><br>
    </tt><tt>   0 Compiler warnings</tt><tt><br>
    </tt><tt>Test project /home/gergap/tmp/cmaketest/bld</tt><tt><br>
    </tt><tt>    Start 1: mytest</tt><tt><br>
    </tt><tt>1/1 Test #1: mytest ...........................   Passed   
      0.00 sec</tt><tt><br>
    </tt><tt><br>
    </tt><tt>100% tests passed, 0 tests failed out of 1</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Total Test time (real) =   0.00 sec</tt><tt><br>
    </tt><tt>Performing coverage</tt><tt><br>
    </tt><tt>   Processing coverage (each . represents one file):</tt><tt><br>
    </tt><tt>    .</tt><tt><br>
    </tt><tt>   Accumulating results (each . represents one file):</tt><tt><br>
    </tt><tt>    .Cannot find file:
      /home/gergap/tmp/cmaketest/bld<wbr>/Testing/main.c</tt><tt><br>
    </tt><tt><br>
    </tt><tt>        Covered LOC:         0</tt><tt><br>
    </tt><tt>        Not covered LOC:     0</tt><tt><br>
    </tt><tt>        Total LOC:           0</tt><tt><br>
    </tt><tt>        Percentage Coverage: 0.00%</tt><tt><br>
    </tt><tt>...</tt><br>
    <br>
    When using make instead everything works as expected.<br>
    <tt>$> tar xf demo.tar.gz</tt><tt><br>
    </tt><tt>$> cd demo</tt><tt><br>
    </tt><tt>$> mkdir bl</tt><tt>d</tt><tt><br>
    </tt><tt>$> cmake ..</tt><tt><br>
    </tt><tt>$> make Nightly</tt><tt><br>
    </tt><tt>Configure project</tt><tt><br>
    </tt><tt>   Each . represents 1024 bytes of output</tt><tt><br>
    </tt><tt>    . Size of output: 0K</tt><tt><br>
    </tt><tt>Build project</tt><tt><br>
    </tt><tt>   Each symbol represents 1024 bytes of output.</tt><tt><br>
    </tt><tt>   '!' represents an error and '*' a warning.</tt><tt><br>
    </tt><tt>    . Size of output: 0K</tt><tt><br>
    </tt><tt>   0 Compiler errors</tt><tt><br>
    </tt><tt>   0 Compiler warnings</tt><tt><br>
    </tt><tt>Test project /home/gergap/tmp/cmaketest/bld</tt><tt><br>
    </tt><tt>    Start 1: mytest</tt><tt><br>
    </tt><tt>1/1 Test #1: mytest ...........................   Passed   
      0.00 sec</tt><tt><br>
    </tt><tt><br>
    </tt><tt>100% tests passed, 0 tests failed out of 1</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Total Test time (real) =   0.00 sec</tt><tt><br>
    </tt><tt>Performing coverage</tt><tt><br>
    </tt><tt>   Processing coverage (each . represents one file):</tt><tt><br>
    </tt><tt>    .</tt><tt><br>
    </tt><tt>   Accumulating results (each . represents one file):</tt><tt><br>
    </tt><tt>    .</tt><tt><br>
    </tt><tt>        Covered LOC:         3</tt><tt><br>
    </tt><tt>        Not covered LOC:     0</tt><tt><br>
    </tt><tt>        Total LOC:           3</tt><tt><br>
    </tt><tt>        Percentage Coverage: 100.00%</tt><br>
    <br>
    Is this problem known?<br></div></blockquote><div>I believe it's related to CMake issue <a href="https://gitlab.kitware.com/cmake/cmake/issues/17191" target="_blank">17191</a> that <span style="color:rgba(0,0,0,0.85);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">CMake is not properly converting the </span><code style="box-sizing:border-box;font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:12.6px;padding:2px 4px;color:rgb(192,52,29);background-color:rgb(252,239,237);border-radius:3px;white-space:pre-wrap;word-break:keep-all;word-wrap:normal;margin-top:0px">-showIncludes</code><span style="color:rgba(0,0,0,0.85);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"> prefix (${</span><font color="#c0341d" face="Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace"><span style="font-size:12.6px;white-space:pre-wrap;background-color:rgb(252,239,237)">displayedInSystemLanguage}</span></font><span style="color:rgba(0,0,0,0.85);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">) to its internal UTF-8 encoding</span>.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    Are there any fixes/workaround available?<br>
    <br></div></blockquote><div>Thanks to Brad it has been fixed in <a href="https://gitlab.kitware.com/cmake/cmake/merge_requests/1179" target="_blank">CMake MR 1179</a>. If you do not want to use CMake from source build then adding `<span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">chcp 6500`1 should do the trick.</span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <div class="m_8125091328552513470gmail-m_-5978863667340266867moz-signature">-- <br>
      mit freundlichen Grüßen / best regards<br>
      <br>
      <b>Gerhard Gappmeier</b><br>
      ascolab GmbH - automation systems communication laboratory<br>
      Tel.: <a href="tel:+49%20911%20569846203" value="+49911569846203" target="_blank">+49 911 569846 203</a><br>
      Fax: <a href="tel:+49%20911%20569846400" value="+49911569846400" target="_blank">+49 911 569846 400</a><br>
      Web: <a class="m_8125091328552513470gmail-m_-5978863667340266867moz-txt-link-freetext" href="http://www.ascolab.com" target="_blank">http://www.ascolab.com</a><br>
      GPG-KeyId: 7A78B0A7 <br>
      GPG-Fingerprint: A964 56A2 32E9 A537 AB7E EBD6 8D09 0D72 7A78 B0A7<br>
      <p style="font-family:helvetica;font-size:8pt">
        --<br>
        <b>ascolab GmbH</b><br>
        Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe
        Steinkrauß<br>
        Sitz der Gesellschaft: An der Kaufleite 34 • 90562 Kalchreuth •
        Germany<br>
        Registernummer: HRB 9360<br>
        Registergericht: Amtsgericht Fürth<br>
      </p>
    </div>
  </div>

<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_8125091328552513470gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards<div>Haocheng</div><div><br></div><div>Haocheng LIU</div><div><span style="color:rgb(0,0,0);font-size:12.8px">Kitware, Inc.</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">R&D Engineer</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">21 Corporate Drive</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Clifton Park, NY 12065-8662</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Phone: </span><a href="tel:(518)%20881-4421" value="+15188814443" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">518-881-4421</a><br></div></div></div></div></div>
</div></div>