<div dir="ltr"><div><div><div><div><div>As a follow-up to my previous mail,<br></div>VTK 5 does not seem to build with gcc 6.1.0 despite the configuration tweak.<br><br></div>I end up having the following errors in vtkMath.h:<br>In static member function 'static int vtkMath::GetScalarTypeFittingRange(double, double, double, double)':<br>error: narrowing conversion of '9223372036854775807l' from 'long int' to 'double' inside { } [-Wnarrowing]<br> };<br>error: narrowing conversion of '18446744073709551615ul' from 'long unsigned int' to 'double' inside { } [-Wnarrowing]<br>error: narrowing conversion of '9223372036854775807ll' from 'long long int' to 'double' inside { } [-Wnarrowing]<br>error: narrowing conversion of '18446744073709551615ull' from 'long long unsigned int' to 'double' inside { } [-Wnarrowing]<br><br><br></div>However VTK 7 build and install steps seem to be ok.<br><br></div>Best regards,<br></div>Alexandre Ancel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 28, 2016 at 11:23 AM, Alexandre Ancel <span dir="ltr"><<a href="mailto:alexandre.ancel@cemosis.fr" target="_blank">alexandre.ancel@cemosis.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello everyone,<br><br></div>It seems that building VTK with gcc version 6 and up seems to fail at the CMake configuration step (at least for VTK 5 and 7).<br><br></div>I managed to build them by modifying the regular expression:<br><br>string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]"<br> _gcc_version "${_gcc_version_info}")<br clear="all"><br></div>by adding a 6 to the first match.<br><div><br>in:<br>CMake/vtkCompilerExtras.cmake for VTK 5 and 7<br><div><div><div>CMake/GenerateExportHeader.cmake for VTK 7<br><br></div><div>It might be a good idea to also add 7 to future proof the versions or modify the expression so that future iterations of gcc do not pose problems.<br><br></div><div>Best regards,<br></div><div>Alexandre Ancel<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div dir="ltr"><font face="courier new, monospace">Alexandre Ancel <br>Docteur, Ingénieur de recherche / Phd, Research Engineer<br></font><div>
<font face="courier new, monospace"><a href="http://www.cemosis.fr" target="_blank">Ce<font color="#888888">mosis</font></a> - <a href="mailto:alexandre.ancel@cemosis.fr" target="_blank">alexandre.ancel@cemosis.fr</a></font></div><div><font face="courier new, monospace">Tel: +33 (0)3 68 8</font><span><font color="#888888"><font face="courier new, monospace"><b>5 02 06</b></font></font></span></div>
<div><font face="courier new, monospace">IRMA - 7, rue René Descartes</font></div><div><font face="courier new, monospace">67 000 Strasbourg, France<br></font></div></div></font></span></div></div></div></div>
</div></font></span></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div dir="ltr"><font face="courier new, monospace">Alexandre Ancel <br>Docteur, Ingénieur de recherche / Phd, Research Engineer<br></font><div>
<font face="courier new, monospace"><a href="http://www.cemosis.fr" target="_blank">Ce<font color="#888888">mosis</font></a> - <a href="mailto:alexandre.ancel@cemosis.fr" target="_blank">alexandre.ancel@cemosis.fr</a></font></div><div><font face="courier new, monospace">Tel: +33 (0)3 68 8</font><span><font color="#888888"><font face="courier new, monospace"><b>5 02 06</b></font></font></span></div>
<div><font face="courier new, monospace">IRMA - 7, rue René Descartes</font></div><div><font face="courier new, monospace">67 000 Strasbourg, France<br></font></div></div></font></span></div></div></div></div>
</div>