Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/brotli.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-334563-37058/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/brotli.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/brotli-1.2.0-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/brotli.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-334563-37058/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/brotli.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Ki9807 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf brotli-1.2.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/brotli-1.2.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd brotli-1.2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Y2aov4 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd brotli-1.2.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B loongarch64-OpenCloudOS-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_FLAGS:STRING=-fPIC -- The C compiler identification is GNU 12.3.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Setting build type to Release as none was specified -- Performing Test BROTLI_EMSCRIPTEN -- Performing Test BROTLI_EMSCRIPTEN - Failed -- Compiler is not EMSCRIPTEN -- Looking for log2 in m -- Looking for log2 in m - found Test file tests/testdata/alice29.txt does not exist; OK on tarball builds; consider running scripts/download_testdata.sh before configuring. Test file tests/testdata/asyoulik.txt does not exist; OK on tarball builds; consider running scripts/download_testdata.sh before configuring. Test file tests/testdata/lcet10.txt does not exist; OK on tarball builds; consider running scripts/download_testdata.sh before configuring. Test file tests/testdata/plrabn12.txt does not exist; OK on tarball builds; consider running scripts/download_testdata.sh before configuring. -- Configuring done (0.7s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu + /usr/bin/cmake --build loongarch64-OpenCloudOS-linux-gnu -j32 --verbose /usr/bin/cmake -S/builddir/build/BUILD/brotli-1.2.0 -B/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu/CMakeFiles /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu//CMakeFiles/progress.marks /usr/bin/gmake -f CMakeFiles/Makefile2 all gmake[1]: Entering directory '/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu' /usr/bin/gmake -f CMakeFiles/brotlicommon.dir/build.make CMakeFiles/brotlicommon.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu' cd /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/brotli-1.2.0 /builddir/build/BUILD/brotli-1.2.0 /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu /builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu/CMakeFiles/brotlicommon.dir/DependInfo.cmake --color= gmake[2]: Leaving directory '/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu' /usr/bin/gmake -f CMakeFiles/brotlicommon.dir/build.make CMakeFiles/brotlicommon.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu' [ 5%] Building C object CMakeFiles/brotlicommon.dir/c/common/context.c.o [ 5%] Building C object CMakeFiles/brotlicommon.dir/c/common/constants.c.o /usr/bin/gcc -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_SHARED_COMPILATION -I/builddir/build/BUILD/brotli-1.2.0/c/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/constants.c.o -MF CMakeFiles/brotlicommon.dir/c/common/constants.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/constants.c.o -c /builddir/build/BUILD/brotli-1.2.0/c/common/constants.c /usr/bin/gcc -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_SHARED_COMPILATION -I/builddir/build/BUILD/brotli-1.2.0/c/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/context.c.o -MF CMakeFiles/brotlicommon.dir/c/common/context.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/context.c.o -c /builddir/build/BUILD/brotli-1.2.0/c/common/context.c [ 10%] Building C object CMakeFiles/brotlicommon.dir/c/common/transform.c.o [ 15%] Building C object CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o [ 15%] Building C object CMakeFiles/brotlicommon.dir/c/common/platform.c.o [ 15%] Building C object CMakeFiles/brotlicommon.dir/c/common/shared_dictionary.c.o /usr/bin/gcc -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_SHARED_COMPILATION -I/builddir/build/BUILD/brotli-1.2.0/c/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o -MF CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o -c /builddir/build/BUILD/brotli-1.2.0/c/common/dictionary.c /usr/bin/gcc -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_SHARED_COMPILATION -I/builddir/build/BUILD/brotli-1.2.0/c/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/platform.c.o -MF CMakeFiles/brotlicommon.dir/c/common/platform.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/platform.c.o -c /builddir/build/BUILD/brotli-1.2.0/c/common/platform.c /usr/bin/gcc -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_SHARED_COMPILATION -I/builddir/build/BUILD/brotli-1.2.0/c/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/shared_dictionary.c.o -MF CMakeFiles/brotlicommon.dir/c/common/shared_dictionary.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/shared_dictionary.c.o -c /builddir/build/BUILD/brotli-1.2.0/c/common/shared_dictionary.c /usr/bin/gcc -DBROTLICOMMON_SHARED_COMPILATION -DBROTLI_SHARED_COMPILATION -I/builddir/build/BUILD/brotli-1.2.0/c/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -MD -MT CMakeFiles/brotlicommon.dir/c/common/transform.c.o -MF CMakeFiles/brotlicommon.dir/c/common/transform.c.o.d -o CMakeFiles/brotlicommon.dir/c/common/transform.c.o -c /builddir/build/BUILD/brotli-1.2.0/c/common/transform.c In file included from /builddir/build/BUILD/brotli-1.2.0/c/common/constants.c:7: /builddir/build/BUILD/brotli-1.2.0/c/common/constants.h:196:23: error: invalid argument of 'model' attribute 196 | BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS]; | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/brotli-1.2.0/c/common/constants.c:10:23: error: invalid argument of 'model' attribute 10 | BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = { | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/brotli-1.2.0/c/common/context.c:6:37: error: invalid argument of 'model' attribute 6 | const BROTLI_MODEL("small") uint8_t _kBrotliContextLookupTable[2048] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[2]: *** [CMakeFiles/brotlicommon.dir/build.make:79: CMakeFiles/brotlicommon.dir/c/common/constants.c.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[2]: *** [CMakeFiles/brotlicommon.dir/build.make:93: CMakeFiles/brotlicommon.dir/c/common/context.c.o] Error 1 In file included from /builddir/build/BUILD/brotli-1.2.0/c/common/dictionary.c:16: /builddir/build/BUILD/brotli-1.2.0/c/common/dictionary_inc.h:1:44: error: invalid argument of 'model' attribute 1 | static const BROTLI_MODEL("small") uint8_t kBrotliDictionaryData[] = { | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/brotli-1.2.0/c/common/transform.c:15:41: error: invalid argument of 'model' attribute 15 | static const BROTLI_MODEL("small") char kPrefixSuffix[217] = | ^~~~~~~~~~~~~ /builddir/build/BUILD/brotli-1.2.0/c/common/transform.c:31:45: error: invalid argument of 'model' attribute 31 | static const BROTLI_MODEL("small") uint16_t kPrefixSuffixMap[50] = { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/brotli-1.2.0/c/common/transform.c:40:44: error: invalid argument of 'model' attribute 40 | static const BROTLI_MODEL("small") uint8_t kTransformsData[] = { | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/brotli-1.2.0/c/common/transform.c:165:18: error: invalid argument of 'model' attribute 165 | BrotliTransforms kBrotliTransforms = { | ^~~~~~~~~~~~~~~~~ gmake[2]: *** [CMakeFiles/brotlicommon.dir/build.make:149: CMakeFiles/brotlicommon.dir/c/common/transform.c.o] Error 1 /builddir/build/BUILD/brotli-1.2.0/c/common/dictionary.c:17:53: error: invalid argument of 'model' attribute 17 | static const BROTLI_MODEL("small") BrotliDictionary kBrotliDictionary = { | ^~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu' gmake[2]: *** [CMakeFiles/brotlicommon.dir/build.make:107: CMakeFiles/brotlicommon.dir/c/common/dictionary.c.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:120: CMakeFiles/brotlicommon.dir/all] Error 2 gmake[1]: Leaving directory '/builddir/build/BUILD/brotli-1.2.0/loongarch64-OpenCloudOS-linux-gnu' gmake: *** [Makefile:149: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.Y2aov4 (%build) Bad exit status from /var/tmp/rpm-tmp.Y2aov4 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/brotli.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/brotli.spec'