[Insight-users] build error with gcc 4.7 ('__int128' was not declared in this scope)

Andrzej Giniewicz gginiu at gmail.com
Thu Apr 5 09:54:44 EDT 2012


Hi there,

I'm trying to build itk 4.1.0 using following configuration:

  cmake \
    -DCMAKE_BUILD_TYPE:STRING=Release \
    -DBUILD_TESTING:BOOL=OFF \
    -DBUILD_EXAMPLES:BOOL=OFF \
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
    -DITK_USE_REVIEW:BOOL=ON \
    -DITK_USE_SYSTEM_SWIG:BOOL=ON \
    -DITK_WRAPPING:BOOL=ON \
    -DITK_WRAP_PYTHON:BOOL=ON \
    -DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 \
    -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 \
    -DPYTHON_LIBRARY:PATH=/usr/lib/libpython2.7.so \
    ../InsightToolkit-4.1.0

After make and some long time, it fails. I'm not 100% sure, but I
believe it started happening after update to GCC 4.7, as it worked
before. It fails on vcl_complex.xml, by looking into
Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/build.make I
was able to track the failure to following line (tried with both
bundled gccxml and cvs version):

gccxml -fxml-start=_cable_
-fxml=/home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/vcl_complex.xml
--gccxml-gcc-options
/home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/gcc_xml.inc
-DCSWIG -DCABLE_CONFIGURATION -DITK_MANUAL_INSTANTIATION
/home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/vcl_complex.cxx
In file included from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/ThirdParty/VNL/src/vxl/vcl/iso/vcl_limits.h:6,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_limits.h:12,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkNumericTraits.h:45,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkNumericTraitsFixedArrayPixel.h:21,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkFixedArray.h:286,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Core/Common/include/itkIndex.h:22,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h:21,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkLabelObject.h:23,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkShapeLabelObject.h:21,
                 from
/home/giniu/arch2/insight-toolkit/src/InsightToolkit-4.1.0/Modules/Filtering/LabelMap/include/itkStatisticsLabelObject.h:21,
                 from
/home/giniu/arch2/insight-toolkit/src/build/Wrapping/Modules/ITKCommon/vcl_complex.cxx:2:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1405:
error: '__int128' was not declared in this scope
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1405:
error: template argument 1 is invalid
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1479:
error: template argument 1 is invalid

As this is kind of generated stuff, I'm not sure how to further track
this issue - I'd be happy to provide any files/logs/info that might
help tracking it.

Cheers,
Andrzej.


More information about the Insight-users mailing list