Skip to content

llvm20 build error, -DLLVM_ENABLE_PROJECTS="clang;mlir;" #140019

@jackniu1234

Description

@jackniu1234

Hi,

I encounter an error when building llvm 20 on MacOS 15, the error messages is below:

/mlir/include/mlir/IR/Location.h:128:10: fatal error: 'mlir/IR/BuiltinLocationAttributes.h.inc' file not found
128 | #include "mlir/IR/BuiltinLocationAttributes.h.inc"

The whole cmake command I used is:

cmake -S llvm -B build -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS="clang;mlir;" -DCLANG_ENABLE_CIR=ON -DLLVM_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="Native“

Besides, this problem misses when building llvm19.

Any help will be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions