ORNL-Fusion / aorsa

All ORders Spectral Algorithm (The Original)
MIT License
11 stars 2 forks source link

Cannot compile AORSA #40

Closed AreWeDreaming closed 1 year ago

AreWeDreaming commented 3 years ago

I tried to recompile AORSA, but I get the following error message:

obj/zfun_hilbert_mod.o: in function `zfun_hilbert_mp_zfun_hil_init_':
zfun_hilbert_mod.f90:(.text+0xab4): relocation truncated to fit: R_X86_64_32S against symbol `zfun_hilbert_mp_work_' defined in COMMON section in obj/zfun_hilbert_mod.o
obj/ztable.o: in function `ztable_zfunc_':
ztable.f90:(.text+0x13f): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_imag_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x19d): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_real_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x1a7): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_imag_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x1e1): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_real_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x1eb): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_imag_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x1fa): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_real_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x204): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_imag_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x217): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_real_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x4a0): relocation truncated to fit: R_X86_64_32S against symbol `ztable_mod_mp_zfunc_real_' defined in COMMON section in obj/ztable.o
ztable.f90:(.text+0x4aa): additional relocation overflows omitted from the output
make: *** [makefile:163: xaorsa2d] Error 1

This can be fixed by adding -mcmodel=large to the f90flags in the makefile. Note that I did not change anything else so this must be due to some dependency. Maybe some other linked library is hogging all the memory. If you think that this workaround is acceptable I will push the change and create a pull request.

AreWeDreaming commented 1 year ago

Closing this because I am no longer working with AORSA.