vtk build failure with gcc 13.0.0 - enum class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With the change to gcc 13, vtk is failing to build with:

[ 39%] Building CXX object IO/Image/CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o cd /builddir/build/BUILD/VTK-9.2.5/build/IO/Image && /usr/bin/g++ -DIOImage_EXPORTS -DVTK_IN_VTK -Dkiss_fft_scalar=double -I/builddir/build/BUILD/VTK-9.2.5/build/IO/Image -I/builddir/build/BUILD/VTK-9.2.5/IO/Image -I/builddir/build/BUILD/VTK-9.2.5/build/Common/Core -I/builddir/build/BUILD/VTK-9.2.5/Common/Core -I/builddir/build/BUILD/VTK-9.2.5/build/Common/ExecutionModel -I/builddir/build/BUILD/VTK-9.2.5/Common/ExecutionModel -I/builddir/build/BUILD/VTK-9.2.5/build/Common/DataModel -I/builddir/build/BUILD/VTK-9.2.5/Common/DataModel -I/builddir/build/BUILD/VTK-9.2.5/build/Common/Math -I/builddir/build/BUILD/VTK-9.2.5/Common/Math -I/builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/kissfft/vtkkissfft -I/builddir/build/BUILD/VTK-9.2.5/ThirdParty/kissfft/vtkkissfft -I/builddir/build/BUILD/VTK-9.2.5/build/Common/Transforms -I/builddir/build/BUILD/VTK-9.2.5/Common/Transforms -I/builddir/build/BUILD/VTK-9.2.5/build/Imaging/Core -I/builddir/build/BUILD/VTK-9.2.5/Imaging/Core -I/builddir/build/BUILD/VTK-9.2.5/build/Common/Misc -I/builddir/build/BUILD/VTK-9.2.5/Common/Misc -I/builddir/build/BUILD/VTK-9.2.5/build/Common/System -I/builddir/build/BUILD/VTK-9.2.5/Common/System -I/builddir/build/BUILD/VTK-9.2.5/build/Utilities/DICOMParser -I/builddir/build/BUILD/VTK-9.2.5/Utilities/DICOMParser -I/builddir/build/BUILD/VTK-9.2.5/build/Utilities/MetaIO/vtkmetaio -I/builddir/build/BUILD/VTK-9.2.5/Utilities/MetaIO/vtkmetaio -isystem /builddir/build/BUILD/VTK-9.2.5/build/Utilities/KWIML -isystem /builddir/build/BUILD/VTK-9.2.5/Utilities/KWIML -isystem /builddir/build/BUILD/VTK-9.2.5/build/Utilities/KWSys -isystem /builddir/build/BUILD/VTK-9.2.5/Utilities/KWSys -isystem /builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/kissfft -isystem /builddir/build/BUILD/VTK-9.2.5/ThirdParty/kissfft -isystem /builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/jpeg -isystem /builddir/build/BUILD/VTK-9.2.5/ThirdParty/jpeg -isystem /builddir/build/BUILD/VTK-9.2.5/build/Utilities/MetaIO -isystem /builddir/build/BUILD/VTK-9.2.5/Utilities/MetaIO -isystem /builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/png -isystem /builddir/build/BUILD/VTK-9.2.5/ThirdParty/png -isystem /builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/pugixml -isystem /builddir/build/BUILD/VTK-9.2.5/ThirdParty/pugixml -isystem /builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/tiff -isystem /builddir/build/BUILD/VTK-9.2.5/ThirdParty/tiff -isystem /builddir/build/BUILD/VTK-9.2.5/build/ThirdParty/zlib -isystem /builddir/build/BUILD/VTK-9.2.5/ThirdParty/zlib -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_UNICODE -DHAVE_UINTPTR_T -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -MD -MT IO/Image/CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o -MF CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o.d -o CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o -c /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.cxx In file included from /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.cxx:16: /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h:33:6: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
   33 | enum class EndiannessType : std::uint8_t
      | ~~~~ ^~~~~
      |      -----
/builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h:33:12: error: use of enum 'EndiannessType' without previous declaration
   33 | enum class EndiannessType : std::uint8_t
      |            ^~~~~~~~~~~~~~
/builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h:33:27: error: expected unqualified-id before ':' token
   33 | enum class EndiannessType : std::uint8_t
      |                           ^
/builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h:103:19: error: 'int32_t' is not a member of 'std'; did you mean 'int32_t'?
  103 |   std::array<std::int32_t, 6> ComputeExtent() const;
      |                   ^~~~~~~
In file included from /usr/include/sys/types.h:155,
                 from /usr/include/stdlib.h:395,
                 from /usr/include/c++/13/cstdlib:79,
                 from /usr/include/c++/13/ext/string_conversions.h:43,
                 from /usr/include/c++/13/bits/basic_string.h:4072,
                 from /usr/include/c++/13/string:54,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/istream:40,
                 from /usr/include/c++/13/fstream:40,
from /builddir/build/BUILD/VTK-9.2.5/Common/Core/vtkIOStream.h:29, from /builddir/build/BUILD/VTK-9.2.5/Common/Core/vtkSystemIncludes.h:39, from /builddir/build/BUILD/VTK-9.2.5/Common/Core/vtkIndent.h:28, from /builddir/build/BUILD/VTK-9.2.5/Common/Core/vtkObjectBase.h:53, from /builddir/build/BUILD/VTK-9.2.5/Common/Core/vtkObject.h:45, from /builddir/build/BUILD/VTK-9.2.5/Common/ExecutionModel/vtkExtentTranslator.h:29, from /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h:24:
/usr/include/bits/stdint-intn.h:26:19: note: 'int32_t' declared here
   26 | typedef __int32_t int32_t;
      |                   ^~~~~~~
/builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h:103:19: error: 'int32_t' is not a member of 'std'; did you mean 'int32_t'?
  103 |   std::array<std::int32_t, 6> ComputeExtent() const;
      |                   ^~~~~~~
/usr/include/bits/stdint-intn.h:26:19: note: 'int32_t' declared here
   26 | typedef __int32_t int32_t;
      |                   ^~~~~~~


Any initial thoughts on whether this is a GCC or VTK issues?  Does:


enum class EndiannessType : std::uint8_t

just become:

enum EndiannessType : std::uint8_t

?

--
Orion Poplawski
he/him/his  - surely the least important thing about me
IT Systems Manager                         720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion@xxxxxxxx
Boulder, CO 80301                 https://www.nwra.com/

<<attachment: smime.p7s>>

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux