<div dir="ltr"><div>Hello Ben,<br><br></div>First thanks for the answers<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 28, 2016 at 5:04 PM, Ben Boeckel <span dir="ltr"><<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jul 28, 2016 at 11:43:32 +0200, Alexandre Ancel wrote:<br>
> As a follow-up to my previous mail,<br>
> VTK 5 does not seem to build with gcc 6.1.0 despite the configuration tweak.<br>
><br>
> I end up having the following errors in vtkMath.h:<br>
> In static member function 'static int<br>
> vtkMath::GetScalarTypeFittingRange(double, double, double, double)':<br>
> error: narrowing conversion of '9223372036854775807l' from 'long int' to<br>
> 'double' inside { } [-Wnarrowing]<br>
>      };<br>
> error: narrowing conversion of '18446744073709551615ul' from 'long unsigned<br>
> int' to 'double' inside { } [-Wnarrowing]<br>
> error: narrowing conversion of '9223372036854775807ll' from 'long long int'<br>
> to 'double' inside { } [-Wnarrowing]<br>
> error: narrowing conversion of '18446744073709551615ull' from 'long long<br>
> unsigned int' to 'double' inside { } [-Wnarrowing]<br>
<br>
</span>Not surprising; what happens if you turn use -std=c++03 (gnu++14 is the<br>
default in GCC 6)?<br></blockquote><div><br></div><div>Indeed, adding this option indeed allows the compilation to end and VTK to install.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> > It might be a good idea to also add 7 to future proof the versions or<br>
> > modify the expression so that future iterations of gcc do not pose problems.<br>
<br>
</span>VTK master already supports up to GCC 9 :) .<br></blockquote><div><br></div><div>Do you suggest to use the git version rather that the source packages ?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--Ben<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Best regards,<br></div><div class="gmail_extra">Alexandre<br clear="all"></div><div class="gmail_extra"><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></div></div></div></div>