openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
405 stars 110 forks source link

FTBFS with GCC 13 #448

Closed marxin closed 2 years ago

marxin commented 2 years ago

Fails with:

[   26s] [ 46%] Building CXX object src/CMakeFiles/zypper_lib.dir/update.cc.o
[   26s] cd /home/abuild/rpmbuild/BUILD/zypper-1.14.53/build/src && /usr/bin/c++ -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"zypper\" -DVERSION=\"1.14.53\" -D_FILE_OFFSET_BITS=64 -I/home/abuild/rpmbuild/BUILD/zypper-1.14.53 -I/home/abuild/rpmbuild/BUILD/zypper-1.14.53/build -I/usr/include/libxml2 -I/home/abuild/rpmbuild/BUILD/zypper-1.14.53/src -fPIC -g -Wall -Woverloaded-virtual -Wnon-virtual-dtor -fstack-protector -fvisibility-inlines-hidden -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -O3 -std=c++17 -MD -MT src/CMakeFiles/zypper_lib.dir/update.cc.o -MF CMakeFiles/zypper_lib.dir/update.cc.o.d -o CMakeFiles/zypper_lib.dir/update.cc.o -c /home/abuild/rpmbuild/BUILD/zypper-1.14.53/src/update.cc
[   27s] In file included from /home/abuild/rpmbuild/BUILD/zypper-1.14.53/src/utils/colors.h:14,
[   27s]                  from /home/abuild/rpmbuild/BUILD/zypper-1.14.53/src/Table.cc:9:
[   27s] /home/abuild/rpmbuild/BUILD/zypper-1.14.53/src/utils/ansi.h:163:10: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[   27s]   163 |     enum class Attr : std::uint8_t
[   27s]       |     ~~~~ ^~~~~
[   27s]       |          -----
[   27s] /home/abuild/rpmbuild/BUILD/zypper-1.14.53/src/utils/ansi.h:163:16: error: use of enum 'Attr' without previous declaration
[   27s]   163 |     enum class Attr : std::uint8_t
[   27s]       |                ^~~~

due to: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes