[Insight-users] error buildong ITK: gcc 4.7.1 error: '__int128' was not declared in this scope

Bradley Lowekamp blowekamp at mail.nih.gov
Sun Jul 1 09:52:42 EDT 2012


Hello Antonio,

Are you able to build ITK ok with out WrapITK?

Specifically, what Linux distribution are you using?

Are you able to get a version of gcc 4.6 to see if that works. I don't believe gcc 4.7 has been tests with WrapITK.

Brad

On Jun 30, 2012, at 2:39 AM, Antonio Recio wrote:

> When I try to build ITK from the repository git://itk.org/ITK.git with
> ITK_WRAP_JAVA set ON under linux with gcc 4.7.1, I obtain this error.
> Do you know how I can correct this problem? Do I need a patch?
> 
> [ 36%] Built target ITKJavaBaseGccXML
> [ 36%] Generating vnl_matrix.xml
> In file included from
> /opt/apps/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/iso/vcl_limits.h:6,
>                 from
> /opt/apps/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_limits.h:12,
>                 from
> /opt/apps/ITK/Modules/Core/Common/include/itkNumericTraits.h:45,
>                 from
> /opt/apps/ITK/Modules/Core/Common/include/itkNumericTraitsFixedArrayPixel.h:21,
>                 from
> /opt/apps/ITK/Modules/Core/Common/include/itkFixedArray.h:286,
>                 from /opt/apps/ITK/Modules/Core/Common/include/itkIndex.h:22,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h:21,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkLabelObject.h:23,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkShapeLabelObject.h:21,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkStatisticsLabelObject.h:21,
>                 from
> /opt/apps/ITK-build/Wrapping/Modules/ITKCommon/vcl_complex.cxx:2:
> /usr/include/c++/4.7/limits:1405: error: '__int128' was not declared
> in this scope
> /usr/include/c++/4.7/limits:1405: error: template argument 1 is invalid
> /usr/include/c++/4.7/limits:1479: error: template argument 1 is invalid
> In file included from
> /opt/apps/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/iso/vcl_limits.h:6,
>                 from
> /opt/apps/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_limits.h:12,
>                 from
> /opt/apps/ITK/Modules/Core/Common/include/itkNumericTraits.h:45,
>                 from
> /opt/apps/ITK/Modules/Core/Common/include/itkNumericTraitsFixedArrayPixel.h:21,
>                 from
> /opt/apps/ITK/Modules/Core/Common/include/itkFixedArray.h:286,
>                 from /opt/apps/ITK/Modules/Core/Common/include/itkIndex.h:22,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h:21,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkLabelObject.h:23,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkShapeLabelObject.h:21,
>                 from
> /opt/apps/ITK/Modules/Filtering/LabelMap/include/itkStatisticsLabelObject.h:21,
>                 from
> /opt/apps/ITK-build/Wrapping/Modules/ITKCommon/vnl_matrix.cxx:2:
> /usr/include/c++/4.7/limits:1405: error: '__int128' was not declared
> in this scope
> /usr/include/c++/4.7/limits:1405: error: template argument 1 is invalid
> /usr/include/c++/4.7/limits:1479: error: template argument 1 is invalid
> make[2]: *** [Wrapping/Modules/ITKCommon/vnl_matrix.xml] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [Wrapping/Modules/ITKCommon/vcl_complex.xml] Error 1
> make[1]: *** [Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 36%] Built target itkvnl_algo
> make: *** [all] Error 2
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list