InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

COMP: GCC 13 CastXML vector include workaround #4632

Closed thewtex closed 2 months ago

thewtex commented 2 months ago

Addresses:

FAILED: Wrapping/castxml_inputs/itkImageSource.xml /home/matt/bin/ITK-Wrap-Release/Wrapping/castxml_inputs/itkImageSource.xml
cd /home/matt/bin/ITK-Wrap-Release/Wrapping/Modules/ITKCommon && /home/matt/bin/ITK-Wrap-Release/Wrapping/Generators/CastXML/castxml/bin/castxml -o /home/matt/bin/ITK-Wrap-Release/Wrapping/castxml_inputs/itkImageSource.xml --castxml-gccxml --castxml-start _wrapping_ --castxml-cc-gnu "(" /usr/bin/c++ -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wctad-maybe-unsupported -Wstrict-null-sentinel -fno-sized-deallocation -msse2 -fno-sized-deallocation -msse2 -std=c++17 ")" -w -c @/home/matt/bin/ITK-Wrap-Release/Wrapping/castxml_inputs/.castxml.inc /home/matt/bin/ITK-Wrap-Release/Wrapping/castxml_inputs/itkImageSource.cxx
In file included from /home/matt/bin/ITK-Wrap-Release/Wrapping/castxml_inputs/itkImageSource.cxx:1:
In file included from /home/matt/src/ITK/Modules/Core/Common/include/itkCommand.h:21:
In file included from /home/matt/src/ITK/Modules/Core/Common/include/itkObject.h:31:
In file included from /home/matt/src/ITK/Modules/Core/Common/include/itkLightObject.h:21:
In file included from /home/matt/src/ITK/Modules/Core/Common/include/itkMacro.h:51:
In file included from /home/matt/src/ITK/Modules/Core/Common/include/itkPrintHelper.h:24:
In file included from /usr/include/c++/13/vector:67:
/usr/include/c++/13/bits/stl_bvector.h:190:35: error: expected string literal as argument of '__assume__' attribute
  190 |       __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit))));
      |                                   ^

See also:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112467