+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/llvm3.7.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Hapbgw + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf llvm-3.7.1.src + /usr/bin/xz -dc /builddir/build/SOURCES/llvm-3.7.1.src.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd llvm-3.7.1.src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf tools/clang tools/lldb projects/compiler-rt + echo 'Patch #2 (0001-data-install-preserve-timestamps.patch):' Patch #2 (0001-data-install-preserve-timestamps.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile.rules Hunk #1 succeeded at 778 (offset 5 lines). + echo 'Patch #3 (llvm-3.7.1-julia.patch):' Patch #3 (llvm-3.7.1-julia.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/llvm/ExecutionEngine/SectionMemoryManager.h patching file include/llvm/Support/raw_ostream.h patching file lib/CodeGen/MachineModuleInfo.cpp patching file lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp patching file lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h patching file lib/ExecutionEngine/SectionMemoryManager.cpp patching file lib/IR/Verifier.cpp patching file lib/Support/Unix/Memory.inc patching file lib/Support/raw_ostream.cpp patching file lib/Transforms/Scalar/Sink.cpp patching file lib/Transforms/Utils/CloneFunction.cpp patching file test/Transforms/Sink/landingpad.ll + echo 'Patch #4 (llvm-3.7.1-julia2.patch):' Patch #4 (llvm-3.7.1-julia2.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/llvm/MC/MCStreamer.h patching file include/llvm/Support/MathExtras.h patching file lib/ExecutionEngine/SectionMemoryManager.cpp patching file lib/MC/MCMachOStreamer.cpp patching file lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp patching file lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp patching file tools/llvm-shlib/Makefile + echo 'Patch #5 (llvm-3.7.1-julia3.patch):' Patch #5 (llvm-3.7.1-julia3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/Analysis/ScalarEvolutionExpander.cpp Hunk #1 succeeded at 1272 (offset -1 lines). + echo 'Patch #6 (llvm-D14260.patch):' Patch #6 (llvm-D14260.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp Hunk #1 succeeded at 839 (offset -40 lines). Hunk #2 succeeded at 929 (offset -40 lines). patching file test/Transforms/InstCombine/insert-val-extract-elem.ll + echo 'Patch #7 (llvm-D21271-instcombine-tbaa-3.7.patch):' Patch #7 (llvm-D21271-instcombine-tbaa-3.7.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/llvm/Analysis/Loads.h patching file lib/Analysis/Loads.cpp patching file lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp patching file test/Transforms/InstCombine/tbaa-store-to-load.ll + echo 'Patch #8 (llvm-Wno-format-security.patch):' Patch #8 (llvm-Wno-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/Target/CppBackend/Makefile + sed -i.orig 's|/lib /usr/lib $lt_ld_extra|/usr/lib64 $lt_ld_extra|' configure + sed -i.orig -e 's|(PROJ_prefix)/lib|(PROJ_prefix)/lib64/llvm3.7|g' -e 's|(PROJ_prefix)/include|(PROJ_prefix)/include/llvm3.7|g' Makefile.config.in + sed -i.orig -e 's|/lib\>|/lib64/llvm3.7|g' -e 's|/bin\>|/lib64/llvm3.7/bin|g' -e 's|/include\>|/include/llvm3.7|g' tools/llvm-config/llvm-config.cpp + sed -i.orig -e 's|/lib\>|/lib64\\/llvm3.7|g' -e 's|/bin\>|/lib64/llvm3.7/bin|g' -e 's|/include\>|/include/llvm3.7|g' -e 's|s/@LLVM_LIBDIR_SUFFIX@//|s/@LLVM_LIBDIR_SUFFIX@/64/|' cmake/modules/Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4KLlLj + umask 022 + cd /builddir/build/BUILD + cd llvm-3.7.1.src + mkdir build + cd build + ln -s ../configure . + export CC=gcc + CC=gcc + export CXX=g++ + CXX=g++ + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLLDB_DISABLE_PYTHON -DHAVE_PROCESS_VM_READV' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLLDB_DISABLE_PYTHON -DHAVE_PROCESS_VM_READV' + export 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLLDB_DISABLE_PYTHON -DHAVE_PROCESS_VM_READV' + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLLDB_DISABLE_PYTHON -DHAVE_PROCESS_VM_READV' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLLDB_DISABLE_PYTHON -DHAVE_PROCESS_VM_READV' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DLLDB_DISABLE_PYTHON -DHAVE_PROCESS_VM_READV' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-extra-options=-fno-devirtualize --with-extra-ld-options=-Wl,-Bsymbolic --libdir=/usr/lib64/llvm3.7 --includedir=/usr/include/llvm3.7 --disable-polly --disable-libcpp --enable-cxx11 --enable-clang-arcmt --enable-clang-static-analyzer --enable-clang-rewriter --enable-optimized --disable-profiling --disable-assertions --disable-werror --disable-expensive-checks --enable-debug-runtime --enable-keep-symbols --enable-jit --enable-docs --disable-doxygen --enable-threads --enable-pthreads --enable-zlib --enable-pic --enable-shared --enable-timestamps --enable-backtraces --enable-targets=x86,powerpc,arm,aarch64,cpp,nvptx,systemz,r600 --enable-bindings=none --enable-libffi --enable-ltdl-install checking for riscv64-redhat-linux-gnu-clang... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking whether GCC or Clang is our host compiler... gcc checking build system type... Invalid configuration `riscv64-redhat-linux-gnu': machine `riscv64-redhat' not recognized configure: error: /bin/sh ../autoconf/config.sub riscv64-redhat-linux-gnu failed error: Bad exit status from /var/tmp/rpm-tmp.4KLlLj (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4KLlLj (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff