D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/cxxopts-2.2.0-1.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.7prrBZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf cxxopts-2.2.0 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/cxxopts-2.2.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cxxopts-2.2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/cxxopts-fix-installation.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.pC4X7D + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd cxxopts-2.2.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + /usr/bin/cmake -Wno-dev -S . -B build -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/libexec -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -G Ninja -DCMAKE_BUILD_TYPE=Release -DCXXOPTS_ENABLE_INSTALL=ON -DCXXOPTS_BUILD_EXAMPLES=OFF -DCXXOPTS_BUILD_TESTS=ON -- cxxopts version 2.2.0 -- The C compiler identification is GNU 12.0.1 -- The CXX compiler identification is GNU 12.0.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_STATIC_LIBS CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_INSTALL_DO_STRIP CMAKE_VERBOSE_MAKEFILE CXXOPTS_ENABLE_INSTALL INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/build + /usr/bin/cmake --build build -j12 --verbose [1/6] /usr/bin/c++ -I/home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -DNDEBUG -std=c++11 -MD -MT test/CMakeFiles/link_test.dir/link_b.cpp.o -MF test/CMakeFiles/link_test.dir/link_b.cpp.o.d -o test/CMakeFiles/link_test.dir/link_b.cpp.o -c /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/link_b.cpp [2/6] /usr/bin/c++ -I/home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -DNDEBUG -std=c++11 -MD -MT test/CMakeFiles/link_test.dir/link_a.cpp.o -MF test/CMakeFiles/link_test.dir/link_a.cpp.o.d -o test/CMakeFiles/link_test.dir/link_a.cpp.o -c /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/link_a.cpp [3/6] : && /usr/bin/c++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -DNDEBUG -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -rdynamic test/CMakeFiles/link_test.dir/link_a.cpp.o test/CMakeFiles/link_test.dir/link_b.cpp.o -o test/link_test && : [4/6] /usr/bin/c++ -I/home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -DNDEBUG -std=c++11 -MD -MT test/CMakeFiles/options_test.dir/main.cpp.o -MF test/CMakeFiles/options_test.dir/main.cpp.o.d -o test/CMakeFiles/options_test.dir/main.cpp.o -c /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/main.cpp [5/6] /usr/bin/c++ -I/home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -DNDEBUG -std=c++11 -MD -MT test/CMakeFiles/options_test.dir/options.cpp.o -MF test/CMakeFiles/options_test.dir/options.cpp.o.d -o test/CMakeFiles/options_test.dir/options.cpp.o -c /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/options.cpp FAILED: test/CMakeFiles/options_test.dir/options.cpp.o /usr/bin/c++ -I/home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -DNDEBUG -std=c++11 -MD -MT test/CMakeFiles/options_test.dir/options.cpp.o -MF test/CMakeFiles/options_test.dir/options.cpp.o.d -o test/CMakeFiles/options_test.dir/options.cpp.o -c /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/options.cpp In file included from /usr/include/c++/12/string:53, from /usr/include/c++/12/bits/locale_classes.h:40, from /usr/include/c++/12/bits/ios_base.h:41, from /usr/include/c++/12/ios:42, from /usr/include/c++/12/istream:38, from /usr/include/c++/12/sstream:38, from /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/catch.hpp:74, from /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/options.cpp:1: In member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_data() const [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]', inlined from 'bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]' at /usr/include/c++/12/bits/basic_string.h:275:23, inlined from 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]' at /usr/include/c++/12/bits/basic_string.h:286:18, inlined from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]' at /usr/include/c++/12/bits/basic_string.h:795:19, inlined from 'void cxxopts::Options::add_option(const std::string&, const std::string&, const std::string&, std::string, std::shared_ptr, std::string)' at /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include/cxxopts.hpp:1922:1: /usr/include/c++/12/bits/basic_string.h:235:28: error: '.cxxopts::HelpOptionDetails::arg_help.std::__cxx11::basic_string::_M_dataplus.std::__cxx11::basic_string::_Alloc_hider::_M_p' may be used uninitialized [-Werror=maybe-uninitialized] 235 | { return _M_dataplus._M_p; } | ^~~~ In file included from /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/test/options.cpp:5: /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include/cxxopts.hpp: In member function 'void cxxopts::Options::add_option(const std::string&, const std::string&, const std::string&, std::string, std::shared_ptr, std::string)': /home/pterjan/rpmbuild/BUILD/cxxopts-2.2.0/include/cxxopts.hpp:1921:26: note: '' declared here 1921 | value->is_boolean()}); | ^ cc1plus: all warnings being treated as errors ninja: build stopped: subcommand failed. error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.pC4X7D (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.pC4X7D (%build) I: [iurt_root_command] ERROR: chroot