Julia: build fails on Ubuntu

Created on 29 Jul 2018  ·  3Comments  ·  Source: JuliaLang/julia

I did make cleanall.

Precompile: ─  23.605761 seconds 13.8432%
    JULIA usr/lib/julia/sys-o.a
Illegal inttoptr
          %scevgep9 = ptrtoint i32 addrspace(13)* %scevgep to i64
Illegal inttoptr
          %scevgep1011 = ptrtoint i32 addrspace(13)* %scevgep10 to i64

signal (6): Aborted
in expression starting at no file:0
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
runOnFunction at /home/sachs/src/julia-master/src/llvm-gc-invariant-verifier.cpp:178
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /home/sachs/src/julia-master/usr/bin/../lib/libLLVM-6.0.so (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /home/sachs/src/julia-master/usr/bin/../lib/libLLVM-6.0.so (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /home/sachs/src/julia-master/usr/bin/../lib/libLLVM-6.0.so (unknown line)
operator() at /home/sachs/src/julia-master/src/jitlayers.cpp:1187 [inlined]
jl_dump_native at /home/sachs/src/julia-master/src/jitlayers.cpp:1196
jl_write_compiler_output at /home/sachs/src/julia-master/src/precompile.c:84
jl_atexit_hook at /home/sachs/src/julia-master/src/init.c:233
main at /home/sachs/src/julia-master/ui/repl.c:234
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/sachs/src/julia-master/usr/bin/julia (unknown line)
Allocations: 3781630 (Pool: 3779664; Big: 1966); GC: 9
Aborted (core dumped)
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [/home/sachs/src/julia-master/usr/lib/julia/sys-o.a] Error 1
make: *** [julia-sysimg-release] Error 2

Most helpful comment

make -C deps distclean-llvm then rebuild to pick up the LLVM patches.

All 3 comments

make -C deps distclean-llvm then rebuild to pick up the LLVM patches.

That did it, thanks.

This command also fixed the problem on a Mac (High Sierra), thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sbromberger picture sbromberger  ·  3Comments

StefanKarpinski picture StefanKarpinski  ·  3Comments

Keno picture Keno  ·  3Comments

StefanKarpinski picture StefanKarpinski  ·  3Comments

tkoolen picture tkoolen  ·  3Comments