wangzy0327 opened a new issue, #12700:
URL: https://github.com/apache/tvm/issues/12700
### Expected behavior
What you were expecting
compile tvm source files
### Actual behavior
```
[ 93%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_cuda_on.cc.o
[ 93%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_hexagon_off.cc.o
[ 94%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_sdaccel_off.cc.o
[ 94%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_aocl_off.cc.o
[ 94%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_opencl_off.cc.o
[ 94%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_metal_off.cc.o
[ 94%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/opt/build_rocm_off.cc.o
[ 95%] Building CXX object
CMakeFiles/tvm_objs.dir/src/target/llvm/codegen_amdgpu.cc.o
In file included from /home/wzy/tvm/src/target/llvm/codegen_amdgpu.cc:53:0:
/home/wzy/tvm/src/target/llvm/codegen_llvm.h:35:10: fatal error:
llvm/IR/FMF.h: No such file or directory
#include <llvm/IR/FMF.h>
^~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/tvm_objs.dir/build.make:6464: recipe for target
'CMakeFiles/tvm_objs.dir/src/target/llvm/codegen_amdgpu.cc.o' failed
make[2]: *** [CMakeFiles/tvm_objs.dir/src/target/llvm/codegen_amdgpu.cc.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:164: recipe for target 'CMakeFiles/tvm_objs.dir/all'
failed
make[1]: *** [CMakeFiles/tvm_objs.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2
```
### Environment
OS version:
Ubuntu 18.04.6 LTS \n \l
TVM version:
TVM 0.9.0 commid-id : d361585965b95
Any environment details, such as: Operating System, TVM version, etc
### Steps to reproduce
compile sources steps following
[https://tvm.apache.org/docs/install/from_source.html#developers-get-source-from-github]
my llvm project build and install in $HOME/app/llvm-build-13.01
git clone --recursive https://github.com/apache/tvm -b v0.9.0
cd tvm
mkdir build
cp cmake/config.cmake build
Edit build/config.cmake
set(USE_CUDA ON)
set(USE_RELAY_DEBUG ON)
set(USE_LLVM /path/to/your/llvm/bin/llvm-config)
set(USE_LLVM "/home/wzy/app/llvm-build-13.0.1/bin/llvm-config
--link-static")
set(HIDE_PRIVATE_SYMBOLS ON
cmake -DCMAKE_INSTALL_PREFIX=/home/wzy/app/tvm-build-0.9.0 ..
make -j8 && make install
Preferably a minimal script to cause the issue to occur.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]