features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_WARN_INCOMPATIBLE_POINTER_TYPES -- Performing Test HAVE_WARN_INCOMPATIBLE_POINTER_TYPES - Success -- Setting build type to 'RelWithDebInfo' as none was specified. -- No git and/or not a prerelease -> not adding git commit to version. -- Host CPU cores: 4 -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") -- Checking for module 'hwloc' -- Found hwloc, version 2.2.0 -- Found Hwloc: hwloc -- Found hwloc 2.2.0 in :hwloc -- Hwloc_VERSION 2.2.0 -- Hwloc_LDFLAGS -lhwloc -- Hwloc_CFLAGS CMake Warning at CMakeLists.txt:410 (message): Unable to detect cacheline size - assuming 64byte cacheline, override with -DHOST_CPU_CACHELINE_SIZE= (Note: this is merely used for optimization, at worst pocl will be slightly slower) -- Using llvm-config: /usr/bin/llvm-config -- LLVM binaries suffix : -- llvm-config's LLVM_PREFIX is: /usr -- llvm-config's LLVM_VERSION_FULL is: 11.0.0 -- LLVM_VERSION: 11.0 -- llvm-config's LLVM_CFLAGS is: -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -- llvm-config's LLVM_CXXFLAGS is: -I/usr/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -- llvm-config's LLVM_CPPFLAGS is: -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -- llvm-config's LLVM_LDFLAGS is: -L/usr/lib64 -- llvm-config's LLVM_BINDIR is: /usr/bin -- llvm-config's LLVM_LIBDIR is: /usr/lib64 -- llvm-config's LLVM_INCLUDEDIR is: /usr/include -- llvm-config's LLVM_LIBS is: -lLLVM-11 -- llvm-config's LLVM_SRC_ROOT is: /builddir/build/BUILD/llvm-11.0.0.src -- llvm-config's LLVM_OBJ_ROOT is: /usr -- llvm-config's LLVM_ALL_TARGETS is: AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore -- llvm-config's LLVM_HOST_TARGET is: riscv64-unknown-linux-gnu -- llvm-config's LLVM_BUILD_MODE is: RelWithDebInfo -- llvm-config's LLVM_ASSERTS_BUILD is: OFF -- llvm-config's LLVM_SYSLIBS is: -- llvm-config's LLVM_HAS_RTTI is: YES -- llvm-config's LLVM_LIB_IS_SHARED is: shared -- llvm-config's LLVM_LIBS is: -lLLVM-11 -- llvm-config's LLVM_SYSLIBS is: -- Found clang: /usr/bin/clang -- Found clang++: /usr/bin/clang++ -- Found opt: /usr/bin/opt -- Found llc: /usr/bin/llc -- Found llvm-as: /usr/bin/llvm-as -- Found llvm-link: /usr/bin/llvm-link -- Found lli: /usr/bin/lli -- udivmodti4 compiles without extra flags -- Checking if clang++ works (required by vecmathlib) -- Checking if LLVM is a DEBUG build -- DEBUG build -- Find out LLC target triple (for host riscv64-unknown-linux-gnu) -- Find out LLC host CPU with /usr/bin/llc CMake Error at cmake/LLVM.cmake:697 (message): LLVM could not recognize your CPU model automatically. Please run CMake with -DLLC_HOST_CPU= (you can find valid names with: llc -mcpu=help) Call Stack (most recent call first): CMakeLists.txt:442 (include) -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/pocl-1.5/riscv64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log". error: Bad exit status from /var/tmp/rpm-tmp.Ddu3KN (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Ddu3KN (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 riscv64 --nodeps /builddir/build/SPECS/pocl.spec