Closed lucaciciriello closed 4 years ago
Hi @lucaciciriello, thanks for the report! However I wasn't able to reproduce this on my local machine with the current master
branch. Could you provide more details on how you configure and build?
(Sorry accidentally clicked the wrong button.)
Hi, I always used this procedure to build on my local machine:
git clone https://github.com/llvm/llvm-project.git git clone https://github.com/tensorflow/mlir llvm-project/llvm/projects/mlir mkdir llvm-project/buildcd llvm-project/build cmake -G Ninja ../llvm -DLLVM_BUILD_EXAMPLES=ON -DLLVM_TARGETS_TO_BUILD="host" cmake --build .
Thanks
Il giorno mer 4 dic 2019 alle 16:21 Lei Zhang notifications@github.com ha scritto:
Hi @lucaciciriello https://github.com/lucaciciriello, thanks for the report! However I wasn't able to reproduce this on my local machine with the current master branch. Could you provide more details on how you configure and build?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/mlir/issues/289?email_source=notifications&email_token=AJRUM4WYPN22HKBOBDPNUPTQW7DGXA5CNFSM4JVD5U4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5L7UY#issuecomment-561692627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRUM4S33VAE6IMOOZ2KVPTQW7DGXANCNFSM4JVD5U4A .
-- All problems in computer science can be solved by another level of indirection, except for the problem of too many layers of indirection.
– David J. Wheeler
Hi @lucaciciriello, thanks for the report! However I wasn't able to reproduce this on my local machine with the current
master
branch. Could you provide more details on how you configure and build?
Did you try from a fresh build directory (re-running cmake from an empty directory)?
Did you run specifically the failing target? (ninja projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRLLVMIR.dir/IR/LLVMDialect.cpp.o
).
This should always reproduce such failure deterministically.
Thanks @joker-eph! Yes that revealed the issue. :) Fix coming.
Thanks, now the build is ok
I got the following errors building MLIR on macOS Catalina
[1687/2294] Building CXX object projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRROCDLIR.dir/IR/ROCDLDialect.cpp.o FAILED: projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRROCDLIR.dir/IR/ROCDLDialect.cpp.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/mlir/lib/Dialect/LLVMIR -I/Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/lib/Dialect/LLVMIR -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxml2 -Iinclude -I/Users/lucaciciriello/MLIR/llvm-project/llvm/include -I/Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/include -Iprojects/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fno-exceptions -fno-rtti -std=c++14 -MD -MT projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRROCDLIR.dir/IR/ROCDLDialect.cpp.o -MF projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRROCDLIR.dir/IR/ROCDLDialect.cpp.o.d -o projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRROCDLIR.dir/IR/ROCDLDialect.cpp.o -c /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp In file included from /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp:28: In file included from /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:29: /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/include/mlir/IR/OpImplementation.h:639:10: fatal error: 'mlir/IR/OpAsmInterface.h.inc' file not found
include "mlir/IR/OpAsmInterface.h.inc"
1 error generated. [1691/2294] Building CXX object projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRLLVMIR.dir/IR/LLVMDialect.cpp.o FAILED: projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRLLVMIR.dir/IR/LLVMDialect.cpp.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/mlir/lib/Dialect/LLVMIR -I/Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/lib/Dialect/LLVMIR -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxml2 -Iinclude -I/Users/lucaciciriello/MLIR/llvm-project/llvm/include -I/Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/include -Iprojects/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fno-exceptions -fno-rtti -std=c++14 -MD -MT projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRLLVMIR.dir/IR/LLVMDialect.cpp.o -MF projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRLLVMIR.dir/IR/LLVMDialect.cpp.o.d -o projects/mlir/lib/Dialect/LLVMIR/CMakeFiles/MLIRLLVMIR.dir/IR/LLVMDialect.cpp.o -c /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp In file included from /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp:22: In file included from /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:29: /Users/lucaciciriello/MLIR/llvm-project/llvm/projects/mlir/include/mlir/IR/OpImplementation.h:639:10: fatal error: 'mlir/IR/OpAsmInterface.h.inc' file not found
include "mlir/IR/OpAsmInterface.h.inc"
1 error generated.