Mock Version: 3.5
Mock Version: 3.5
Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/firefox.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-297754-29053/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 0x7fffe1163dc0>timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/firefox.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
warning: %patchN is deprecated (16 usages found), use %patch N (or %patch -P N)
Building target platforms: loongarch64
Building for target loongarch64
Wrote: /builddir/build/SRPMS/firefox-128.3.1-2.ocs23.src.rpm
RPM build warnings:
    %patchN is deprecated (16 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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/firefox.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-297754-29053/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 0x7fffe1163dc0>timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/firefox.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
warning: %patchN is deprecated (16 usages found), use %patch N (or %patch -P N)
Building target platforms: loongarch64
Building for target loongarch64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Up3acx
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf firefox-128.3.1
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/firefox-128.3.1esr.processed-source.tar.xz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd firefox-128.3.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (build-disable-elfhack.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
Patch #1 (build-disable-elfhack.patch):
patching file toolkit/moz.configure
Patch #2 (firefox-gcc-build.patch):
+ echo 'Patch #2 (firefox-gcc-build.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file toolkit/crashreporter/google-breakpad/src/third_party/lss/linux_syscall_support.h
Patch #3 (build-big-endian-errors.patch):
+ echo 'Patch #3 (build-big-endian-errors.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file third_party/libwebrtc/common_audio/wav_file.cc
patching file third_party/libwebrtc/common_audio/wav_header.cc
Patch #4 (build-ffvpx.patch):
+ echo 'Patch #4 (build-ffvpx.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file media/ffvpx/libavcodec/av1dec.c
patching file media/ffvpx/libavcodec/libdav1d.c
Patch #5 (build-disable-gamepad.patch):
+ echo 'Patch #5 (build-disable-gamepad.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file dom/gamepad/moz.build
Patch #101 (mozilla-bmo1636168-fscreen.patch):
+ echo 'Patch #101 (mozilla-bmo1636168-fscreen.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file widget/gtk/nsWindow.cpp
Hunk #3 succeeded at 5392 (offset 16 lines).
Hunk #4 succeeded at 7561 (offset 20 lines).
patching file widget/gtk/nsWindow.h
Hunk #1 succeeded at 761 (offset 3 lines).
Patch #102 (mozilla-bmo1670333.patch):
+ echo 'Patch #102 (mozilla-bmo1670333.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file dom/media/mp4/MP4Demuxer.cpp
patching file dom/media/platforms/PDMFactory.cpp
patching file dom/media/platforms/PDMFactory.h
Patch #103 (mozilla-bmo1504834-part1.patch):
+ echo 'Patch #103 (mozilla-bmo1504834-part1.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file gfx/2d/DrawTargetSkia.cpp
patching file gfx/2d/Types.h
patching file gfx/skia/skia/modules/skcms/skcms.cc
Patch #104 (mozilla-bmo1504834-part3.patch):
+ echo 'Patch #104 (mozilla-bmo1504834-part3.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file gfx/skia/skia/src/opts/SkBlitMask_opts.h
Hunk #1 succeeded at 386 (offset 176 lines).
Patch #105 (mozilla-bmo849632.patch):
+ echo 'Patch #105 (mozilla-bmo849632.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file gfx/gl/GLContext.h
Hunk #1 succeeded at 1588 (offset 28 lines).
Patch #106 (mozilla-bmo998749.patch):
+ echo 'Patch #106 (mozilla-bmo998749.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file gfx/2d/FilterProcessing.h
Patch #107 (mozilla-bmo1716707-swizzle.patch):
+ echo 'Patch #107 (mozilla-bmo1716707-swizzle.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file gfx/webrender_bindings/RenderCompositorSWGL.cpp
Hunk #2 succeeded at 243 (offset 7 lines).
Patch #108 (mozilla-bmo1716707-svg.patch):
+ echo 'Patch #108 (mozilla-bmo1716707-svg.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file image/imgFrame.cpp
Patch #109 (mozilla-bmo1789216-disable-av1.patch):
+ echo 'Patch #109 (mozilla-bmo1789216-disable-av1.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file media/ffvpx/libavcodec/allcodecs.c
patching file media/ffvpx/libavcodec/codec_list.c
patching file media/ffvpx/libavcodec/moz.build
Patch #110 (build-libaom.patch):
+ echo 'Patch #110 (build-libaom.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file config/external/moz.build
Patch #306 (add-loongarch64-support-for-libwebrtc.patch):
+ echo 'Patch #306 (add-loongarch64-support-for-libwebrtc.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file third_party/libwebrtc/build/build_config.h
+ rm -f .mozconfig
+ cp /builddir/build/SOURCES/firefox-mozconfig .mozconfig
+ cp /builddir/build/SOURCES/mozilla-api-key mozilla-api-key
+ cp /builddir/build/SOURCES/google-api-key google-api-key
+ cp /builddir/build/SOURCES/google-loc-api-key google-loc-api-key
+ echo 'ac_add_options --prefix="/usr"'
+ echo 'ac_add_options --libdir="/usr/lib64"'
+ echo 'ac_add_options --with-system-nspr'
+ echo 'ac_add_options --with-system-nss'
+ echo 'ac_add_options --enable-optimize'
+ echo 'ac_add_options --disable-debug'
+ echo 'ac_add_options --disable-jemalloc'
+ echo 'ac_add_options --disable-tests'
+ echo 'ac_add_options --without-system-libvpx'
+ echo 'ac_add_options --disable-lto'
++ pwd
+ echo 'ac_add_options --with-mozilla-api-keyfile=/builddir/build/BUILD/firefox-128.3.1/mozilla-api-key'
++ pwd
+ echo 'ac_add_options --with-google-location-service-api-keyfile=/builddir/build/BUILD/firefox-128.3.1/google-loc-api-key'
++ pwd
+ echo 'ac_add_options --with-google-safebrowsing-api-keyfile=/builddir/build/BUILD/firefox-128.3.1/google-api-key'
+ echo 'export NODEJS="/builddir/build/BUILDROOT/bin/node-stdout-nonblocking-wrapper"'
+ chmod -x third_party/rust/itertools/src/lib.rs
+ chmod a-x third_party/rust/ash/src/extensions/ext/acquire_drm_display.rs third_party/rust/ash/src/extensions/ext/buffer_device_address.rs third_party/rust/ash/src/extensions/ext/calibrated_timestamps.rs third_party/rust/ash/src/extensions/ext/debug_marker.rs third_party/rust/ash/src/extensions/ext/debug_report.rs third_party/rust/ash/src/extensions/ext/debug_utils.rs third_party/rust/ash/src/extensions/ext/descriptor_buffer.rs third_party/rust/ash/src/extensions/ext/extended_dynamic_state.rs third_party/rust/ash/src/extensions/ext/extended_dynamic_state2.rs third_party/rust/ash/src/extensions/ext/extended_dynamic_state3.rs third_party/rust/ash/src/extensions/ext/full_screen_exclusive.rs third_party/rust/ash/src/extensions/ext/hdr_metadata.rs third_party/rust/ash/src/extensions/ext/headless_surface.rs third_party/rust/ash/src/extensions/ext/host_image_copy.rs third_party/rust/ash/src/extensions/ext/image_compression_control.rs third_party/rust/ash/src/extensions/ext/image_drm_format_modifier.rs third_party/rust/ash/src/extensions/ext/mesh_shader.rs third_party/rust/ash/src/extensions/ext/metal_surface.rs third_party/rust/ash/src/extensions/ext/mod.rs third_party/rust/ash/src/extensions/ext/pipeline_properties.rs third_party/rust/ash/src/extensions/ext/private_data.rs third_party/rust/ash/src/extensions/ext/sample_locations.rs third_party/rust/ash/src/extensions/ext/shader_object.rs third_party/rust/ash/src/extensions/ext/swapchain_maintenance1.rs third_party/rust/ash/src/extensions/ext/tooling_info.rs third_party/rust/ash/src/extensions/ext/vertex_input_dynamic_state.rs
+ chmod a-x third_party/rust/ash/src/extensions/khr/acceleration_structure.rs third_party/rust/ash/src/extensions/khr/android_surface.rs third_party/rust/ash/src/extensions/khr/buffer_device_address.rs third_party/rust/ash/src/extensions/khr/calibrated_timestamps.rs third_party/rust/ash/src/extensions/khr/cooperative_matrix.rs third_party/rust/ash/src/extensions/khr/copy_commands2.rs third_party/rust/ash/src/extensions/khr/create_renderpass2.rs third_party/rust/ash/src/extensions/khr/deferred_host_operations.rs third_party/rust/ash/src/extensions/khr/device_group.rs third_party/rust/ash/src/extensions/khr/device_group_creation.rs third_party/rust/ash/src/extensions/khr/display.rs third_party/rust/ash/src/extensions/khr/display_swapchain.rs third_party/rust/ash/src/extensions/khr/draw_indirect_count.rs third_party/rust/ash/src/extensions/khr/dynamic_rendering.rs third_party/rust/ash/src/extensions/khr/dynamic_rendering_local_read.rs third_party/rust/ash/src/extensions/khr/external_fence_fd.rs third_party/rust/ash/src/extensions/khr/external_fence_win32.rs third_party/rust/ash/src/extensions/khr/external_memory_fd.rs third_party/rust/ash/src/extensions/khr/external_memory_win32.rs third_party/rust/ash/src/extensions/khr/external_semaphore_fd.rs third_party/rust/ash/src/extensions/khr/external_semaphore_win32.rs third_party/rust/ash/src/extensions/khr/get_memory_requirements2.rs third_party/rust/ash/src/extensions/khr/get_physical_device_properties2.rs third_party/rust/ash/src/extensions/khr/get_surface_capabilities2.rs third_party/rust/ash/src/extensions/khr/line_rasterization.rs third_party/rust/ash/src/extensions/khr/maintenance1.rs third_party/rust/ash/src/extensions/khr/maintenance3.rs third_party/rust/ash/src/extensions/khr/maintenance4.rs third_party/rust/ash/src/extensions/khr/maintenance5.rs third_party/rust/ash/src/extensions/khr/maintenance6.rs third_party/rust/ash/src/extensions/khr/mod.rs third_party/rust/ash/src/extensions/khr/performance_query.rs third_party/rust/ash/src/extensions/khr/pipeline_executable_properties.rs third_party/rust/ash/src/extensions/khr/present_wait.rs third_party/rust/ash/src/extensions/khr/push_descriptor.rs third_party/rust/ash/src/extensions/khr/ray_tracing_maintenance1.rs third_party/rust/ash/src/extensions/khr/ray_tracing_pipeline.rs third_party/rust/ash/src/extensions/khr/sampler_ycbcr_conversion.rs third_party/rust/ash/src/extensions/khr/surface.rs third_party/rust/ash/src/extensions/khr/swapchain.rs third_party/rust/ash/src/extensions/khr/synchronization2.rs third_party/rust/ash/src/extensions/khr/timeline_semaphore.rs third_party/rust/ash/src/extensions/khr/wayland_surface.rs third_party/rust/ash/src/extensions/khr/win32_surface.rs third_party/rust/ash/src/extensions/khr/xcb_surface.rs third_party/rust/ash/src/extensions/khr/xlib_surface.rs
+ chmod a-x third_party/rust/ash/src/extensions/nv/copy_memory_indirect.rs third_party/rust/ash/src/extensions/nv/coverage_reduction_mode.rs third_party/rust/ash/src/extensions/nv/cuda_kernel_launch.rs third_party/rust/ash/src/extensions/nv/device_diagnostic_checkpoints.rs third_party/rust/ash/src/extensions/nv/device_generated_commands_compute.rs third_party/rust/ash/src/extensions/nv/low_latency2.rs third_party/rust/ash/src/extensions/nv/memory_decompression.rs third_party/rust/ash/src/extensions/nv/mesh_shader.rs third_party/rust/ash/src/extensions/nv/mod.rs third_party/rust/ash/src/extensions/nv/ray_tracing.rs
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8uwCWR
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CFLAGS
+ CXXFLAGS='-O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CXXFLAGS
+ FFLAGS='-O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd firefox-128.3.1
+ export PATH=/builddir/build/BUILDROOT/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
+ PATH=/builddir/build/BUILDROOT/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
+ rm -rf '/builddir/build/BUILDROOT/*'
+ mkdir -p my_rust_vendor
+ cd my_rust_vendor
+ tar xf /builddir/build/SOURCES/cbindgen-vendor.tar.xz
+ mkdir -p .cargo
+ env CARGO_HOME=.cargo cargo install cbindgen
    Updating crates.io index
warning: spurious network error (3 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
error: download of config.json failed
Caused by:
  failed to download from `https://index.crates.io/config.json`
Caused by:
  [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
RPM build warnings:
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.8uwCWR (%build)
    %patchN is deprecated (16 usages found), use %patch N (or %patch -P N)
    Bad exit status from /var/tmp/rpm-tmp.8uwCWR (%build)
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/firefox.spec\n', 1)]
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.10/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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/firefox.spec