D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/libebml-1.4.2-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.FCv8xH + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf libebml-1.4.2 + /usr/bin/xz -dc /home/pterjan/rpmbuild/SOURCES/libebml-1.4.2.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libebml-1.4.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/libebml-use-system-utf8cpp.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm -r src/lib/utf8-cpp + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bMnp4x + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd libebml-1.4.2 + '[' 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 -- 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 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_STATIC_LIBS CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_INSTALL_DO_STRIP INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build + /usr/bin/cmake --build build -j12 --verbose /usr/bin/cmake -S/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -B/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build/CMakeFiles /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build//CMakeFiles/progress.marks /usr/bin/gmake -f CMakeFiles/Makefile2 all gmake[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build' /usr/bin/gmake -f CMakeFiles/ebml.dir/build.make CMakeFiles/ebml.dir/depend gmake[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build' cd /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/libebml-1.4.2 /home/pterjan/rpmbuild/BUILD/libebml-1.4.2 /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build/CMakeFiles/ebml.dir/DependInfo.cmake --color= gmake[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build' /usr/bin/gmake -f CMakeFiles/ebml.dir/build.make CMakeFiles/ebml.dir/build gmake[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build' [ 4%] Building CXX object CMakeFiles/ebml.dir/src/Debug.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/Debug.cpp.o -MF CMakeFiles/ebml.dir/src/Debug.cpp.o.d -o CMakeFiles/ebml.dir/src/Debug.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/Debug.cpp [ 8%] Building CXX object CMakeFiles/ebml.dir/src/EbmlBinary.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlBinary.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlBinary.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlBinary.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlBinary.cpp [ 12%] Building CXX object CMakeFiles/ebml.dir/src/EbmlContexts.cpp.o [ 16%] Building CXX object CMakeFiles/ebml.dir/src/EbmlCrc32.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlContexts.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlContexts.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlContexts.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlContexts.cpp /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlCrc32.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlCrc32.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlCrc32.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlCrc32.cpp [ 20%] Building CXX object CMakeFiles/ebml.dir/src/EbmlDate.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlDate.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlDate.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlDate.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlDate.cpp [ 29%] Building CXX object CMakeFiles/ebml.dir/src/EbmlElement.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlElement.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlElement.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlElement.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlElement.cpp [ 29%] Building CXX object CMakeFiles/ebml.dir/src/EbmlDummy.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlDummy.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlDummy.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlDummy.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlDummy.cpp [ 33%] Building CXX object CMakeFiles/ebml.dir/src/EbmlHead.cpp.o [ 37%] Building CXX object CMakeFiles/ebml.dir/src/EbmlFloat.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlFloat.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlFloat.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlFloat.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlFloat.cpp /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlHead.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlHead.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlHead.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlHead.cpp [ 41%] Building CXX object CMakeFiles/ebml.dir/src/EbmlMaster.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlMaster.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlMaster.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlMaster.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlMaster.cpp [ 45%] Building CXX object CMakeFiles/ebml.dir/src/EbmlStream.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlStream.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlStream.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlStream.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlStream.cpp [ 50%] Building CXX object CMakeFiles/ebml.dir/src/EbmlString.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlString.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlString.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlString.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp [ 54%] Building CXX object CMakeFiles/ebml.dir/src/EbmlSInteger.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlSInteger.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlSInteger.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlSInteger.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlSInteger.cpp [ 58%] Building CXX object CMakeFiles/ebml.dir/src/EbmlSubHead.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlSubHead.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlSubHead.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlSubHead.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlSubHead.cpp [ 62%] Building CXX object CMakeFiles/ebml.dir/src/EbmlUInteger.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlUInteger.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlUInteger.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlUInteger.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUInteger.cpp [ 66%] Building CXX object CMakeFiles/ebml.dir/src/EbmlUnicodeString.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlUnicodeString.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlUnicodeString.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlUnicodeString.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp: In member function 'virtual filepos_t libebml::EbmlString::ReadData(libebml::IOCallback&, libebml::ScopeMode)': /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp:147:41: error: 'numeric_limits' is not a member of 'std' 147 | auto Buffer = (GetSize() + 1 < std::numeric_limits::max()) ? new (std::nothrow) char[GetSize() + 1] : nullptr; | ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp:147:67: error: expected primary-expression before '>' token 147 | auto Buffer = (GetSize() + 1 < std::numeric_limits::max()) ? new (std::nothrow) char[GetSize() + 1] : nullptr; | ^ /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp:147:70: error: '::max' has not been declared; did you mean 'std::max'? 147 | auto Buffer = (GetSize() + 1 < std::numeric_limits::max()) ? new (std::nothrow) char[GetSize() + 1] : nullptr; | ^~~ | std::max In file included from /usr/include/c++/12/algorithm:61, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/ebml/EbmlEndian.h:41, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/ebml/EbmlTypes.h:38, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/ebml/EbmlString.h:41, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp:38: /usr/include/c++/12/bits/stl_algo.h:5756:5: note: 'std::max' declared here 5756 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlString.cpp:157:17: error: type '' argument given to 'delete', expected pointer 157 | delete [] Buffer; | ^~~~~~ [ 70%] Building CXX object CMakeFiles/ebml.dir/src/EbmlVersion.cpp.o /usr/bin/c++ -Debml_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build -I/home/pterjan/rpmbuild/BUILD/libebml-1.4.2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -MD -MT CMakeFiles/ebml.dir/src/EbmlVersion.cpp.o -MF CMakeFiles/ebml.dir/src/EbmlVersion.cpp.o.d -o CMakeFiles/ebml.dir/src/EbmlVersion.cpp.o -c /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlVersion.cpp gmake[2]: *** [CMakeFiles/ebml.dir/build.make:247: CMakeFiles/ebml.dir/src/EbmlString.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp: In member function 'virtual filepos_t libebml::EbmlUnicodeString::ReadData(libebml::IOCallback&, libebml::ScopeMode)': /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp:312:41: error: 'numeric_limits' is not a member of 'std' 312 | auto Buffer = (GetSize() + 1 < std::numeric_limits::max()) ? new (std::nothrow) char[GetSize()+1] : nullptr; | ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp:312:67: error: expected primary-expression before '>' token 312 | auto Buffer = (GetSize() + 1 < std::numeric_limits::max()) ? new (std::nothrow) char[GetSize()+1] : nullptr; | ^ /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp:312:70: error: '::max' has not been declared; did you mean 'std::max'? 312 | auto Buffer = (GetSize() + 1 < std::numeric_limits::max()) ? new (std::nothrow) char[GetSize()+1] : nullptr; | ^~~ | std::max In file included from /usr/include/c++/12/algorithm:61, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/ebml/EbmlEndian.h:41, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/ebml/EbmlTypes.h:38, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/ebml/EbmlUnicodeString.h:43, from /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp:40: /usr/include/c++/12/bits/stl_algo.h:5756:5: note: 'std::max' declared here 5756 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /home/pterjan/rpmbuild/BUILD/libebml-1.4.2/src/EbmlUnicodeString.cpp:323:17: error: type '' argument given to 'delete', expected pointer 323 | delete [] Buffer; | ^~~~~~ gmake[2]: *** [CMakeFiles/ebml.dir/build.make:289: CMakeFiles/ebml.dir/src/EbmlUnicodeString.cpp.o] Error 1 gmake[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build' gmake[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/ebml.dir/all] Error 2 gmake[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libebml-1.4.2/build' gmake: *** [Makefile:139: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.bMnp4x (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.bMnp4x (%build) I: [iurt_root_command] ERROR: chroot