<p dir="auto">Well this is a downer. I just spun up a new build machine and started cruising through the build, probably not paying as much attention as I should.  Here's an excerpt:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `x86_64-pc-msys': system `msys' not recognized
configure: error: /bin/sh ../autoconf/config.sub x86_64-pc-msys failed
Makefile:369: recipe for target 'llvm-3.3/build_Release/config.status' failed
make[2]: *** [llvm-3.3/build_Release/config.status] Error 1
Makefile:43: recipe for target 'julia-release' failed
make[1]: *** [julia-release] Error 2
Makefile:32: recipe for target 'release' failed
make: *** [release] Error 2"><pre class="notranslate"><code class="notranslate">checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `x86_64-pc-msys': system `msys' not recognized
configure: error: /bin/sh ../autoconf/config.sub x86_64-pc-msys failed
Makefile:369: recipe for target 'llvm-3.3/build_Release/config.status' failed
make[2]: *** [llvm-3.3/build_Release/config.status] Error 1
Makefile:43: recipe for target 'julia-release' failed
make[1]: *** [julia-release] Error 2
Makefile:32: recipe for target 'release' failed
make: *** [release] Error 2
</code></pre></div>
<p dir="auto">Digging into the /deps/llvm-* and doing a <code class="notranslate">make</code> there confirms that the problem is that the LLVM <code class="notranslate">configure</code> is not detecting the build system.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$uname -a
MSYS_NT-6.1 VM-Win7x64 2.0.0(0.272/5/3) 2014-03-19 13:02 x86_64 Msys"><pre class="notranslate"><code class="notranslate">$uname -a
MSYS_NT-6.1 VM-Win7x64 2.0.0(0.272/5/3) 2014-03-19 13:02 x86_64 Msys
</code></pre></div>
<p dir="auto">Up to date:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git remote -v
origin  https://github.com/JuliaLang/julia.git (fetch)
origin  https://github.com/JuliaLang/julia.git (push)

$ git show --oneline
898962c Merge pull request #6200 from JuliaLang/sjk/sprintf"><pre class="notranslate"><code class="notranslate">$ git remote -v
origin  https://github.com/JuliaLang/julia.git (fetch)
origin  https://github.com/JuliaLang/julia.git (push)

$ git show --oneline
898962c Merge pull request #6200 from JuliaLang/sjk/sprintf
</code></pre></div>
<p dir="auto">Just to be safe I did a <code class="notranslate">pacman -S autoconf</code> -- same build failure after updating autoconf.</p>
<p dir="auto">Note that I have <strong>not</strong> bisected and I am not implicating this particular commit of course. I'll look for recent changes to the makefiles when I get back Monday.</p>
<p dir="auto">Summary of situation:<br>
built julia-1.2.0-rc2 from source for centos6 with gcc 6.4.0 and -DGLIBCXX_USE_CXX11_ABI=0<br>
dlopen an .so which embeds some simple julia code. “Lifted” into global namespace with dlopen(RTLD_NOW | RTLD_GLOBAL)<br>
from a maya plugin.</p>
<p dir="auto">jl_init() results in this assert:<br>
void* jl_init_llvm(): Assertion `jl_TargetMachine &amp;&amp; “Failed to select target machine -” " Is the LLVM backend for this CPU enabled?"’ failed.</p>
<p dir="auto">Any ideas? A toy julia embedding works fine ( not loaded from maya )</p>
<p dir="auto">versioninfo():<br>
Julia Version 1.2.0-rc2.0<br>
Platform Info:<br>
OS: Linux (x86_64-pc-linux-gnu)<br>
CPU: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz<br>
WORD_SIZE: 64<br>
LIBM: libopenlibm<br>
LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)</p>