Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/boost.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1722598526.037228/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/boost.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 warning: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/boost-1.75.0-8.src.rpm RPM build warnings: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/boost.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1722598526.037228/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/boost.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 warning: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/boost-1.75.0-8.src.rpm RPM build warnings: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/boost.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1722598526.037228/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/boost.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 warning: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.m5wa4L + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf boost_1_75_0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/boost_1_75_0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd boost_1_75_0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find ./boost -name '*.hpp' -perm /111 + xargs chmod a-x + echo 'Patch #15 (boost-1.58.0-pool.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 Patch #15 (boost-1.58.0-pool.patch): patching file boost/pool/pool.hpp Hunk #2 succeeded at 358 (offset -2 lines). Hunk #3 succeeded at 384 (offset -2 lines). Hunk #4 succeeded at 409 (offset -2 lines). Hunk #5 succeeded at 419 (offset -2 lines). Hunk #6 succeeded at 721 (offset -4 lines). Hunk #7 succeeded at 761 (offset -4 lines). Hunk #8 succeeded at 805 (offset -4 lines). Hunk #9 succeeded at 855 (offset -4 lines). patching file libs/pool/test/test_bug_6701.cpp Patch #51 (boost-1.58.0-pool-test_linking.patch): + echo 'Patch #51 (boost-1.58.0-pool-test_linking.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file libs/pool/test/Jamfile.v2 Patch #96 (boost-1.75.0-build-optflags.patch): + echo 'Patch #96 (boost-1.75.0-build-optflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/build/src/tools/gcc.jam Patch #97 (boost-1.75.0-no-rpath.patch): + echo 'Patch #97 (boost-1.75.0-no-rpath.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/build/src/tools/gcc.jam + echo 'Patch #83 (boost-1.73.0-b2-build-flags.patch):' Patch #83 (boost-1.73.0-b2-build-flags.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/build/src/engine/build.sh Patch #88 (boost-1.73.0-cmakedir.patch): + echo 'Patch #88 (boost-1.73.0-cmakedir.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/boost_install/boost-install.jam Hunk #1 succeeded at 709 (offset 57 lines). Patch #93 (boost-1.73-python3.10.patch): + echo 'Patch #93 (boost-1.73-python3.10.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file boost/parameter/python.hpp patching file libs/python/src/object/class.cpp patching file libs/python/src/object/life_support.cpp patching file libs/python/src/object/function.cpp patching file libs/python/src/object/enum.cpp patching file boost/python/object/make_instance.hpp Patch #94 (boost-1.73-locale-empty-vector.patch): + echo 'Patch #94 (boost-1.73-locale-empty-vector.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file libs/locale/src/icu/collator.cpp + echo 'Patch #95 (boost-1.75.0-boost-build-fix.patch):' Patch #95 (boost-1.75.0-boost-build-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tools/build/src/engine/startup.cpp + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mn7VlM + umask 022 + cd /builddir/build/BUILD + cd boost_1_75_0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + export LDFLAGS ++ /usr/bin/python3-config --abiflags + PYTHON3_ABIFLAGS= + : PYTHON3_VERSION=3.11 + : PYTHON3_ABIFLAGS= + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-unused-local-typedefs -Wno-deprecated-declarations' + RPM_OPT_FLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-unused-local-typedefs -Wno-deprecated-declarations' + export RPM_LD_FLAGS + cat + cat + ./bootstrap.sh '--with-toolset=%{toolchain}' --with-icu Building B2 engine.. ### ### ### Using 'gcc' toolset. ### ### > g++ --version g++ (GCC) 12.3.1 (openEuler 12.3.1-16.oe2309) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ### ### > g++ -x c++ -std=c++11 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld -DNDEBUG builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp filesys.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathsys.cpp regexp.cpp rules.cpp scan.cpp search.cpp jam_strings.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp execunix.cpp fileunix.cpp pathunix.cpp -o b2 debugger.cpp: In function 'LIST* debug_list_read(FILE*)': debugger.cpp:163:9: warning: variable 'ch' set but not used [-Wunused-but-set-variable] 163 | int ch; | ^~ debugger.cpp:165:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 165 | fscanf( in, "%d", &len ); | ~~~~~~^~~~~~~~~~~~~~~~~~ execcmd.cpp: In function 'void argv_from_shell(const char**, LIST*, const char*, int)': execcmd.cpp:55:22: warning: '%d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 55 | sprintf( jobno, "%d", slot + 1 ); | ^~ execcmd.cpp:55:21: note: directive argument in the range [-2147483647, 2147483647] 55 | sprintf( jobno, "%d", slot + 1 ); | ^~~~ In file included from /usr/include/stdio.h:964, from jam.h:343, from execcmd.cpp:11: In function 'int sprintf(char*, const char*, ...)', inlined from 'void argv_from_shell(const char**, LIST*, const char*, int)' at execcmd.cpp:55:12: /usr/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 2 and 12 bytes into a destination of size 4 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ function.cpp: In function 'LIST* function_run(FUNCTION*, FRAME*, STACK*)': function.cpp:3874:12: warning: unused variable 'saved_stack' [-Wunused-variable] 3874 | void * saved_stack = s->data; | ^~~~~~~~~~~ In function 'void type_check(OBJECT*, LIST*, FRAME*, FUNCTION*, OBJECT*)', inlined from 'void argument_list_push(arg_list*, int, FUNCTION*, FRAME*, STACK*)' at function.cpp:3229:23: function.cpp:3112:21: warning: 'value' may be used uninitialized [-Wmaybe-uninitialized] 3112 | type_check_range( type_name, list_begin( values ), list_end( values ), | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3113 | caller, called, arg_name ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ function.cpp: In function 'void argument_list_push(arg_list*, int, FUNCTION*, FRAME*, STACK*)': function.cpp:3196:20: note: 'value' was declared here 3196 | LIST * value; | ^~~~~ In function 'CMD* make1cmds(TARGET*)', inlined from 'void make1b(state*)' at make1.cpp:468:44, inlined from 'int make1(LIST*)' at make1.cpp:231:44: make1.cpp:1262:34: warning: 'last_cmd' may be used uninitialized [-Wmaybe-uninitialized] 1262 | a0->action->last_cmd = last_cmd; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ make1.cpp: In function 'int make1(LIST*)': make1.cpp:1068:11: note: 'last_cmd' was declared here 1068 | CMD * last_cmd; | ^~~~~~~~ object.cpp:240:13: warning: 'void object_validate(OBJECT*)' defined but not used [-Wunused-function] 240 | static void object_validate( OBJECT * obj ) | ^~~~~~~~~~~~~~~ object.cpp:233:27: warning: 'hash_item* object_get_item(OBJECT*)' defined but not used [-Wunused-function] 233 | static struct hash_item * object_get_item( OBJECT * obj ) | ^~~~~~~~~~~~~~~ > cp b2 bjam tools/build/src/engine/b2 Unicode/ICU support for Boost.Regex?... /usr Generating B2 configuration in project-config.jam for %{toolchain}... Bootstrapping is done. To build, run: ./b2 To generate header files, run: ./b2 headers To adjust configuration, edit 'project-config.jam'. Further information: - Command line help: ./b2 --help - Getting started guide: http://www.boost.org/more/getting_started/unix-variants.html - B2 documentation: http://www.boost.org/build/ ============================= build serial ================== + echo ============================= build serial ================== + ./b2 -d+2 -q -j4 --without-mpi --without-graph_parallel --build-dir=serial variant=release threading=multi debug-symbols=on pch=off python=3.11 stage %{toolchain}.jam: No such file or directory /builddir/build/BUILD/boost_1_75_0/tools/build/src/user-config.jam:5: Unescaped special character in argument %{toolchain} /builddir/build/BUILD/boost_1_75_0/tools/build/src/build/toolset.jam:44: in toolset.using ERROR: rule "%{toolchain}.init" unknown in module "toolset". /builddir/build/BUILD/boost_1_75_0/tools/build/src/build/project.jam:1104: in using /builddir/build/BUILD/boost_1_75_0/tools/build/src/user-config.jam:5: in modules.load /builddir/build/BUILD/boost_1_75_0/tools/build/src/build-system.jam:255: in load-config /builddir/build/BUILD/boost_1_75_0/tools/build/src/build-system.jam:453: in load-configuration-files /builddir/build/BUILD/boost_1_75_0/tools/build/src/build-system.jam:607: in load /builddir/build/BUILD/boost_1_75_0/tools/build/src/kernel/modules.jam:295: in import /builddir/build/BUILD/boost_1_75_0/tools/build/src/kernel/bootstrap.jam:139: in boost-build /builddir/build/BUILD/boost_1_75_0/boost-build.jam:17: in module scope error: Bad exit status from /var/tmp/rpm-tmp.mn7VlM (%build) %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.mn7VlM (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/boost.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/boost.spec