pytorch / glow

Compiler for Neural Network hardware accelerators
Apache License 2.0
3.19k stars 684 forks source link

build_Debug error #6041

Closed izZCrown closed 1 year ago

izZCrown commented 1 year ago

MAC OS llvm@15

cmake -G Ninja ../glow -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/opt/homebrew/Cellar/llvm/15.0.6/lib/cmake/llvm/
ninja all

error message:

/opt/homebrew/Cellar/llvm/15.0.6/bin/llvm-link: /Users/crown/dlcompiler/build_Debug/libjit/libjit_cpu_obj/libjit.o: error: Invalid record
/opt/homebrew/Cellar/llvm/15.0.6/bin/llvm-link: error:  loading file '/Users/crown/dlcompiler/build_Debug/libjit/libjit_cpu_obj/libjit.o'

I have seen another similar problem, but I don't know how to solve it.

kbkarthikeyan commented 1 year ago

Include the clang 15.0.6, and clang++ 15.0.6. In my case, it got resolved.