Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/onnxruntime.spec'], chrootPath='/var/lib/mock/openeuler-23.09-aarch64-1706972703.423809/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 aarch64 --nodeps /builddir/build/SPECS/onnxruntime.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 warning: Macro expanded in comment on line 148: %{_libdir}/libgmock.so.* warning: Macro expanded in comment on line 149: %{_libdir}/libgtest.so.* warning: Macro expanded in comment on line 150: %{_libdir}/libonnx_proto.so warning: Macro expanded in comment on line 151: %{_libdir}/libonnx.so warning: Macro expanded in comment on line 152: %{_libdir}/libonnxruntime.so warning: Macro expanded in comment on line 153: %{_libdir}/libonnxruntime_providers_shared.so Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/onnxruntime-1.16.3-1.src.rpm RPM build warnings: Macro expanded in comment on line 148: %{_libdir}/libgmock.so.* Macro expanded in comment on line 149: %{_libdir}/libgtest.so.* Macro expanded in comment on line 150: %{_libdir}/libonnx_proto.so Macro expanded in comment on line 151: %{_libdir}/libonnx.so Macro expanded in comment on line 152: %{_libdir}/libonnxruntime.so Macro expanded in comment on line 153: %{_libdir}/libonnxruntime_providers_shared.so 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/onnxruntime.spec'], chrootPath='/var/lib/mock/openeuler-23.09-aarch64-1706972703.423809/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 aarch64 --nodeps /builddir/build/SPECS/onnxruntime.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 warning: Macro expanded in comment on line 148: %{_libdir}/libgmock.so.* warning: Macro expanded in comment on line 149: %{_libdir}/libgtest.so.* warning: Macro expanded in comment on line 150: %{_libdir}/libonnx_proto.so warning: Macro expanded in comment on line 151: %{_libdir}/libonnx.so warning: Macro expanded in comment on line 152: %{_libdir}/libonnxruntime.so warning: Macro expanded in comment on line 153: %{_libdir}/libonnxruntime_providers_shared.so Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/onnxruntime-1.16.3-1.src.rpm RPM build warnings: Macro expanded in comment on line 148: %{_libdir}/libgmock.so.* Macro expanded in comment on line 149: %{_libdir}/libgtest.so.* Macro expanded in comment on line 150: %{_libdir}/libonnx_proto.so Macro expanded in comment on line 151: %{_libdir}/libonnx.so Macro expanded in comment on line 152: %{_libdir}/libonnxruntime.so Macro expanded in comment on line 153: %{_libdir}/libonnxruntime_providers_shared.so Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/onnxruntime.spec'], chrootPath='/var/lib/mock/openeuler-23.09-aarch64-1706972703.423809/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 aarch64 --nodeps /builddir/build/SPECS/onnxruntime.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 warning: Macro expanded in comment on line 148: %{_libdir}/libgmock.so.* warning: Macro expanded in comment on line 149: %{_libdir}/libgtest.so.* warning: Macro expanded in comment on line 150: %{_libdir}/libonnx_proto.so warning: Macro expanded in comment on line 151: %{_libdir}/libonnx.so warning: Macro expanded in comment on line 152: %{_libdir}/libonnxruntime.so warning: Macro expanded in comment on line 153: %{_libdir}/libonnxruntime_providers_shared.so Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vQQCd0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf onnxruntime-1.16.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/onnxruntime-1.16.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd onnxruntime-1.16.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-downgrade-cmake-from-3.26-to-3.24.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-use-system-Flatbuffers.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-use-system-cpuinfo.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-use-system-protobuf.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-use-system-python.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-remove-nsync.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-fix-forward-decl-flatbuffers.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-add-onnxruntime_INSTALL_UNIT_TESTS-option.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-gcc-false-positive.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-versioned-onnxruntime-providers_shared.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-use-system-gtest.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.siIjRC + umask 022 + cd /builddir/build/BUILD + cd onnxruntime-1.16.3 + rm -v onnxruntime/test/optimizer/nhwc_transformer_test.cc removed 'onnxruntime/test/optimizer/nhwc_transformer_test.cc' + /usr/bin/python3 onnxruntime/core/flatbuffers/schema/compile_schema.py --flatc /usr/bin/flatc + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_INSTALL_LIBDIR=lib64 -DCMAKE_INSTALL_INCLUDEDIR=/usr/include -Donnxruntime_BUILD_SHARED_LIB=ON -Donnxruntime_BUILD_UNIT_TESTS=ON -Donnxruntime_INSTALL_UNIT_TESTS=OFF -Donnxruntime_BUILD_BENCHMARKS=OFF -Donnxruntime_USE_PREINSTALLED_EIGEN=OFF -Donnxruntime_USE_FULL_PROTOBUF=ON -DPYTHON_VERSION=3.11 -Donnxruntime_ENABLE_CPUINFO=ON -Donnxruntime_DISABLE_ABSEIL=ON -Donnxruntime_ENABLE_PYTHON=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -B ./cmake-build -S cmake -- The C compiler identification is GNU 12.3.1 -- The CXX compiler identification is GNU 12.3.1 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Building ONNX Runtime for aarch64 -- Performing Test COMPILER_SUPPORT_MF16C -- Performing Test COMPILER_SUPPORT_MF16C - Failed F16C instruction set is not supported. -- Performing Test COMPILER_SUPPORT_FMA -- Performing Test COMPILER_SUPPORT_FMA - Failed FMA instruction set is not supported. -- Performing Test COMPILER_SUPPORT_AVX -- Performing Test COMPILER_SUPPORT_AVX - Failed AVX instruction set is not supported. One or more AVX/F16C instruction flags are not supported. -- Performing Test onnxruntime_HAVE_BUILTIN_ATOMICS -- Performing Test onnxruntime_HAVE_BUILTIN_ATOMICS - Success -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test Iconv_IS_BUILT_IN -- Performing Test Iconv_IS_BUILT_IN - Success -- Found Iconv: built in to C library -- Found Patch: /usr/bin/patch Patch found: /usr/bin/patch -- Found Python: /usr/bin/python3.11 (found suitable version "3.11.4", minimum required is "3.11") found components: Interpreter Development.Module NumPy Loading Dependencies URLs ... Loading Dependencies ... -- Found GTest: /usr/lib64/cmake/GTest/GTestConfig.cmake (found version "1.8.1") -- Found Protobuf: /usr/lib64/libprotobuf.so (found version "3.19.6") [ 11%] Creating directories for 'date-populate' [ 22%] Performing download step (download, verify and extract) for 'date-populate' -- Downloading... dst='/builddir/build/BUILD/onnxruntime-1.16.3/cmake-build/_deps/date-subbuild/date-populate-prefix/src/v2.4.1.zip' timeout='none' inactivity timeout='none' -- Using src='https://github.com/HowardHinnant/date/archive/refs/tags/v2.4.1.zip' CMake Error at date-subbuild/date-populate-prefix/src/date-populate-stamp/download-date-populate.cmake:170 (message): Each download failed! error: downloading 'https://github.com/HowardHinnant/date/archive/refs/tags/v2.4.1.zip' failed status_code: 28 status_string: "Timeout was reached" log: --- LOG BEGIN --- Trying 20.205.243.166:443... connect to 20.205.243.166 port 443 failed: Connection timed out Failed to connect to github.com port 443 after 130538 ms: Couldn't connect to server Closing connection 0 --- LOG END --- gmake[2]: *** [CMakeFiles/date-populate.dir/build.make:100: date-populate-prefix/src/date-populate-stamp/date-populate-download] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/date-populate.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2 -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/onnxruntime-1.16.3/cmake-build/CMakeFiles/CMakeOutput.log". See also "/builddir/build/BUILD/onnxruntime-1.16.3/cmake-build/CMakeFiles/CMakeError.log". CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1604 (message): Build step for date failed: 2 Call Stack (most recent call first): /usr/share/cmake/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate) /usr/share/cmake/Modules/FetchContent.cmake:1744 (cmake_language) external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:172 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:550 (include) error: Bad exit status from /var/tmp/rpm-tmp.siIjRC (%build) Macro expanded in comment on line 148: %{_libdir}/libgmock.so.* Macro expanded in comment on line 149: %{_libdir}/libgtest.so.* Macro expanded in comment on line 150: %{_libdir}/libonnx_proto.so Macro expanded in comment on line 151: %{_libdir}/libonnx.so Macro expanded in comment on line 152: %{_libdir}/libonnxruntime.so Macro expanded in comment on line 153: %{_libdir}/libonnxruntime_providers_shared.so Bad exit status from /var/tmp/rpm-tmp.siIjRC (%build) RPM build warnings: 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/onnxruntime.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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/onnxruntime.spec