PETSc.jl icon indicating copy to clipboard operation
PETSc.jl copied to clipboard

ERROR: Method overwriting is not permitted during Module precompilation

Open ZhangFengshun opened this issue 1 year ago • 1 comments

julia> using PETSc Precompiling PETSc Info Given PETSc was explicitly requested, output will be shown live WARNING: Method definition localsize(Ptr{Nothing}) in module PETSc at /home/zfs/.julia/packages/PETSc/4khzV/src/vec.jl:155 overwritten on the same line (check for duplicate calls to include). ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation. ? PETSc [ Info: Precompiling PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0] WARNING: Method definition localsize(Ptr{Nothing}) in module PETSc at /home/zfs/.julia/packages/PETSc/4khzV/src/vec.jl:155 overwritten on the same line (check for duplicate calls to include). ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation. [ Info: Skipping precompilation since precompile(false). Importing PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0].

julia>

ZhangFengshun avatar Apr 19 '24 08:04 ZhangFengshun

As I wrote on an earlier issue, PETSc.jl is currently broken and I have no time to finish or bring it up to date (PETSc_jll is already enough of a time sink). So if you or anyone else is willing to bring the package up to speed I am happy to give you a bit more info.

boriskaus avatar Apr 19 '24 09:04 boriskaus

For now we should start by disabling precompliation. This should be a simple PR, and it would be great to get more contributions to maintaining this package.

ViralBShah avatar Oct 03 '24 07:10 ViralBShah

Also fixed on main with #194. Please dev the package and try it out. We can close this after tagging a new version.

ViralBShah avatar Oct 14 '24 22:10 ViralBShah