JuliaParallel / PETSc.jl

Julia wrappers for the PETSc library
Other
121 stars 38 forks source link

Unable to test/precompile PETSc.jl #176

Closed rohitvuppala closed 2 years ago

rohitvuppala commented 3 years ago

Unable to install the package, I get the following errors when I try to pre-compile or test PETSc. What am I missing?

ERROR: ERROR: ERROR: ERROR: LoadError: LoadError: LoadError: LoadError: LoadError: LoadError: LoadError: LoadError: AssertionError: length(scalar_types) == length(unique(scalar_types))
Stacktrace:AssertionError: length(scalar_types) == length(unique(scalar_types))
Stacktrace:AssertionError: length(scalar_types) == length(unique(scalar_types))
Stacktrace:AssertionError: length(scalar_types) == length(unique(scalar_types))
Stacktrace:
 [1] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
 [2] 
 [1] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
 [2] include
 [1] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
 [2] 
 [1] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
 [2] include(includeinclude(((::::::::Function, ::Module, ::String) at ./Base.jl:380
 [3] include at ./Base.jl:368 [inlined]
 [4] include(::String) at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:1
 [5] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
Function, ::Module, ::String) at ./Base.jl:380
 [3] Function, ::Module, ::includeString at )./Base.jl:368 at  [inlined]./Base.jl:380
 [3] 
 [4] include(::String) at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:1
 [5] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
include at ./Base.jl:368 [inlined]
 [4] include(::String) at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:1
 [5] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
Function, ::Module, ::String) at ./Base.jl:380
 [3] include at ./Base.jl:368 [inlined]
 [4] include(::String) at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:1
 [5] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/lib.jl:127
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/src/PETSc.jl:23
ERROR: ERROR: ERROR: ERROR: LoadError: LoadError: LoadError: LoadError: Failed to precompile PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0] to /home/rohit/.julia/compiled/v1.5/PETSc/0gfmZ_DPPqE.ji.
Stacktrace:Failed to precompile PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0] to /home/rohit/.julia/compiled/v1.5/PETSc/0gfmZ_DPPqE.ji.
Stacktrace:Failed to precompile PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0] to /home/rohit/.julia/compiled/v1.5/PETSc/0gfmZ_DPPqE.ji.
Stacktrace:Failed to precompile PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0] to /home/rohit/.julia/compiled/v1.5/PETSc/0gfmZ_DPPqE.ji.
Stacktrace:
 [1] 
 [1] 
 [1] 
 [1] errorerrorerrorerror((((::::::::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] exec_options(::Base.JLOptions) at ./client.jl:296
 [9] _start() at ./client.jl:506
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/test/dmda.jl:2
mpi tests: Test Failed at /home/rohit/.julia/packages/PETSc/LSdRz/test/runtests.jl:8
  Expression: mpiexec() do mpi_cmd
    cmd = `$mpi_cmd -n 4 $(Base.julia_cmd()) --project dmda.jl`
    success(pipeline(cmd, stderr = stderr))
end
Stacktrace:
 [1] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/test/runtests.jl:8
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115
 [3] top-level scope at /home/rohit/.julia/packages/PETSc/LSdRz/test/runtests.jl:8
Test Summary: | Fail  Total
mpi tests     |    1      1
ERROR: LoadError: Some tests did not pass: 0 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /home/rohit/.julia/packages/PETSc/LSdRz/test/runtests.jl:6
ERROR: Package PETSc errored during testing
jkozdon commented 3 years ago

What version of Julia are you using and what's the architecture?

rohitvuppala commented 3 years ago

Julia version 1.5.3 on Ubuntu 20.04.3 LTS x86_64 architecture , 5.8.0-050800-generic Linux Kernel

jkozdon commented 3 years ago

Hmm... locally I get failures with Julia 1.5.4.

Is there a reason you cannot use Julia 1.6?

rohitvuppala commented 3 years ago

I updated to v1.6.3 and it seems to work with any hiccups. Seems like it is a problem specific to v1.5.3/v1.5.4. I think you could close the issue.