completezealous commented on issue #14804:
URL: https://github.com/apache/tvm/issues/14804#issuecomment-1762743101

   > Thanks for participating in the TVM community! We use 
https://discuss.tvm.ai for any general usage questions and discussions. The 
issue tracker is used for actionable items such as feature proposals 
discussion, roadmaps, and bug tracking. You are always welcomed to post on the 
forum first 😸
   > 
   > Issues that are inactive for a period of time may get closed. We adopt 
this policy so that we won't lose track of actionable issues that may fall at 
the bottom of the pile. Feel free to reopen a new one if you feel there is an 
additional problem that needs attention when an old one gets closed.
   > 
   > ### Expected behavior
   > build cpptest successfully.
   > 
   > ### Actual behavior
   > I follow instructions in this link 
https://tvm.apache.org/docs/install/from_source.html. And I modify config.cmake 
`set(USE_LLVM "/usr/lib/llvm-17/bin/llvm-config --link-static")`. Finally I 
builld tvm and googletest succefully. However, when I run `make cpptest`, I got 
an error.
   > 
   > ```shell
   > [100%] Linking CXX executable cpptest
   > ld.lld: error: undefined symbol: typeinfo for testing::Test
   > >>> referenced by expr_test.cc
   > >>>               
CMakeFiles/cpptest.dir/tests/cpp/expr_test.cc.o:(typeinfo for Expr_Basic_Test)
   > >>> referenced by expr_test.cc
   > >>>               
CMakeFiles/cpptest.dir/tests/cpp/expr_test.cc.o:(typeinfo for 
Expr_VarTypeAnnotation_Test)
   > >>> referenced by expr_test.cc
   > >>>               
CMakeFiles/cpptest.dir/tests/cpp/expr_test.cc.o:(typeinfo for 
ExprNodeRef_Basic_Test)
   > >>> referenced 373 more times
   > >>> did you mean: vtable for testing::Test
   > >>> defined in: /home/qzylalala/anaconda3/lib/libgtest.so.1.10.0
   > collect2: error: ld returned 1 exit status
   > CMakeFiles/cpptest.dir/build.make:1180: recipe for target 'cpptest' failed
   > make[3]: *** [cpptest] Error 1
   > CMakeFiles/Makefile2:1070: recipe for target 'CMakeFiles/cpptest.dir/all' 
failed
   > make[2]: *** [CMakeFiles/cpptest.dir/all] Error 2
   > CMakeFiles/Makefile2:1077: recipe for target 'CMakeFiles/cpptest.dir/rule' 
failed
   > make[1]: *** [CMakeFiles/cpptest.dir/rule] Error 2
   > Makefile:648: recipe for target 'cpptest' failed
   > make: *** [cpptest] Error 2
   > ```
   > 
   > ### Environment
   > Operating System: Ubuntu1804 TVM version: Latest GoogleTest: Latest LLVM: 
17.0
   > 
   > ### Steps to reproduce
   > following this link https://tvm.apache.org/docs/install/from_source.html. 
modfiy config.cmake `set(USE_LLVM "/usr/lib/llvm-17/bin/llvm-config 
--link-static")`
   > 
   > ### Triage
   > Please refer to the list of label tags 
[here](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the 
relevant tags and add them below in a bullet format (example below).
   > 
   > * needs-triage
   
   I had the same problem,have you solved it?


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