Hello,
I’m new to Julia. I hope this post is at the right place.
So, I have to install MPI.jl module for one of our users. It doesn’t work. I have installed Linux 64 bits binary versions of julia 0.7.0 and 1.0.1
julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: https://docs.julialang.org _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _
| |
| | || | | | (| | | Version 0.7.0 (2018-08-08 06:46 UTC)
/ |_‘|||_’_| | Official http://julialang.org/ release
|__/ | x86_64-pc-linux-gnu
(v0.7) pkg> update
Cloning default registries into //.julia/registries
Cloning registry General from “GitHub - JuliaRegistries/General: The official registry of general Julia packages”
Updating registry at ~/.julia/registries/General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions…
(v0.7) pkg> add GitHub - JuliaParallel/MPI.jl: MPI wrappers for Julia
Cloning git-repo https://github.com/JuliaParallel/MPI.jl
Updating git-repo https://github.com/JuliaParallel/MPI.jl
Resolving package versions…
Installed URIParser ─ v0.4.0
Installed BinDeps ─── v0.8.10
Installed Compat ──── v1.3.0
Updating ~/.julia/environments/v0.7/Project.toml
[da04e1cc] + MPI v0.7.0 #master (GitHub - JuliaParallel/MPI.jl: MPI wrappers for Julia)
Updating ~/.julia/environments/v0.7/Manifest.toml
[9e28174c] + BinDeps v0.8.10
[34da2185] + Compat v1.3.0
[da04e1cc] + MPI v0.7.0 #master (GitHub - JuliaParallel/MPI.jl: MPI wrappers for Julia)
[30578b45] + URIParser v0.4.0
[2a0f44e3] + Base64
[ade2ca70] + Dates
[8bb1440f] + DelimitedFiles
[8ba89e20] + Distributed
[b77e0a4c] + InteractiveUtils
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[44cfe95a] + Pkg
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[1a1011a3] + SharedArrays
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
Building MPI → ~/.julia/packages/MPI/U5ujD/deps/build.log
julia> using MPI
[ Info: Precompiling MPI [da04e1cc-30fd-572f-bb4f-1f8673147195]
ERROR: LoadError: LoadError: UndefVarError: MPI_COMM_NULL not defined
Stacktrace:
[1] top-level scope at none:0
[2] include at ./boot.jl:317 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1038
[4] include at ./sysimg.jl:29 [inlined]
[5] include(::String) at //.julia/packages/MPI/U5ujD/src/MPI.jl:3
[6] top-level scope at none:0
[7] include at ./boot.jl:317 [inlined]
[8] include_relative(::Module, ::String) at ./loading.jl:1038
[9] include(::Module, ::String) at ./sysimg.jl:29
[10] top-level scope at none:2
[11] eval at ./boot.jl:319 [inlined]
[12] eval(::Expr) at ./client.jl:399
[13] top-level scope at ./none:3
in expression starting at //.julia/packages/MPI/U5ujD/src/mpi-base.jl:73
in expression startiing at //.julia/packages/MPI/U5ujD/src/MPI.jl:20
ERROR: Failed to precompile MPI [da04e1cc-30fd-572f-bb4f-1f8673147195] to //.julia/compiled/v0.7/MPI/nO0XF.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1185
[4] _require(::Base.PkgId) at ./logging.jl:311
[5] require(::Base.PkgId) at ./loading.jl:852
[6] macro expansion at ./logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at ./loading.jl:834`
If I look at the build.log file, everything seems to be OK, no warning or error message. However, I notice that I can’t make usage of ‘module loaded’ recent version of gcc , It takes /usr/bin/gcc !
Regards,
Guy.