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/clang.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-326126-68801/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=86400uid=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/clang.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 Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/clang-15.0.7-1.0.3.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/clang.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-326126-68801/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=86400uid=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/clang.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 Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Bx6MNO + umask 022 + cd /builddir/build/BUILD + /usr/lib/rpm/redhat/gpgverify --keyring=/builddir/build/SOURCES/release-keys.asc --signature=/builddir/build/SOURCES/clang-15.0.7.src.tar.xz.sig --data=/builddir/build/SOURCES/clang-15.0.7.src.tar.xz gpgv: Signature made Thu Jan 12 15:43:49 2023 CST gpgv: using RSA key 474E22316ABF4785A88C6E8EA2C794A986419D8A gpgv: Good signature from "Tom Stellard " + /usr/lib/rpm/redhat/gpgverify --keyring=/builddir/build/SOURCES/release-keys.asc --signature=/builddir/build/SOURCES/clang-tools-extra-15.0.7.src.tar.xz.sig --data=/builddir/build/SOURCES/clang-tools-extra-15.0.7.src.tar.xz gpgv: Signature made Thu Jan 12 15:44:00 2023 CST gpgv: using RSA key 474E22316ABF4785A88C6E8EA2C794A986419D8A gpgv: Good signature from "Tom Stellard " + cd /builddir/build/BUILD + rm -rf clang-tools-extra-15.0.7.src + /usr/bin/xz -dc /builddir/build/SOURCES/clang-tools-extra-15.0.7.src.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd clang-tools-extra-15.0.7.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + rm test/clang-tidy/checkers/altera/struct-pack-align.cpp + '[' -f /usr/bin/pathfix3.6.py ']' + pathfix=/usr/bin/pathfix.py + '[' -z s ']' + shebang_flags=-kas + /usr/bin/pathfix.py -pni /usr/libexec/platform-python -kas clang-tidy/tool/run-clang-tidy.py clang-tidy/tool/clang-tidy-diff.py clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py clang-tidy/tool/run-clang-tidy.py: updating clang-tidy/tool/clang-tidy-diff.py: updating clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py: updating + cd /builddir/build/BUILD + rm -rf clang-15.0.7.src + /usr/bin/xz -dc /builddir/build/SOURCES/clang-15.0.7.src.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd clang-15.0.7.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-PATCH-clang-Reorganize-gtest-integration.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0003-PATCH-clang-Don-t-install-static-libraries.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-Work-around-gcc-miscompile.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0010-PATCH-clang-Produce-DWARF4-by-default.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/disable-recommonmark.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-Support-LoongArch.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + rm test/CodeGen/profile-filter.c + '[' -f /usr/bin/pathfix3.6.py ']' + pathfix=/usr/bin/pathfix.py + '[' -z s ']' + shebang_flags=-kas + /usr/bin/pathfix.py -pni /usr/libexec/platform-python -kas tools/clang-format/ tools/clang-format/git-clang-format utils/hmaptool/hmaptool tools/scan-view/bin/scan-view tools/scan-view/share/Reporter.py tools/scan-view/share/startfile.py tools/scan-build-py/bin/analyze-build tools/scan-build-py/bin/intercept-build tools/scan-build-py/bin/scan-build tools/scan-build-py/libexec/analyze-c++ tools/scan-build-py/libexec/analyze-cc tools/scan-build-py/libexec/intercept-c++ tools/scan-build-py/libexec/intercept-cc recursedown('tools/clang-format/') recursedown('tools/clang-format/fuzzer') tools/clang-format/git-clang-format: updating utils/hmaptool/hmaptool: updating tools/scan-view/bin/scan-view: updating tools/scan-view/share/Reporter.py: updating tools/scan-view/share/startfile.py: updating tools/scan-build-py/bin/analyze-build: updating tools/scan-build-py/bin/intercept-build: updating tools/scan-build-py/bin/scan-build: updating tools/scan-build-py/libexec/analyze-c++: updating tools/scan-build-py/libexec/analyze-cc: updating tools/scan-build-py/libexec/intercept-c++: updating tools/scan-build-py/libexec/intercept-cc: updating + find -name '*.md' + read md + sed -r -e 's/^( )*\* /\n\1\* /' ./docs/DataFlowAnalysisIntro.md + pandoc -f markdown -o ./docs/DataFlowAnalysisIntro.rst + read md + sed -r -e 's/^( )*\* /\n\1\* /' ./tools/scan-build-py/README.md + pandoc -f markdown -o ./tools/scan-build-py/README.rst + read md + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dIIlpf + umask 022 + cd /builddir/build/BUILD + cd clang-15.0.7.src + sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py + mkdir -p loongarch64-redhat-linux-gnu + cd loongarch64-redhat-linux-gnu + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + CXXFLAGS='-O2 -g -Wno-address -Wno-nonnull -Wno-maybe-uninitialized' + CFLAGS='-O2 -g -Wno-address -Wno-nonnull -Wno-maybe-uninitialized' + CFLAGS='-O2 -g -Wno-address -Wno-nonnull -Wno-maybe-uninitialized' + export CFLAGS + CXXFLAGS='-O2 -g -Wno-address -Wno-nonnull -Wno-maybe-uninitialized' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-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 .. -G Ninja -DCLANG_DEFAULT_PIE_ON_LINUX=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_PARALLEL_LINK_JOBS=1 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPYTHON_EXECUTABLE=/usr/libexec/platform-python -DCMAKE_SKIP_RPATH:BOOL=ON -DCLANG_INCLUDE_TESTS:BOOL=ON -DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../../clang-tools-extra-15.0.7.src -DLLVM_EXTERNAL_LIT=/usr/bin/lit -DLLVM_MAIN_SRC_DIR=/usr/share/llvm/src -DLLVM_LIBDIR_SUFFIX=64 -DLLVM_TABLEGEN_EXE:FILEPATH=/usr/bin/llvm-tblgen -DCLANG_ENABLE_ARCMT:BOOL=ON -DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON -DCLANG_INCLUDE_DOCS:BOOL=ON -DCLANG_PLUGIN_SUPPORT:BOOL=ON -DENABLE_LINKER_BUILD_ID:BOOL=ON -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_DOCS=ON -DLLVM_ENABLE_NEW_PASS_MANAGER=ON -DLLVM_ENABLE_SPHINX=ON -DCLANG_LINK_CLANG_DYLIB=ON -DSPHINX_WARNINGS_AS_ERRORS=OFF -DCLANG_BUILD_EXAMPLES:BOOL=OFF -DBUILD_SHARED_LIBS=OFF '-DCLANG_REPOSITORY_STRING=Anolis 15.0.7-1.0.3.an8' -DCLANG_DEFAULT_UNWINDLIB=libgcc -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:6 (project): The CMAKE_C_COMPILER: clang is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:6 (project): The CMAKE_CXX_COMPILER: clang++ is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/clang-15.0.7.src/loongarch64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log". See also "/builddir/build/BUILD/clang-15.0.7.src/loongarch64-redhat-linux-gnu/CMakeFiles/CMakeError.log". error: Bad exit status from /var/tmp/rpm-tmp.dIIlpf (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.dIIlpf (%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/clang.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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/clang.spec