Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/onnxruntime.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1706972596.582298/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/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: x86_64 Building for target x86_64 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 x86_64 --nodeps /builddir/build/SPECS/onnxruntime.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1706972596.582298/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/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: x86_64 Building for target x86_64 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 x86_64 --nodeps /builddir/build/SPECS/onnxruntime.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1706972596.582298/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/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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gj5Tjc + 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.Q4G7FW + umask 022 + cd /builddir/build/BUILD + cd onnxruntime-1.16.3 + /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 -m64 -mtune=generic -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 -m64 -mtune=generic -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 -m64 -mtune=generic -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 -m64 -mtune=generic -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 x86_64 -- Performing Test COMPILER_SUPPORT_MF16C -- Performing Test COMPILER_SUPPORT_MF16C - Success -- Performing Test COMPILER_SUPPORT_FMA -- Performing Test COMPILER_SUPPORT_FMA - Success -- Performing Test COMPILER_SUPPORT_AVX -- Performing Test COMPILER_SUPPORT_AVX - Success -- 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") # date: USE_SYSTEM_TZ_DB ON # date: USE_TZ_DB_IN_DOT OFF # date: BUILD_SHARED_LIBS ON # date: ENABLE_DATE_TESTING OFF -- Using the single-header code from /builddir/build/BUILD/onnxruntime-1.16.3/cmake-build/_deps/nlohmann_json-src/single_include/ Protobuf version: 3.19.6 [ 11%] Creating directories for 'onnx-populate' [ 22%] Performing download step (download, verify and extract) for 'onnx-populate' -- Downloading... dst='/builddir/build/BUILD/onnxruntime-1.16.3/cmake-build/_deps/onnx-subbuild/onnx-populate-prefix/src/e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip' timeout='none' inactivity timeout='none' -- Using src='https://github.com/onnx/onnx/archive/e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip' CMake Error at onnx-subbuild/onnx-populate-prefix/src/onnx-populate-stamp/download-onnx-populate.cmake:170 (message): Each download failed! error: downloading 'https://github.com/onnx/onnx/archive/e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip' failed status_code: 56 status_string: "Failure when receiving data from the peer" log: --- LOG BEGIN --- Trying 20.205.243.166:443... Connected to github.com (20.205.243.166) port 443 (#0) ALPN: offers h2,http/1.1 [5 bytes data] TLSv1.3 (OUT), TLS handshake, Client hello (1): [512 bytes data] [5 bytes data] TLSv1.3 (IN), TLS handshake, Server hello (2): [122 bytes data] [5 bytes data] [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): [19 bytes data] [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS handshake, Certificate (11): [2459 bytes data] [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS handshake, CERT verify (15): [78 bytes data] [5 bytes data] [1 bytes data] TLSv1.3 (IN), TLS handshake, Finished (20): [36 bytes data] [5 bytes data] TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): [1 bytes data] [5 bytes data] [1 bytes data] TLSv1.3 (OUT), TLS handshake, Finished (20): [36 bytes data] SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 ALPN: server accepted h2 Server certificate: subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com start date: Feb 14 00:00:00 2023 GMT expire date: Mar 14 23:59:59 2024 GMT subjectAltName: host "github.com" matched cert's "github.com" issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1 SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. [5 bytes data] [1 bytes data] using HTTP/2 h2 [:method: GET] h2 [:scheme: https] h2 [:authority: github.com] h2 [:path: /onnx/onnx/archive/e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip] h2 [user-agent: curl/8.1.2] h2 [accept: */*] Using Stream ID: 1 (easy handle 0x558edd0af7d0) [5 bytes data] [1 bytes data] GET /onnx/onnx/archive/e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip HTTP/2 Host: github.com User-Agent: curl/8.1.2 Accept: */* Closing connection 0 --- LOG END --- gmake[2]: *** [CMakeFiles/onnx-populate.dir/build.make:100: onnx-populate-prefix/src/onnx-populate-stamp/onnx-populate-download] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/onnx-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". CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1604 (message): Build step for onnx 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:409 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:550 (include) error: Bad exit status from /var/tmp/rpm-tmp.Q4G7FW (%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.Q4G7FW (%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 x86_64 --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 x86_64 --nodeps /builddir/build/SPECS/onnxruntime.spec