You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/04/13 17:22:15 UTC

[GitHub] [tvm] yzh119 opened a new pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

yzh119 opened a new pull request #7839:
URL: https://github.com/apache/tvm/pull/7839


   I met the following error (the same as #7683 ) when trying to build `apps/howto_deploy` project:
   ```
   /usr/bin/ld: lib/libtvm_runtime_pack.o: in function `tvm::runtime::DenseMapNode::TrySpareListHead(tvm::runtime::DenseMapNode::ListNode, tvm::runtime::ObjectRef const&, tvm::runtime::DenseMapNode::ListNode*)':
   tvm_runtime_pack.cc:(.text._ZN3tvm7runtime12DenseMapNode16TrySpareListHeadENS1_8ListNodeERKNS0_9ObjectRefEPS2_[_ZN3tvm7runtime12DenseMapNode16TrySpareListHeadENS1_8ListNodeERKNS0_9ObjectRefEPS2_]+0xcf): undefined reference to `tvm::runtime::DenseMapNode::kNextProbeLocation'
   /usr/bin/ld: lib/libtvm_runtime_pack.o: in function `tvm::runtime::DenseMapNode::TryInsert(tvm::runtime::ObjectRef const&, tvm::runtime::DenseMapNode::ListNode*)':
   tvm_runtime_pack.cc:(.text._ZN3tvm7runtime12DenseMapNode9TryInsertERKNS0_9ObjectRefEPNS1_8ListNodeE[_ZN3tvm7runtime12DenseMapNode9TryInsertERKNS0_9ObjectRefEPNS1_8ListNodeE]+0x19e): undefined reference to `tvm::runtime::DenseMapNode::kNextProbeLocation
   ```
   Setting the `USE_FALLBACK_STL_MAP=1` fixes the problem for me. However I'm not sure why it cannot find reference to `kNextProbeLocation`, I think there is some problem with container code, is there a more fundamental solution?
   
   cc @junrushao1994 @tqchen 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] leoluopy edited a comment on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
leoluopy edited a comment on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-824507672


   > Would you like to add the line below in tvm_runtime_pack.cc?
   > 
   > ```c++
   > #include "../../src/runtime/container.cc"
   > #include "../../src/runtime/logging.cc"
   > ```
   @junrushao1994 
   it's helpful for me , and my issue is fixed , thanks for your tips


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] junrushao1994 commented on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-819066951


   Would you like to add the line below in tvm_runtime_pack.cc?
   
   ```C++
   #include "../../src/runtime/workspace_pool.cc"
   ```
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] junrushao1994 edited a comment on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
junrushao1994 edited a comment on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-819066951


   Would you like to add the line below in tvm_runtime_pack.cc?
   
   ```C++
   #include "../../src/runtime/container.cc"
   #include "../../src/runtime/logging.cc"
   ```
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tkonolige commented on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
tkonolige commented on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-819084630


   Didn't realize this PR was up. See #7841 for a correct fix.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] yzh119 closed pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
yzh119 closed pull request #7839:
URL: https://github.com/apache/tvm/pull/7839


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] junrushao1994 edited a comment on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
junrushao1994 edited a comment on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-819066951


   Would you like to add the line below in tvm_runtime_pack.cc?
   
   ```C++
   #include "../../src/runtime/container.cc"
   ```
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] leoluopy commented on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
leoluopy commented on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-824507672


   > Would you like to add the line below in tvm_runtime_pack.cc?
   > 
   > ```c++
   > #include "../../src/runtime/container.cc"
   > #include "../../src/runtime/logging.cc"
   > ```
   
   it's helpful for me , and my issue is fixed , thanks for your tips


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] junrushao1994 commented on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-819066502


   @yzh119 the reason for the failure is that we didn't include container.cc


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] yzh119 commented on pull request #7839: [Fix] deployment code fails with USE_FALLBACK_STL_MAP=0

Posted by GitBox <gi...@apache.org>.
yzh119 commented on pull request #7839:
URL: https://github.com/apache/tvm/pull/7839#issuecomment-819157269


   @junrushao1994 I think `logging.cc` is already there, @tkonolige 's fix is correct, thanks.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org