Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-epanettools.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683320144.856739/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=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-epanettools.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-EPANETTOOLS-1.0.0-1.src.rpm 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/python-epanettools.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683320144.856739/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=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-epanettools.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-EPANETTOOLS-1.0.0-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-epanettools.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683320144.856739/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=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-epanettools.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LPaeKV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf EPANETTOOLS-1.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/EPANETTOOLS-1.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd EPANETTOOLS-1.0.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.vDTEfz + umask 022 + cd /builddir/build/BUILD + cd EPANETTOOLS-1.0.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 ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/__init__.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/epanettools.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/adf.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/pdd_class_wrapper.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/pdd.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/tools.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/epanet2.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/cli.py -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/__main__.py -> build/lib.linux-x86_64-3.9/epanettools running egg_info writing src/EPANETTOOLS.egg-info/PKG-INFO writing dependency_links to src/EPANETTOOLS.egg-info/dependency_links.txt writing entry points to src/EPANETTOOLS.egg-info/entry_points.txt writing top-level names to src/EPANETTOOLS.egg-info/top_level.txt reading manifest file 'src/EPANETTOOLS.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'examples' warning: no files found matching '.isort.cfg' warning: no previously-included files found matching 'tests/*.inp' warning: no previously-included files matching '*.py[cod]' found anywhere in distribution warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution warning: no previously-included files matching '*.dylib' found anywhere in distribution adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file 'src/EPANETTOOLS.egg-info/SOURCES.txt' copying src/epanettools/adf.i -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/adf_wrap.cxx -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/epanet2.i -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/epanet2_wrap.c -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/patch.c -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/patch.h -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/pdd.i -> build/lib.linux-x86_64-3.9/epanettools copying src/epanettools/pdd_wrap.cxx -> build/lib.linux-x86_64-3.9/epanettools creating build/lib.linux-x86_64-3.9/epanettools/adf copying src/epanettools/adf/adfandenergycalc.h -> build/lib.linux-x86_64-3.9/epanettools/adf copying src/epanettools/adf/callepanet.cc -> build/lib.linux-x86_64-3.9/epanettools/adf copying src/epanettools/adf/callepanet.h -> build/lib.linux-x86_64-3.9/epanettools/adf copying src/epanettools/adf/main.cc -> build/lib.linux-x86_64-3.9/epanettools/adf creating build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/enumstxt.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/epanet.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/epanet2.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/funcs.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/hash.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/hash.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/hydraul.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/inpfile.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/input1.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/input2.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/input3.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/mempool.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/mempool.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/output.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/quality.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/report.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/rules.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/smatrix.c -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/text.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/toolkit.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/types.h -> build/lib.linux-x86_64-3.9/epanettools/epanet copying src/epanettools/epanet/vars.h -> build/lib.linux-x86_64-3.9/epanettools/epanet creating build/lib.linux-x86_64-3.9/epanettools/examples copying src/epanettools/examples/__init__.py -> build/lib.linux-x86_64-3.9/epanettools/examples creating build/lib.linux-x86_64-3.9/epanettools/examples/simple copying src/epanettools/examples/simple/Net1.inp -> build/lib.linux-x86_64-3.9/epanettools/examples/simple copying src/epanettools/examples/simple/Net2.inp -> build/lib.linux-x86_64-3.9/epanettools/examples/simple copying src/epanettools/examples/simple/Net3.inp -> build/lib.linux-x86_64-3.9/epanettools/examples/simple copying src/epanettools/examples/simple/__init__.py -> build/lib.linux-x86_64-3.9/epanettools/examples/simple copying src/epanettools/examples/simple/epanet2_test.py -> build/lib.linux-x86_64-3.9/epanettools/examples/simple creating build/lib.linux-x86_64-3.9/epanettools/pdd copying src/epanettools/pdd/README.txt -> build/lib.linux-x86_64-3.9/epanettools/pdd copying src/epanettools/pdd/emitter_analysis.cpp -> build/lib.linux-x86_64-3.9/epanettools/pdd copying src/epanettools/pdd/include.h -> build/lib.linux-x86_64-3.9/epanettools/pdd copying src/epanettools/pdd/mods.cpp -> build/lib.linux-x86_64-3.9/epanettools/pdd copying src/epanettools/pdd/wrap.cpp -> build/lib.linux-x86_64-3.9/epanettools/pdd copying src/epanettools/pdd/wrapper.h -> build/lib.linux-x86_64-3.9/epanettools/pdd running build_ext building '_epanet2' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/src creating build/temp.linux-x86_64-3.9/src/epanettools creating build/temp.linux-x86_64-3.9/src/epanettools/epanet creating build/temp.linux-x86_64-3.9/src/epanettools/pdd gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -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 -fPIC -Isrc/epanettools/adf -Isrc/epanettools/epanet -Isrc/epanettools/pdd -I/usr/include/python3.9 -c src/epanettools/epanet/epanet.c -o build/temp.linux-x86_64-3.9/src/epanettools/epanet/epanet.o -Wno-format -O0 cc1: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security] In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from src/epanettools/epanet/epanet.c:132: /usr/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ cc1: some warnings being treated as errors error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.vDTEfz (%build) Bad exit status from /var/tmp/rpm-tmp.vDTEfz (%build) 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/python-epanettools.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 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/python-epanettools.spec