Error on MAC OS: Unable to load the JIT library

username: leejaymin
cooked: <p>“unable to load the jit library” error occurs in the recent Glow version (12/13/2019).</p>
<p>In version (8/11 2019), there is no runtime error under both backends: interpreter and CPU.<br>
However, the recent Glow version is not working with “CPU backend”. In case of interpreter, it is still working.</p>
<p>I used llvm@7 for compiling Glow.</p>
<p>The detailed error and program arguments are below.</p>
<pre><code class="lang-bash">cat_285.png
-m=conv_batchnorm.onnx
-image-mode=0to1
-model-input-name=input.1
-time
-use-imagenet-normalization
-backend=CPU
</code></pre>
<pre><code class="lang-bash">WARNING: Logging before InitGoogleLogging() is written to STDERR
F1213 12:51:48.990640 176840704 LLVMIRGen.cpp:194] Check failed: llmodule_.get() Unable to load the JIT library.
*** Check failure stack trace: ***
0  image-classifier         0x00000001042b1c55 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;) + 40
1  image-classifier         0x00000001042b2088 SignalHandler(int) + 180
2  libsystem_platform.dylib 0x00007fff64782b5d _sigtramp + 29
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 2609370304
4  libsystem_c.dylib        0x00007fff6463c6a6 abort + 127
5  libglog.0.dylib          0x00000001088ef991 google::InstallFailureFunction(void (*)()) + 0
6  libglog.0.dylib          0x00000001088eeae7 google::LogMessage::SendToLog() + 723
7  libglog.0.dylib          0x00000001088ef349 google::LogMessage::Flush() + 175
8  libglog.0.dylib          0x00000001088f29ef google::LogMessageFatal::~LogMessageFatal() + 15
9  libglog.0.dylib          0x00000001088efc77 google::LogMessageFatal::~LogMessageFatal() + 9
10 image-classifier         0x0000000104410096 glow::LLVMIRGen::initCodeGen() + 422
11 image-classifier         0x000000010443bebf glow::LLVMBackend::compileIRWithoutConstants(glow::IRFunction*) const + 271
12 image-classifier         0x000000010443c639 glow::LLVMBackend::compile(glow::Function*, glow::BackendOptions const&amp;) const + 393
13 image-classifier         0x00000001043467e0 glow::runtime::Provisioner::provision(std::__1::vector&lt;glow::runtime::DAG, std::__1::allocator&lt;glow::runtime::DAG&gt; &gt;&amp;, glow::Module&amp;, glow::CompilationContext&amp;) + 4096
14 image-classifier         0x0000000103f3f207 glow::runtime::HostManager::addNetwork(std::__1::unique_ptr&lt;glow::Module, std::__1::default_delete&lt;glow::Module&gt; &gt;, glow::CompilationContext&amp;, bool) + 4007
15 image-classifier         0x0000000103e9ad37 glow::Loader::compile(glow::CompilationContext&amp;) + 2055
16 image-classifier         0x0000000103edc4e8 buildAndCompileAndGetInAndOutPair(glow::Loader&amp;, glow::PlaceholderBindings&amp;, glow::Type const*) + 456
17 image-classifier         0x0000000103edb45e main::$_2::operator()(unsigned long, unsigned long) const + 1342
18 image-classifier         0x0000000103edaf13 main::$_0::operator()() const + 35
19 image-classifier         0x0000000103edaead decltype(std::__1::forward&lt;main::$_0&gt;(fp)()) std::__1::__invoke&lt;main::$_0&gt;(main::$_0&amp;&amp;) + 29
20 image-classifier         0x0000000103edae15 void std::__1::__thread_execute&lt;std::__1::unique_ptr&lt;std::__1::__thread_struct, std::__1::default_delete&lt;std::__1::__thread_struct&gt; &gt;, main::$_0&gt;(std::__1::tuple&lt;std::__1::unique_ptr&lt;std::__1::__thread_struct, std::__1::default_delete&lt;std::__1::__thread_struct&gt; &gt;, main::$_0&gt;&amp;, std::__1::__tuple_indices&lt;&gt;) + 37
21 image-classifier         0x0000000103eda6e3 void* std::__1::__thread_proxy&lt;std::__1::tuple&lt;std::__1::unique_ptr&lt;std::__1::__thread_struct, std::__1::default_delete&lt;std::__1::__thread_struct&gt; &gt;, main::$_0&gt; &gt;(void*) + 99
22 libsystem_pthread.dylib  0x00007fff6478b2eb _pthread_body + 126
23 libsystem_pthread.dylib  0x00007fff6478e249 _pthread_start + 66
24 libsystem_pthread.dylib  0x00007fff6478a40d thread_start + 13
</code></pre>

username: jfix
cooked: <p>For completeness, this is being <a href="https://github.com/pytorch/glow/issues/3874" rel="nofollow noopener">tracked here</a>.</p>