<p dir="auto">Hi all, I'm running Gentoo Linux x86_64. I installed the Julia v0.5.0 Generic Linux binary 64-bit (X86). Calling Julia gives the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ julia
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException(&quot;could not load library &quot;libgit2&quot;
libgssapi_krb5.so.2: cannot open shared object file: No such file or directory&quot;))
rec_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/stackwalk.c:84
record_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:232
jl_throw at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:550
jl_errorf at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:78
jl_dlerror at /home/centos/buildbot/slave/package_tarball64/build/src/dlload.c:69 [inlined]
jl_load_dynamic_library_ at /home/centos/buildbot/slave/package_tarball64/build/src/dlload.c:209
jl_get_library at /home/centos/buildbot/slave/package_tarball64/build/src/runtime_ccall.cpp:152
jl_load_and_lookup at /home/centos/buildbot/slave/package_tarball64/build/src/runtime_ccall.cpp:163
unknown function (ip: 0x7f4c5fed6346)
**init** at ./libgit2/libgit2.jl:538
unknown function (ip: 0x7f4c5fed6b58)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_module_run_initializer at /home/centos/buildbot/slave/package_tarball64/build/src/toplevel.c:83
_julia_init at /home/centos/buildbot/slave/package_tarball64/build/src/init.c:742
julia_init at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:283
unknown function (ip: 0x4013aa)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4013fc)"><pre class="notranslate"><code class="notranslate">$ julia
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException("could not load library "libgit2"
libgssapi_krb5.so.2: cannot open shared object file: No such file or directory"))
rec_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/stackwalk.c:84
record_backtrace at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:232
jl_throw at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:550
jl_errorf at /home/centos/buildbot/slave/package_tarball64/build/src/builtins.c:78
jl_dlerror at /home/centos/buildbot/slave/package_tarball64/build/src/dlload.c:69 [inlined]
jl_load_dynamic_library_ at /home/centos/buildbot/slave/package_tarball64/build/src/dlload.c:209
jl_get_library at /home/centos/buildbot/slave/package_tarball64/build/src/runtime_ccall.cpp:152
jl_load_and_lookup at /home/centos/buildbot/slave/package_tarball64/build/src/runtime_ccall.cpp:163
unknown function (ip: 0x7f4c5fed6346)
**init** at ./libgit2/libgit2.jl:538
unknown function (ip: 0x7f4c5fed6b58)
jl_call_method_internal at /home/centos/buildbot/slave/package_tarball64/build/src/julia_internal.h:189 [inlined]
jl_apply_generic at /home/centos/buildbot/slave/package_tarball64/build/src/gf.c:1942
jl_apply at /home/centos/buildbot/slave/package_tarball64/build/src/julia.h:1392 [inlined]
jl_module_run_initializer at /home/centos/buildbot/slave/package_tarball64/build/src/toplevel.c:83
_julia_init at /home/centos/buildbot/slave/package_tarball64/build/src/init.c:742
julia_init at /home/centos/buildbot/slave/package_tarball64/build/src/task.c:283
unknown function (ip: 0x4013aa)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4013fc)
</code></pre></div>
<p dir="auto">Does anybody have an idea?</p>
<p dir="auto">Using openSUSE Leap 42.1:<br>
24 hours ago a git pull followed by a <code class="notranslate">make &amp;&amp; make testall</code> ran fine. This morning I had an error in make:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
patching file tests/online/badssl.c
CMake Error: The current CMakeCache.txt directory /home/colin/Downloads/julia6/deps/scratch/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeCache.txt is different than the directory /home/colin/Downloads/julia/deps/scratch/libgit2-211e117a0590583a720c53172406f34186c543bd where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source &quot;/home/colin/Downloads/julia6/deps/srccache/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeLists.txt&quot; does not match the source &quot;/home/colin/Downloads/julia/deps/srccache/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeLists.txt&quot; used to generate cache.  Re-run cmake with a different source directory.
/home/colin/Downloads/julia6/deps/libgit2.mk:66: recipe for target 'scratch/libgit2-211e117a0590583a720c53172406f34186c543bd/build-configured' failed
make[1]: *** [scratch/libgit2-211e117a0590583a720c53172406f34186c543bd/build-configured] Error 1
Makefile:81: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2"><pre class="notranslate"><code class="notranslate">...
patching file tests/online/badssl.c
CMake Error: The current CMakeCache.txt directory /home/colin/Downloads/julia6/deps/scratch/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeCache.txt is different than the directory /home/colin/Downloads/julia/deps/scratch/libgit2-211e117a0590583a720c53172406f34186c543bd where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/colin/Downloads/julia6/deps/srccache/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeLists.txt" does not match the source "/home/colin/Downloads/julia/deps/srccache/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
/home/colin/Downloads/julia6/deps/libgit2.mk:66: recipe for target 'scratch/libgit2-211e117a0590583a720c53172406f34186c543bd/build-configured' failed
make[1]: *** [scratch/libgit2-211e117a0590583a720c53172406f34186c543bd/build-configured] Error 1
Makefile:81: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2
</code></pre></div>
<p dir="auto">I thought I had fixed this with <code class="notranslate">make -C deps distclean-libgit2 distclean-mbedtls distclean-libssh2</code> which allowed <code class="notranslate">make</code> to run to the end. However now Julia 0.6 fails to launch with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; julia6
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException(&quot;error initializing LibGit2 module&quot;))
rec_backtrace at /home/colin/Downloads/julia6/src/stackwalk.c:84
record_backtrace at /home/colin/Downloads/julia6/src/task.c:238
jl_throw at /home/colin/Downloads/julia6/src/task.c:560
__init__ at ./libgit2/libgit2.jl:539
unknown function (ip: 0x7f60d03e3e08)
jl_call_method_internal at /home/colin/Downloads/julia6/src/julia_internal.h:218 [inlined]
jl_apply_generic at /home/colin/Downloads/julia6/src/gf.c:1852
jl_apply at /home/colin/Downloads/julia6/src/julia.h:1376 [inlined]
jl_module_run_initializer at /home/colin/Downloads/julia6/src/toplevel.c:83
_julia_init at /home/colin/Downloads/julia6/src/init.c:702
julia_init at /home/colin/Downloads/julia6/src/task.c:289
unknown function (ip: 0x4014cd)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x40151f)
"><pre class="notranslate"><code class="notranslate">&gt; julia6
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException("error initializing LibGit2 module"))
rec_backtrace at /home/colin/Downloads/julia6/src/stackwalk.c:84
record_backtrace at /home/colin/Downloads/julia6/src/task.c:238
jl_throw at /home/colin/Downloads/julia6/src/task.c:560
__init__ at ./libgit2/libgit2.jl:539
unknown function (ip: 0x7f60d03e3e08)
jl_call_method_internal at /home/colin/Downloads/julia6/src/julia_internal.h:218 [inlined]
jl_apply_generic at /home/colin/Downloads/julia6/src/gf.c:1852
jl_apply at /home/colin/Downloads/julia6/src/julia.h:1376 [inlined]
jl_module_run_initializer at /home/colin/Downloads/julia6/src/toplevel.c:83
_julia_init at /home/colin/Downloads/julia6/src/init.c:702
julia_init at /home/colin/Downloads/julia6/src/task.c:289
unknown function (ip: 0x4014cd)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x40151f)

</code></pre></div>
<p dir="auto">Prebuilt Julia 0.5 works fine.</p>