Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-gdal.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681471792.653834/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-gdal.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-GDAL-3.6.3-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-gdal.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681471792.653834/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-gdal.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-GDAL-3.6.3-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-gdal.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681471792.653834/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-gdal.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.T9aOpV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf GDAL-3.6.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/GDAL-3.6.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd GDAL-3.6.3 + /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.ynGtis + umask 022 + cd /builddir/build/BUILD + cd GDAL-3.6.3 + 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' WARNING: numpy not available! Array support will not be enabled running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/osgeo copying osgeo/__init__.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/gnm.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/gdal.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/gdalconst.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/osr.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/ogr.py -> build/lib.linux-x86_64-3.9/osgeo copying osgeo/gdal_array.py -> build/lib.linux-x86_64-3.9/osgeo creating build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_fillnodata.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_polygonize.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/__init__.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdalmove.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_merge.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_calc.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdalcompare.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_edit.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/pct2rgb.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_retile.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/ogrmerge.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/rgb2pct.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_pansharpen.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal2tiles.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdalattachpct.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_sieve.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal2xyz.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/ogr_layer_algebra.py -> build/lib.linux-x86_64-3.9/osgeo_utils copying gdal-utils/osgeo_utils/gdal_proximity.py -> build/lib.linux-x86_64-3.9/osgeo_utils creating build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdalinfo.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_create_pdf.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/__init__.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gcps2vec.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdallocationinfo.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_ls.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/densify.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/classify.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdalfilter.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/epsg_tr.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/esri2wkt.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_vrtmerge.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/mkgraticule.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/validate_jp2.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_rmdir.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/fft.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/val_repl.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/vec_tr_spat.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdalimport.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/histrep.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdalchksum.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/load2odbc.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/vec_tr.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/ogr2vrt.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/ogr_build_junction_table.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/ogr2ogr.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_zip.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/tile_extent_from_raster.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/hsv_merge.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdalcopyproj.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_rm.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/dump_jp2.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_mkdir.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_auth.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/ogr_dispatch.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gcps2ogr.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/build_jp2_from_xml.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/ogrinfo.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/tolatlong.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal2grd.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_cp.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/ogrupdate.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/fix_gpkg.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/wcs_virtds_params.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/make_fuzzer_friendly_archive.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_lut.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/get_soundg.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/rel.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/validate_gpkg.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/loslas2ntv2.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdalident.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/tigerpoly.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gdal_remove_towgs84.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/assemblepoly.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/gcps2wld.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/crs2crs2grid.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/jpeg_in_tiff_extract.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples copying gdal-utils/osgeo_utils/samples/magphase.py -> build/lib.linux-x86_64-3.9/osgeo_utils/samples creating build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/__init__.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/extent_util.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/color_table.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/raster_creation.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/progress.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/base.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/util.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/batch_creator.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/color_palette.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/numpy_util.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/osr_util.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/rectangle.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary copying gdal-utils/osgeo_utils/auxiliary/array_util.py -> build/lib.linux-x86_64-3.9/osgeo_utils/auxiliary running build_ext Traceback (most recent call last): File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 87, in fetch_config p = subprocess.Popen([command, args], stdout=subprocess.PIPE) File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 188, in get_gdal_config return fetch_config(option, gdal_config=self.gdal_config) File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 90, in fetch_config raise gdal_config_error(e) __main__.gdal_config_error: [Errno 2] No such file or directory: 'gdal-config' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 350, in setup( File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib64/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib64/python3.9/distutils/dist.py", line 984, in run_command cmd_obj.ensure_finalized() File "/usr/lib64/python3.9/distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 255, in finalize_options gdaldir = self.get_gdal_config('prefix') File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 194, in get_gdal_config raise gdal_config_error(traceback_string + '\n' + msg) __main__.gdal_config_error: Traceback (most recent call last): File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 87, in fetch_config p = subprocess.Popen([command, args], stdout=subprocess.PIPE) File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 188, in get_gdal_config return fetch_config(option, gdal_config=self.gdal_config) File "/builddir/build/BUILD/GDAL-3.6.3/setup.py", line 90, in fetch_config raise gdal_config_error(e) gdal_config_error: [Errno 2] No such file or directory: 'gdal-config' Could not find gdal-config. Make sure you have installed the GDAL native library and development headers. RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.ynGtis (%build) Bad exit status from /var/tmp/rpm-tmp.ynGtis (%build) 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-gdal.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-gdal.spec