Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec'], chrootPath='/var/lib/mock/openeuler-22.03-aarch64-1681956153.792035/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffb6e0da90>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
/etc/profile.d/system-info.sh: line 55: ps: command not found
Building target platforms: aarch64
Building for target aarch64
Wrote: /builddir/build/SRPMS/python-mahotas-1.4.13-1.src.rpm
Child return code was: 0
Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec'], chrootPath='/var/lib/mock/openeuler-22.03-aarch64-1681956153.792035/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffadf22090>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
/etc/profile.d/system-info.sh: line 55: ps: command not found
Building target platforms: aarch64
Building for target aarch64
Wrote: /builddir/build/SRPMS/python-mahotas-1.4.13-1.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec'], chrootPath='/var/lib/mock/openeuler-22.03-aarch64-1681956153.792035/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffffadf22090>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
/etc/profile.d/system-info.sh: line 55: ps: command not found
Building target platforms: aarch64
Building for target aarch64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rEGWSS
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf mahotas-1.4.13
+ /usr/bin/gzip -dc /builddir/build/SOURCES/mahotas-1.4.13.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mahotas-1.4.13
+ /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.cLqKRb
+ umask 022
+ cd /builddir/build/BUILD
+ cd mahotas-1.4.13
+ 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 -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-aarch64-3.9
creating build/lib.linux-aarch64-3.9/mahotas
copying mahotas/polygon.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/convolve.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/labeled.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/internal.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/center_of_mass.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/texture.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/bbox.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/distance.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/resize.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/segmentation.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/thin.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/freeimage.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/euler.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/interpolate.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/__init__.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/morph.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/bwperim.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/mahotas_version.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/surf.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/_filters.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/zernike.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/tas.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/lbp.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/histogram.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/features_cli.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/edge.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/colors.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/stretch.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/thresholding.py -> build/lib.linux-aarch64-3.9/mahotas
copying mahotas/moments.py -> build/lib.linux-aarch64-3.9/mahotas
creating build/lib.linux-aarch64-3.9/mahotas/io
copying mahotas/io/freeimage.py -> build/lib.linux-aarch64-3.9/mahotas/io
copying mahotas/io/pil.py -> build/lib.linux-aarch64-3.9/mahotas/io
copying mahotas/io/__init__.py -> build/lib.linux-aarch64-3.9/mahotas/io
creating build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/texture.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/shape.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/__init__.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/surf.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/zernike.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/tas.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/lbp.py -> build/lib.linux-aarch64-3.9/mahotas/features
copying mahotas/features/moments.py -> build/lib.linux-aarch64-3.9/mahotas/features
creating build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_demos.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_mean_filter.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_edge.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_zernike.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_features_shape.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_internal.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_surf.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_citation.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_colors.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_label.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_imresize.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_freeimage.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/utils.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_lbp.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_watershed.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_tas.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_median_filter.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_distance.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_thin.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_gvoronoi.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/__init__.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_center_of_mass.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_find.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_bbox.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_mahotas.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_bwperim.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/pymorph_copy.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_majority.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_surf_regression.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_thresholding.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_close_holes.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_segmentation.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_morph.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_histogram.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_interpolate.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_hitmiss.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_polygon.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_texture.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_filters.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_euler.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_dilate_erode.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_stretch.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_io.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_labeled.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_moments.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_convolve.py -> build/lib.linux-aarch64-3.9/mahotas/tests
copying mahotas/tests/test_template_match.py -> build/lib.linux-aarch64-3.9/mahotas/tests
creating build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/surf_luispedro.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/wally.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/superpixels.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/distance.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/morphology.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/edge_demo.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/__init__.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/nuclear.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/nuclear_distance_watershed.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/surf_gaussians.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/wavelet_compress.py -> build/lib.linux-aarch64-3.9/mahotas/demos
copying mahotas/demos/thresholding.py -> build/lib.linux-aarch64-3.9/mahotas/demos
creating build/lib.linux-aarch64-3.9/mahotas/tests/data
copying mahotas/tests/data/rgba.png -> build/lib.linux-aarch64-3.9/mahotas/tests/data
copying mahotas/tests/data/determinant_zero.png -> build/lib.linux-aarch64-3.9/mahotas/tests/data
copying mahotas/tests/data/1bpp.bmp -> build/lib.linux-aarch64-3.9/mahotas/tests/data
copying mahotas/tests/data/luispedro.npy -> build/lib.linux-aarch64-3.9/mahotas/tests/data
creating build/lib.linux-aarch64-3.9/mahotas/demos/data
copying mahotas/demos/data/nuclear.png -> build/lib.linux-aarch64-3.9/mahotas/demos/data
copying mahotas/demos/data/luispedro.jpg -> build/lib.linux-aarch64-3.9/mahotas/demos/data
copying mahotas/demos/data/DepartmentStore.jpg -> build/lib.linux-aarch64-3.9/mahotas/demos/data
copying mahotas/demos/data/lena.jpg -> build/lib.linux-aarch64-3.9/mahotas/demos/data
running build_ext
building 'mahotas._bbox' extension
creating build/temp.linux-aarch64-3.9
creating build/temp.linux-aarch64-3.9/mahotas
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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=Mahotas_PyArray_API_Symbol -I[] -I/usr/include/python3.9 -c mahotas/_bbox.cpp -o build/temp.linux-aarch64-3.9/mahotas/_bbox.o
In file included from mahotas/numpypp/array.hpp:17,
                 from mahotas/_bbox.cpp:11:
mahotas/numpypp/numpy.hpp:11:10: fatal error: numpy/ndarrayobject.h: No such file or directory
   11 | #include <numpy/ndarrayobject.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
error: Bad exit status from /var/tmp/rpm-tmp.cLqKRb (%build)
    Bad exit status from /var/tmp/rpm-tmp.cLqKRb (%build)
RPM build errors:
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb  --target aarch64 --nodeps /builddir/build/SPECS/python-mahotas.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 aarch64 --nodeps /builddir/build/SPECS/python-mahotas.spec