JuliaFEM / JuliaFEM.jl

The JuliaFEM software library is a framework that allows for the distributed processing of large Finite Element Models across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
http://juliafem.github.io/JuliaFEM.jl/latest/
MIT License
252 stars 66 forks source link

Failed to precompile #252

Open MarcoEng77 opened 4 years ago

MarcoEng77 commented 4 years ago

Hi there,

I tried to install JuliaFEM but upon issuing Pkg.test("JuliaFEM")

I get first a warning, and then errors:

┌ Warning: Package FEMBase does not have TimerOutputs in its dependencies: │ - If you have FEMBase checked out for development and have │ added TimerOutputs as a dependency but haven't updated your primary │ environment's manifest file, tryPkg.resolve()`. │ - Otherwise you may need to report an issue with FEMBase └ Loading TimerOutputs into FEMBase from project dependency, future warnings for FEMBase are suppressed. ERROR: LoadError: LoadError: invalid subtyping in definition of Poi1 Stacktrace: [1] top-level scope at C:\Users\Musto Family.julia\packages\FEMBase\1R4fe\src\elements_lagrange.jl:4 [2] include at .\boot.jl:328 [inlined] [3] include_relative(::Module, ::String) at .\loading.jl:1094 [4] include at .\Base.jl:31 [inlined] [5] include(::String) at C:\Users\Musto Family.julia\packages\FEMBase\1R4fe\src\FEMBase.jl:4 [6] top-level scope at C:\Users\Musto Family.julia\packages\FEMBase\1R4fe\src\FEMBase.jl:28 [7] include at .\boot.jl:328 [inlined] [8] include_relative(::Module, ::String) at .\loading.jl:1094 [9] include(::Module, ::String) at .\Base.jl:31 [10] top-level scope at none:2 [11] eval at .\boot.jl:330 [inlined] [12] eval(::Expr) at .\client.jl:432 [13] top-level scope at .\none:3 in expression starting at C:\Users\Musto Family.julia\packages\FEMBase\1R4fe\src\elements_lagrange.jl:4 in expression starting at C:\Users\Musto Family.julia\packages\FEMBase\1R4fe\src\FEMBase.jl:28 ERROR: LoadError: Failed to precompile FEMBase [fbcbbc08-f1bf-5204-9233-b69f5d396135] to C:\Users\Musto Family.julia\compiled\v1.2\FEMBase\6HUoq.ji. Stacktrace: [1] error(::String) at .\error.jl:33 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253 [3] _require(::Base.PkgId) at .\loading.jl:1013 [4] require(::Base.PkgId) at .\loading.jl:911 [5] require(::Module, ::Symbol) at .\loading.jl:906 [6] include at .\boot.jl:328 [inlined] [7] include_relative(::Module, ::String) at .\loading.jl:1094 [8] include(::Module, ::String) at .\Base.jl:31 [9] top-level scope at none:2 [10] eval at .\boot.jl:330 [inlined] [11] eval(::Expr) at .\client.jl:432 [12] top-level scope at .\none:3 in expression starting at C:\Users\Musto Family.julia\packages\JuliaFEM\DbhTT\src\JuliaFEM.jl:111 ERROR: LoadError: Failed to precompile JuliaFEM [f80590ac-b429-510a-8a99-e7c46989f22d] to C:\Users\Musto Family.julia\compiled\v1.2\JuliaFEM\JKouA.ji. Stacktrace: [1] error(::String) at .\error.jl:33 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253 [3] _require(::Base.PkgId) at .\loading.jl:1013 [4] require(::Base.PkgId) at .\loading.jl:911 [5] require(::Module, ::Symbol) at .\loading.jl:906 [6] include at .\boot.jl:328 [inlined] [7] include_relative(::Module, ::String) at .\loading.jl:1094 [8] include(::Module, ::String) at .\Base.jl:31 [9] include(::String) at .\client.jl:431 [10] top-level scope at none:5 in expression starting at C:\Users\Musto Family.julia\packages\JuliaFEM\DbhTT\test\runtests.jl:4 ERROR: Package JuliaFEM errored during testing Stacktrace: [1] pkgerror(::String, ::Vararg{String,N} where N) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\Types.jl:112 [2] #test#119(::Bool, ::Nothing, ::typeof(Pkg.Operations.test), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\Operations.jl:1288 [3] #test at .\none:0 [inlined] [4] #test#62(::Bool, ::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.test), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:245 [5] test at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:233 [inlined] [6] #test#61 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:230 [inlined] [7] test at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:230 [inlined] [8] #test#60 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:229 [inlined] [9] test at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:229 [inlined] [10] #test#59(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.test), ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:228 [11] test(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:228

I tried to install TimerOutputs.jl separately, but that did not sort the problem out. I ran a Pkg.update() as well.

I am using Julia 1.2.0. Any hints or suggestions? Thanks a lot

TeroFrondelius commented 4 years ago

I propose that you will ask help in the discourse: https://discourse.julialang.org/ For me these cygwin paths "C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl" looks suspicious. Why don't you use the native Windows Julia version on the Windows machine?

MarcoEng77 commented 4 years ago

Hi Tero,

thanks I will follow your advice. I will leave it here as well, just in case somebody picks something specifically JuliaFEM related.

I find those cygwin references funny too. While I do have cygwin on my machine, I use the native Julia version on a Windows OS, I cannot understand what has cygwin to do with the JuliaFEM installation. Thanks and bye