yzwyf commented on issue #17492:
URL: https://github.com/apache/tvm/issues/17492#issuecomment-2478298276

   > > I found a solution. You have to setup the LLVM config before compiling 
the library:
   > > ```shell
   > > cd tvm/build/
   > > vi config.cmake
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > Set `set(USE_LLVM llvm-config)` in the `config.cmake` file. Then run:
   > > ```shell
   > > cmake ..
   > > make -j$(nproc)
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > This solved the issue for me.
   > 
   > I'm sorry, but I have a few more questions. According to 
https://tvm.apache.org/docs/install/from_source.html, I need to execute the 
"echo "set(USE_LLVM "llvm-config --ignore-libllvm --link-static")" >> 
config.cmake" command,. Do you mean changing this command to "echo 
"set(USE_LLVM llvm-config)" >> config.cmake"? I have done this, but the 
problems above remain.
   
   HI,I try to use ninja to build it ,and meet the same question.  I try to use 
the Set set(USE_LLVM llvm-config) and set(USE_LLVM "llvm-config") in the 
config.cmake file。the latter set(USE_LLVM "llvm-config") is success , maybe you 
can try it.do not use the echo command, i directly modify the config.cmake file。


-- 
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]

Reply via email to