[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-3874) [Gandiva] Cannot build: LLVM not detected

Suvayu Ali created ARROW-3874:

             Summary: [Gandiva] Cannot build: LLVM not detected
                 Key: ARROW-3874
             Project: Apache Arrow
          Issue Type: Bug
          Components: Gandiva
    Affects Versions: 0.12.0
         Environment: Fedora 28, master (8d5bfc65)
gcc (GCC) 8.2.1 20181105 (Red Hat 8.2.1-5)
llvm 6.0.1
            Reporter: Suvayu Ali
         Attachments: CMakeError.log, CMakeOutput.log

I cannot build Arrow with {{-DARROW_GANDIVA=ON}}. {{cmake}} fails while detecting LLVM on the system.
$ cd build/data-an/arrow/arrow/cpp/
$ export ARROW_HOME=/opt/data-an
$ mkdir release
$ cd release/
-- Found LLVM 6.0.1
-- Using LLVMConfig.cmake in: /usr/lib64/cmake/llvm
CMake Error at /usr/lib64/cmake/llvm/LLVM-Config.cmake:175 (message):
  Target X86 is not in the set of libraries.
Call Stack (most recent call first):
  cmake_modules/FindLLVM.cmake:31 (llvm_map_components_to_libnames)
  src/gandiva/CMakeLists.txt:25 (find_package)

-- Configuring incomplete, errors occurred!
The cmake log files are attached.

When I invoke cmake with options other than *Gandiva*, it finishes successfully.

Here are the llvm libraries that are installed on my system:
$ rpm -qa llvm\* | sort
$ ls /usr/lib64/libLLVM* /usr/include/llvm
/usr/lib64/  /usr/lib64/  /usr/lib64/

ADT              FuzzMutate          Object                 Support
Analysis         InitializePasses.h  ObjectYAML             TableGen
AsmParser        IR                  Option                 Target
BinaryFormat     IRReader            PassAnalysisSupport.h  Testing
Bitcode          LineEditor          Passes                 ToolDrivers
CodeGen          LinkAllIR.h         Pass.h                 Transforms
Config           LinkAllPasses.h     PassInfo.h             WindowsManifest
DebugInfo        Linker              PassRegistry.h         WindowsResource
Demangle         LTO                 PassSupport.h          XRay
ExecutionEngine  MC                  ProfileData

This message was sent by Atlassian JIRA