[vtkusers] VTK with gcc 6

Alexandre Ancel alexandre.ancel at cemosis.fr
Fri Jul 29 04:54:12 EDT 2016


Hello Ben,

First thanks for the answers

On Thu, Jul 28, 2016 at 5:04 PM, Ben Boeckel <ben.boeckel at kitware.com>
wrote:

> On Thu, Jul 28, 2016 at 11:43:32 +0200, Alexandre Ancel wrote:
> > As a follow-up to my previous mail,
> > VTK 5 does not seem to build with gcc 6.1.0 despite the configuration
> tweak.
> >
> > I end up having the following errors in vtkMath.h:
> > In static member function 'static int
> > vtkMath::GetScalarTypeFittingRange(double, double, double, double)':
> > error: narrowing conversion of '9223372036854775807l' from 'long int' to
> > 'double' inside { } [-Wnarrowing]
> >      };
> > error: narrowing conversion of '18446744073709551615ul' from 'long
> unsigned
> > int' to 'double' inside { } [-Wnarrowing]
> > error: narrowing conversion of '9223372036854775807ll' from 'long long
> int'
> > to 'double' inside { } [-Wnarrowing]
> > error: narrowing conversion of '18446744073709551615ull' from 'long long
> > unsigned int' to 'double' inside { } [-Wnarrowing]
>
> Not surprising; what happens if you turn use -std=c++03 (gnu++14 is the
> default in GCC 6)?
>

Indeed, adding this option indeed allows the compilation to end and VTK to
install.


>
> > > 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.
>
> VTK master already supports up to GCC 9 :) .
>

Do you suggest to use the git version rather that the source packages ?


>
> --Ben
>

Best regards,
Alexandre

-- 
Alexandre Ancel
Docteur, Ingénieur de recherche / Phd, Research Engineer
Cemosis <http://www.cemosis.fr> - alexandre.ancel at cemosis.fr
Tel: +33 (0)3 68 8*5 02 06*
IRMA - 7, rue René Descartes
67 000 Strasbourg, France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160729/1a34f275/attachment.html>


More information about the vtkusers mailing list