marxin commented on issue #6832:
URL: https://github.com/apache/tvm/issues/6832#issuecomment-768182846


   Well I think the problem is Static Initialization Order Fiasco:
   https://en.cppreference.com/w/cpp/language/siof
   
   which is only exposed by LTO.
   
   ```
   static const Op& with_funcid_op = Op::Get("annotation.with_funcid"); 
   ```
   
   is called before `OpRegistry::Global()` is initialized if I see correctly.
   Note that without LTO optimization, you are lucky based on the order of `.o` 
files provided on the linker command line.


----------------------------------------------------------------
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:
[email protected]


Reply via email to