Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-imread.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683354921.899407/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-imread.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-imread-0.7.4-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-imread.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683354921.899407/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-imread.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-imread-0.7.4-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-imread.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1683354921.899407/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-imread.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.EZv2gT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf imread-0.7.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/imread-0.7.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd imread-0.7.4 + /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.vo3lEW + umask 022 + cd /builddir/build/BUILD + cd imread-0.7.4 + 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' /usr/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: The wheel package is not available. running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/imread copying imread/__init__.py -> build/lib.linux-x86_64-3.9/imread copying imread/special.py -> build/lib.linux-x86_64-3.9/imread copying imread/ijrois.py -> build/lib.linux-x86_64-3.9/imread copying imread/imread_version.py -> build/lib.linux-x86_64-3.9/imread copying imread/imread.py -> build/lib.linux-x86_64-3.9/imread creating build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/__init__.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_imread.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_xcf.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_imsave.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_rois.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_jpeg.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_bmp.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_bad.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_webp.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_formats.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_tiff.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_error.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_imread_from_blob.py -> build/lib.linux-x86_64-3.9/imread/tests copying imread/tests/test_png.py -> build/lib.linux-x86_64-3.9/imread/tests creating build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/star1.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/py-installer-indexed.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/good.png -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/error.unknown -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/diag.xcf -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/error.webp -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/1_webp_a.webp -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/error.jpg -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/GOOD.PNG -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/arange512_16bit.png -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/bit1.png -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/T -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/0186-0099.roi -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/rois.zip -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/error.png -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/ghsystem_flame.jpg -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/error.tif -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/stack.tiff -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/palette_zero.png -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/mono.tif -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/rgba.png -> build/lib.linux-x86_64-3.9/imread/tests/data copying imread/tests/data/good -> build/lib.linux-x86_64-3.9/imread/tests/data creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/TIFF copying imread/tests/data/bad-files/TIFF/00r00.tiff -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/TIFF creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r02.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r00.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r04.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r06.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r01.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r03.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r copying imread/tests/data/bad-files/BMP/00r/00r05.bmp -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/BMP/00r creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/00r copying imread/tests/data/bad-files/LSM/00r/00r01.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/00r copying imread/tests/data/bad-files/LSM/00r/00r02.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/00r copying imread/tests/data/bad-files/LSM/00r/00r03.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/00r copying imread/tests/data/bad-files/LSM/00r/00r00.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/00r creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/01r copying imread/tests/data/bad-files/LSM/01r/01r00.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/01r copying imread/tests/data/bad-files/LSM/01r/01r02.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/01r copying imread/tests/data/bad-files/LSM/01r/01r01.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/01r creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/02r copying imread/tests/data/bad-files/LSM/02r/02r01.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/02r copying imread/tests/data/bad-files/LSM/02r/02r00.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/02r copying imread/tests/data/bad-files/LSM/02r/02r02.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/02r creating build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/03w copying imread/tests/data/bad-files/LSM/03w/03w02.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/03w copying imread/tests/data/bad-files/LSM/03w/03w03.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/03w copying imread/tests/data/bad-files/LSM/03w/03w00.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/03w copying imread/tests/data/bad-files/LSM/03w/03w01.lsm -> build/lib.linux-x86_64-3.9/imread/tests/data/bad-files/LSM/03w running build_ext building 'imread._imread' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/imread creating build/temp.linux-x86_64-3.9/imread/lib 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 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/usr/include/python3.9 -I/builddir/build/BUILD/imread-0.7.4/.eggs/numpy-1.24.3-py3.9-linux-x86_64.egg/numpy/core/include -c imread/_imread.cpp -o build/temp.linux-x86_64-3.9/imread/_imread.o 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 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/usr/include/python3.9 -I/builddir/build/BUILD/imread-0.7.4/.eggs/numpy-1.24.3-py3.9-linux-x86_64.egg/numpy/core/include -c imread/lib/_bmp.cpp -o build/temp.linux-x86_64-3.9/imread/lib/_bmp.o imread/lib/_bmp.cpp: In function ‘void {anonymous}::color_expand(const std::vector&, byte*, int)’: imread/lib/_bmp.cpp:28:32: warning: comparison of integer expressions of different signedness: ‘std::vector::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 28 | if (color_table.size() < 4*row[i] + 3) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 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 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/usr/include/python3.9 -I/builddir/build/BUILD/imread-0.7.4/.eggs/numpy-1.24.3-py3.9-linux-x86_64.egg/numpy/core/include -c imread/lib/_jpeg.cpp -o build/temp.linux-x86_64-3.9/imread/lib/_jpeg.o imread/lib/_jpeg.cpp:10:10: fatal error: jpeglib.h: No such file or directory 10 | #include | ^~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.vo3lEW (%build) Bad exit status from /var/tmp/rpm-tmp.vo3lEW (%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-imread.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-imread.spec