# MPI.jl status and import error

**URL:** <https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990>\
**Category:** General Usage\
**Tags:** mpi\
**Created:** [October 31, 2018, 12:45am UTC](https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990 "2018-10-31T00:45:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tims](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tims](https://discourse.julialang.org/u/tims)\
**Post date:** [October 31, 2018, 12:45am UTC](https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990/1 "2018-10-31T00:45:28Z")

</div>

Is MPI.jl supported for Julia 0.6.4 ?  
I get the following precompile error:

mpirun -n 1 julia hello.jl

## WARNING: deprecated syntax “bitstype 64 CComm” at /share/apps/Julia/julia-903644385b/share/julia/site/v0.6/MPI/src/../deps/src/compile-time.jl:67. Use “primitive type CComm 64 end” instead. WARNING: The call to compilecache failed to create a usable precompiled cache file for module MPI. Got: WARNING: Precompile file header verification checks failed. ERROR: LoadError: LoadError: Declaring **precompile** (true) is only allowed in module files being imported. Stacktrace: [1] **precompile** (::Bool) at ./loading.jl:342 [2] **precompile** () at ./loading.jl:338 [3] include\_from\_node1(::String) at ./loading.jl:576 while loading /share/apps/Julia/julia-903644385b/share/julia/site/v0.6/MPI/src/MPI.jl, in expression starting on line 1

## Primary job terminated normally, but 1 process returned a non-zero exit code.. Per user-direction, the job has been aborted.

* * *

mpirun detected that one or more processes exited with non-zero status, thus causing  
the job to be terminated. The first process to do so was:

## Process name: [[24969,1],0] Exit code: 1

---

<div class="post-metadata">

**Author:** ![JaredCrean2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaredcrean2/32/3574_2.png) [@JaredCrean2](https://discourse.julialang.org/u/JaredCrean2)\
**Post date:** [October 31, 2018, 2:39am UTC](https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990/2 "2018-10-31T02:39:14Z")

</div>

What version of MPI.jl are you using? I don’t think the current master supports Julia 0.6 anymore. I am using MPI.jl v0.6.0 with Julia version 0.6.2 without error.

---

<div class="post-metadata">

**Author:** ![tims](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tims](https://discourse.julialang.org/u/tims)\
**Post date:** [October 31, 2018, 4:46pm UTC](https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990/3 "2018-10-31T16:46:37Z")

</div>

It’s the same:

julia\> Pkg.status(“MPI”)

- MPI 0.6.0

---

<div class="post-metadata">

**Author:** ![JaredCrean2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaredcrean2/32/3574_2.png) [@JaredCrean2](https://discourse.julialang.org/u/JaredCrean2)\
**Post date:** [October 31, 2018, 5:26pm UTC](https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990/4 "2018-10-31T17:26:00Z")

</div>

I tested MPI.jl v0.6.0 with Julia v0.6.4, and was able to precompile successfully:

```julia
julia> using MPI
INFO: Precompiling module MPI.

WARNING: deprecated syntax "bitstype 32 CComm" at /tmp/pkgtmp/v0.6/MPI/src/../deps/src/compile-time.jl:67.
Use "primitive type CComm 32 end" instead.

julia> 

```

This looks like some problem with your local setup. The

> [@tims](#):
>
> Precompile file header verification checks failed.

part looks suspicious to me. As a test, can you create a new Julia package directory and install MPI.jl there. For example

```julia
mkdir -v /tmp/pkgtest
export JULIA_PKGDIR=/tmp/pkgtest
julia -e 'Pkg.init(); Pkg.add("MPI", v"0.6.0")'
julia -e 'using MPI' # trigger precompile

```

---

<div class="post-metadata">

**Author:** ![tims](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tims](https://discourse.julialang.org/u/tims)\
**Post date:** [November 1, 2018, 4:39pm UTC](https://discourse.julialang.org/t/mpi-jl-status-and-import-error/16990/5 "2018-11-01T16:39:55Z")

</div>

had to log back in and then precompile worked. Thanks!
