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

Bradley Lowekamp blowekamp at mail.nih.gov
Mon Jul 2 15:19:18 EDT 2012


Hello,

Just to follow up, I updated my sid Debian VM to have gcc 4.7.1-2, and I got the same error.

It appears that gcc_xml has some problems with the gcc4.7. Did you use the gccxml version build with ITK? 

I wonder if there have been any updates to gcc_xml that would help?

Brad




On Jul 1, 2012, at 9:52 AM, Lowekamp, Bradley (NIH/NLM/LHC) [C] wrote:

> 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
> 
> _____________________________________
> 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

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120702/8f1d7463/attachment.htm>


More information about the Insight-users mailing list