Skip to content

Compiling the hop branch on MacOSX - includes missing #3

@dpotop

Description

@dpotop

Ok, I've managed to compile the hop branch on MacOSX. After installing a number of packages, the config command that works is:

cmake -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_BUILD_EXAMPLES=ON -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=/Users/llvm-test/llvm-bondhugula -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_C_COMPILER=clang-mp-9.0 -DCMAKE_CXX_COMPILER=clang++-mp-9.0 -DCMAKE_ASM_COMPILER=clang-mp-9.0 ../llvm

Then, the compilation fails at the very end due to 3 missing includes in llvm-project-hop/mlir/lib/Support/JitRunner.cpp. After adding here:

#include // std::string
#include // std::cout
#include // std::stringstream

compilation completes OK.

ADDENDUM: of the resulting binaries, some work and some don't. mlir-opt seems to work, but mlir-cpu-runner does not, because it cannot load libmlir_runner_utils.lo (only libmlir_runner_utils.dylib is built).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions