[vtkusers] VTK with gcc 6
Alexandre Ancel
alexandre.ancel at cemosis.fr
Thu Jul 28 05:43:32 EDT 2016
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]
However VTK 7 build and install steps seem to be ok.
Best regards,
Alexandre Ancel
On Thu, Jul 28, 2016 at 11:23 AM, Alexandre Ancel <
alexandre.ancel at cemosis.fr> wrote:
> Hello everyone,
>
> 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).
>
> I managed to build them by modifying the regular expression:
>
> string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]"
> _gcc_version "${_gcc_version_info}")
>
> by adding a 6 to the first match.
>
> in:
> CMake/vtkCompilerExtras.cmake for VTK 5 and 7
> CMake/GenerateExportHeader.cmake for VTK 7
>
> 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.
>
> Best regards,
> Alexandre Ancel
>
> --
> 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
>
--
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/20160728/5d6dafe4/attachment.html>
More information about the vtkusers
mailing list