Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Windows #110

Open
ViralBShah opened this issue Aug 31, 2022 · 11 comments
Open

Error on Windows #110

ViralBShah opened this issue Aug 31, 2022 · 11 comments

Comments

@ViralBShah
Copy link

ViralBShah commented Aug 31, 2022

(@v1.8) pkg> st
Status `C:\Users\viral\.julia\environments\v1.8\Project.toml`
  [7db386b5] DependencyWalker v0.1.2
  [55d2b088] MUMPS v1.3.0
  [ca64183c] MUMPS_jll v5.5.1+1
⌃ [d7ed1dd3] MUMPS_seq_jll v5.5.1+0

julia> using MUMPS
[ Info: Precompiling MUMPS [55d2b088-9f4e-11e9-26c0-150b02ea6a46]
ERROR: LoadError: UndefVarError: libsmumps not defined
Stacktrace:
 [1] top-level scope
   @ C:\Users\viral\.julia\packages\MUMPS\VTKeP\src\interface.jl:21
 [2] include(mod::Module, _path::String)
   @ Base .\Base.jl:419
 [3] include(x::String)
   @ MUMPS C:\Users\viral\.julia\packages\MUMPS\VTKeP\src\MUMPS.jl:30
 [4] top-level scope
   @ C:\Users\viral\.julia\packages\MUMPS\VTKeP\src\MUMPS.jl:50
 [5] include
   @ .\Base.jl:419 [inlined]
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base .\loading.jl:1554
 [7] top-level scope
   @ stdin:1
in expression starting at C:\Users\viral\.julia\packages\MUMPS\VTKeP\src\interface.jl:21
in expression starting at C:\Users\viral\.julia\packages\MUMPS\VTKeP\src\MUMPS.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile MUMPS [55d2b088-9f4e-11e9-26c0-150b02ea6a46] to C:\Users\viral\.julia\compiled\v1.8\MUMPS\jl_DC58.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base .\loading.jl:1705
 [3] compilecache
   @ .\loading.jl:1649 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base .\loading.jl:1200
 [6] macro expansion
   @ .\loading.jl:1180 [inlined]
 [7] macro expansion
   @ .\lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:1144
@dpo
Copy link
Member

dpo commented Aug 31, 2022

MUMPS_jll doesn't contain binaries for Windows.
https://github.com/JuliaBinaryWrappers/MUMPS_jll.jl/releases/tag/MUMPS-v5.5.1%2B1

@ViralBShah
Copy link
Author

Ah so only MUMPS_seq_jll is available on Windows?

@dpo
Copy link
Member

dpo commented Aug 31, 2022

Yes. There's an initial experiment here: #107

Edit: I think the blocker for MUMPS_jll was MPI on Windows, but @amontoison will confirm.

@amontoison
Copy link
Member

All dependencies of MUMPS are difficult to compile on Linux / OSX platforms.
For MUMPS_jll with need to compile the dependencies with MPI, which is even harder...
The last version of MUMPS_jll (two weeks ago) is the first one that works for information!
We work on it with @dpo since 2 years.

It should theoretically possible to compile it on Windows in the future because we recompiled all the dependencies with MPITrampoline, so it will be "easier" to compile MUMPS and the dependencies with MicrosoftMPI.

@ovanvincq
Copy link

Hi,

I get the error below when precompiling MUMPS v1.4.1 on windows 10 and Julia 1.10.0
There is no problem with MUMPS 1.4.0.

PkgPrecompileError: The following 1 direct dependency failed to precompile:

MUMPS [55d2b088-9f4e-11e9-26c0-150b02ea6a46]

Failed to precompile MUMPS [55d2b088-9f4e-11e9-26c0-150b02ea6a46] to "C:\\Users\\Olivier\\.julia\\compiled\\v1.10\\MUMPS\\jl_AF10.tmp".
[9468] signal (22): SIGABRT
in expression starting at C:\Users\Olivier\.julia\packages\MUMPS\Y8ASV\src\MUMPS.jl:35
crt_sig_handler at C:/workdir/src\signals-win.c:95
raise at C:\Windows\System32\msvcrt.dll (unknown line)
abort at C:\Windows\System32\msvcrt.dll (unknown line)
__report_error at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\pseudo-reloc.c:157
do_pseudo_reloc at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\pseudo-reloc.c:457 [inlined]
_pei386_runtime_relocator at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\pseudo-reloc.c:501
__DllMainCRTStartup at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\crtdll.c:170
RtlActivateActivationContextUnsafeFast at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
LdrGetProcedureAddressEx at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
LdrGetProcedureAddressEx at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
LdrGetProcedureAddressEx at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlSwitchedVVI at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlGetFullPathName_UstrEx at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlDosPathNameToNtPathName_U at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
LdrLoadDll at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
LoadLibraryExW at C:\Windows\System32\KERNELBASE.dll (unknown line)
ijl_dlopen at C:/workdir/src\dlload.c:166
ijl_load_dynamic_library at C:/workdir/src\dlload.c:365
#dlopen#3 at .\libdl.jl:117
dlopen at .\libdl.jl:116
jfptr_dlopen_55086.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
macro expansion at C:\Users\Olivier\.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
__init__ at C:\Users\Olivier\.julia\packages\MUMPS_jll\Q0hDi\src\wrappers\x86_64-w64-mingw32-libgfortran5-mpi+microsoftmpi.jl:18
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_module_run_initializer at C:/workdir/src\toplevel.c:76
run_module_init at .\loading.jl:1128
register_restored_modules at .\loading.jl:1116
_include_from_serialized at .\loading.jl:1061
_require_search_from_serialized at .\loading.jl:1575
_require at .\loading.jl:1932
__require_prelocked at .\loading.jl:1806
jfptr___require_prelocked_84732.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:921 [inlined]
invoke_in_world at .\essentials.jl:918 [inlined]
_require_prelocked at .\loading.jl:1797
macro expansion at .\loading.jl:1784 [inlined]
macro expansion at .\lock.jl:267 [inlined]
__require at .\loading.jl:1747
jfptr___require_84697.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:921 [inlined]
invoke_in_world at .\essentials.jl:918 [inlined]
require at .\loading.jl:1740
jfptr_require_84694.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
call_require at C:/workdir/src\toplevel.c:481 [inlined]
eval_import_path at C:/workdir/src\toplevel.c:518
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:752
eval_body at C:/workdir/src\interpreter.c:583
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_eval_module_expr at C:/workdir/src\toplevel.c:215 [inlined]
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:736
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2070
_include at .\loading.jl:2130
include at .\Base.jl:495 [inlined]
include_package_for_output at .\loading.jl:2216
jfptr_include_package_for_output_84978.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2070
include_string at .\loading.jl:2080 [inlined]
exec_options at .\client.jl:316
_start at .\client.jl:552
jfptr__start_86719.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
true_main at C:/workdir/src\jlapi.c:582
jl_repl_entrypoint at C:/workdir/src\jlapi.c:731
mainCRTStartup at C:/workdir/cli\loader_exe.c:58
BaseThreadInitThunk at C:\Windows\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
Allocations: 2907 (Pool: 2899; Big: 8); GC: 0
Mingw-w64 runtime failure:
32 bit pseudo relocation at 000000006A6D8A5E out of range, targeting 00007FFE1DD86530, yielding the value 00007FFDB36ADACE

@amontoison
Copy link
Member

Hi @ovanvincq, the issue is related to MicrosoftMPI_jll.jl. I need to recompile it. With Julia 1.10 we can't do anymore symbolic link in the artifact.

@amontoison
Copy link
Member

@ovanvincq
I recompiled PARMETIS_jll.jl and MicrosoftMPI_jll.
Can you check if it fixed the error?

@ovanvincq
Copy link

@amontoison
MicrosoftMPI_jll and PARMETIS_jll have been updated to version 10.4.4+2 and 4.0.6+2.
However I get the same error when precompiling MUMPS 1.4.1

@amontoison
Copy link
Member

amontoison commented Feb 24, 2024

Can you provide the new error message?

@ovanvincq
Copy link

@amontoison

Failed to precompile MUMPS [55d2b088-9f4e-11e9-26c0-150b02ea6a46] to "C:\\Users\\Olivier\\.julia\\compiled\\v1.10\\MUMPS\\jl_6669.tmp".
[12156] signal (22): SIGABRT
in expression starting at C:\Users\Olivier\.julia\packages\MUMPS\Y8ASV\src\MUMPS.jl:35
crt_sig_handler at C:/workdir/src\signals-win.c:95
raise at C:\WINDOWS\System32\msvcrt.dll (unknown line)
abort at C:\WINDOWS\System32\msvcrt.dll (unknown line)
__report_error at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\pseudo-reloc.c:157
do_pseudo_reloc at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\pseudo-reloc.c:457 [inlined]
_pei386_runtime_relocator at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\pseudo-reloc.c:501
__DllMainCRTStartup at /workspace/srcdir/mingw-w64-v11.0.1/mingw-w64-crt/crt\crtdll.c:170
RtlActivateActivationContextUnsafeFast at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
LdrGetProcedureAddressEx at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
LdrGetProcedureAddressEx at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
LdrGetProcedureAddressEx at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
RtlSwitchedVVI at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
RtlGetFullPathName_UstrEx at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
RtlDosPathNameToNtPathName_U at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
LdrLoadDll at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
LoadLibraryExW at C:\WINDOWS\System32\KERNELBASE.dll (unknown line)
ijl_dlopen at C:/workdir/src\dlload.c:166
ijl_load_dynamic_library at C:/workdir/src\dlload.c:365
#dlopen#3 at .\libdl.jl:117
dlopen at .\libdl.jl:116
jfptr_dlopen_54912.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.1\lib\julia\sys.dll (unknown line)
macro expansion at C:\Users\Olivier\.julia\packages\JLLWrappers\pG9bm\src\products\library_generators.jl:63 [inlined]
__init__ at C:\Users\Olivier\.julia\packages\MUMPS_jll\Q0hDi\src\wrappers\x86_64-w64-mingw32-libgfortran5-mpi+microsoftmpi.jl:18
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_module_run_initializer at C:/workdir/src\toplevel.c:76
run_module_init at .\loading.jl:1134
register_restored_modules at .\loading.jl:1122
_include_from_serialized at .\loading.jl:1067
_require_search_from_serialized at .\loading.jl:1581
_require at .\loading.jl:1938
__require_prelocked at .\loading.jl:1812
jfptr___require_prelocked_84606.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.1\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:926 [inlined]
invoke_in_world at .\essentials.jl:923 [inlined]
_require_prelocked at .\loading.jl:1803
macro expansion at .\loading.jl:1790 [inlined]
macro expansion at .\lock.jl:267 [inlined]
__require at .\loading.jl:1753
jfptr___require_84571.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.1\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_in_world at C:/workdir/src\builtins.c:831
#invoke_in_world#3 at .\essentials.jl:926 [inlined]
invoke_in_world at .\essentials.jl:923 [inlined]
require at .\loading.jl:1746
jfptr_require_84568.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.1\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
call_require at C:/workdir/src\toplevel.c:481 [inlined]
eval_import_path at C:/workdir/src\toplevel.c:518
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:752
eval_body at C:/workdir/src\interpreter.c:583
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_eval_module_expr at C:/workdir/src\toplevel.c:215 [inlined]
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:736
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2076
_include at .\loading.jl:2136
include at .\Base.jl:495 [inlined]
include_package_for_output at .\loading.jl:2222
jfptr_include_package_for_output_84852.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.1\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:223
eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined]
eval_body at C:/workdir/src\interpreter.c:635
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:775
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:934
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:877
ijl_toplevel_eval at C:/workdir/src\toplevel.c:943 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:985
eval at .\boot.jl:385 [inlined]
include_string at .\loading.jl:2076
include_string at .\loading.jl:2086 [inlined]
exec_options at .\client.jl:316
_start at .\client.jl:552
jfptr__start_86593.1 at C:\Users\Olivier\AppData\Local\Programs\Julia-1.10.1\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
true_main at C:/workdir/src\jlapi.c:582
jl_repl_entrypoint at C:/workdir/src\jlapi.c:731
mainCRTStartup at C:/workdir/cli\loader_exe.c:58
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 2908 (Pool: 2899; Big: 9); GC: 0
Mingw-w64 runtime failure:
32 bit pseudo relocation at 000000006A6D8A5E out of range, targeting 00007FFA90436530, yielding the value 00007FFA25D5DACE

@amontoison
Copy link
Member

The error comes from MicrosoftMPI_jll.jl.
I will try to reproduce the error with CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants