huzq85 commented on issue #14804:
URL: https://github.com/apache/tvm/issues/14804#issuecomment-1548861995
I meet a similar issue:
/usr/bin/ld:
CMakeFiles/cpptest.dir/tests/cpp/aot_metadata_test.cc.o:(.data.rel.ro._ZTI25Metadata_ParseStruct_Test[_ZTI25Metadata_ParseStruct_Test]+0x10):
unde
fined reference to `typeinfo for testing::Test'
/usr/bin/ld:
CMakeFiles/cpptest.dir/tests/cpp/aot_metadata_test.cc.o:(.data.rel.ro._ZTI21Metadata_Visitor_Test[_ZTI21Metadata_Visitor_Test]+0x10):
undefined re
ference to `typeinfo for testing::Test'
/usr/bin/ld:
CMakeFiles/cpptest.dir/tests/cpp/aot_metadata_test.cc.o:(.data.rel.ro._ZTI22Metadata_InMemory_Test[_ZTI22Metadata_InMemory_Test]+0x10):
undefined
reference to `typeinfo for testing::Test'
/usr/bin/ld:
CMakeFiles/cpptest.dir/tests/cpp/aot_metadata_test.cc.o:(.data.rel.ro._ZTI30Metadata_ZeroElementLists_Test[_ZTI30Metadata_ZeroElementLists_Test]+0
x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld:
CMakeFiles/cpptest.dir/tests/cpp/aot_metadata_test.cc.o:(.data.rel.ro._ZTI40MetadataArray_GetElementCStructName_Test[_ZTI40MetadataArray_GetElemen
tCStructName_Test]+0x10): undefined reference to `typeinfo for
testing::Test'
/usr/bin/ld:
CMakeFiles/cpptest.dir/tests/cpp/aot_metadata_test.cc.o:(.data.rel.ro._ZTI41DiscoverArraysVisitor_DiscoverArrays_Test[_ZTI41DiscoverArraysVisitor_
DiscoverArrays_Test]+0x10): more undefined references to `typeinfo for
testing::Test' follow
collect2: error: ld returned 1 exit status
make[4]: *** [CMakeFiles/cpptest.dir/build.make:1182: cpptest] Error 1
make[4]: Leaving directory '/home/huzq85/tvm/build'
make[3]: *** [CMakeFiles/Makefile2:1012: CMakeFiles/cpptest.dir/all] Error 2
make[3]: Leaving directory '/home/huzq85/tvm/build'
make[2]: *** [CMakeFiles/Makefile2:1019: CMakeFiles/cpptest.dir/rule] Error
2
make[2]: Leaving directory '/home/huzq85/tvm/build'
make[1]: *** [Makefile:622: cpptest] Error 2
make[1]: Leaving directory '/home/huzq85/tvm/build'
make: *** [Makefile:87: /home/huzq85/tvm/build/cpptest] Error 2
--
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]