Installation problem -- First time install give "Invalid instruction..." when starting julia

I just learned about julia and am interested in trying it. I downloaded JuliaPro-1.4.0-1_build-87.sh and installed on a Linux Mint 19.2 system (runs under Virtualbox on a Windows 10 system).

When starting julia, either directly or under atom, I get the messages below. Any thoughts or help will be appreciated.

Thank you

Invalid instruction at 0x7f34594c00f8: 0x66, 0x0f, 0x3a, 0x0f, 0xc0, 0x08, 0x0f, 0x83, 0x61, 0x05, 0x00, 0x00, 0x48, 0xc1, 0xe0

signal (4): Illegal instruction
in expression starting at none:0
_ZN4llvm13LexicalScopes23assignInstructionRangesERNS_15SmallVectorImplISt4pairIPKNS_12MachineInstrES5_EEERNS_8DenseMapIS5_PNS_12LexicalScopeENS_12DenseMapInfoIS5_EENS_6detail12DenseMapPairIS5_SB_EEEE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
_ZN4llvm13LexicalScopes10initializeERKNS_15MachineFunctionE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
_ZN4llvm18LiveDebugVariables20runOnMachineFunctionERNS_15MachineFunctionE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/…/lib/julia/libLLVM-8.so (unknown line)
operator() at /buildworker/worker/package_linux64/build/src/jitlayers.cpp:356
addModule at /buildworker/worker/package_linux64/build/usr/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h:84 [inlined]
addModule at /buildworker/worker/package_linux64/build/src/jitlayers.cpp:485
jl_add_to_ee at /buildworker/worker/package_linux64/build/src/jitlayers.cpp:747 [inlined]
jl_finalize_function at /buildworker/worker/package_linux64/build/src/jitlayers.cpp:755
getAddressForFunction at /buildworker/worker/package_linux64/build/src/codegen.cpp:1414
jl_generate_fptr at /buildworker/worker/package_linux64/build/src/codegen.cpp:1510
jl_compile_method_internal at /buildworker/worker/package_linux64/build/src/gf.c:1912
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2153 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
_deepcopy_array_t at ./deepcopy.jl:103
deepcopy_internal at ./deepcopy.jl:96 [inlined]
deepcopy at ./deepcopy.jl:30 [inlined]
resize_nthreads! at ./threads.jl:30
resize_nthreads! at ./threads.jl:26 [inlined]
init at ./grisu/grisu.jl:27
jfptr___init___4550 at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1692 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:74
_julia_init at /buildworker/worker/package_linux64/build/src/init.c:788
main at /buildworker/worker/package_linux64/build/ui/repl.c:211
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/rjmoses/Downloads/JuliaPro-1.4.0-1/Julia/bin/julia (unknown line)
Allocations: 2504 (Pool: 2496; Big: 8); GC: 0

Julia has exited.
Press Enter to start a new session.

Try downloading the normal julia binaries, rather than julia pro.

2 Likes

Hi @rjmoses Julia also works directly with Windows. Just download and run.
I realise that you may prefer Mint as your development environment.

If you try the Julia binary as suggested by @pdeffebach please tell us how it goes.
If you still have a problem I have a dual boot Windows 10 laptop and I can duplicate your setup.

Thanks.

Downloaded plain julia (julia-1.4.0-linux-x86_64.tar.gz) and get the same error when running ~/julia/bin/julia.

I do prefer Linux as a development environment and I run it under Virtualbox so i can take a snapshot when trying something new. That way, I can roll back and start over pretty easily.

Thanks for the hints to you and alea54. I tried downloading the pre-builts but they were giving me different kinds of problems so I ended up gitt’ing the source and building it with Make.user:

MARCH=amdfam10
USE_BINARYBUILDER=0

Seems to work OK so far. I must say I like a lot of the things I have seen so far.

Thanks again