You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when building focus on Linux (CentOS 7.5).
[ 52%] Linking Fortran executable 2dx_fftrans.exe
CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o: In function `MAIN__':
2dx_fftrans.for:(.text+0x10c): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x112): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x1b6): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x1bc): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x1cd): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x3e0): relocation truncated to fit: R_X86_64_32S against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x42d): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x54d): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x6a1): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x742): relocation truncated to fit: R_X86_64_PC32 against symbol `__BLNK__' defined in COMMON section in CMakeFiles/2dx_fftrans.dir/2dx_fftrans.for.o
2dx_fftrans.for:(.text+0x774): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
kernel/mrc/source/CMakeFiles/2dx_fftrans.dir/build.make:94: recipe for target 'kernel/mrc/source/2dx_fftrans.exe' failed
make[2]: *** [kernel/mrc/source/2dx_fftrans.exe] Error 1
CMakeFiles/Makefile2:4932: recipe for target 'kernel/mrc/source/CMakeFiles/2dx_fftrans.dir/all' failed
make[1]: *** [kernel/mrc/source/CMakeFiles/2dx_fftrans.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Build failed for Focus
I'm linking against fftw 3.3.3 provided with the distro (not sure if it's relevant here).
I've tried gcc/gfortran versions 4.8.5 and 6.3.1 and get the same result.
The text was updated successfully, but these errors were encountered:
That error means that a 32-bit compiler was asked to allocate memory larger than the 32-bit addressing can reach.
I now reduced the block dimensions in 2dx_fftrans.for. Please try again if this works now better.
Thanks.
Interesting. Since I don't have a 32bit compiler anywhere on the system, I did some more digging. It appears we are bumping into a memory model issue. The default gcc/gfortran option of -mcmodel=small is generating this error.
I get the following error when building focus on Linux (CentOS 7.5).
I'm linking against fftw 3.3.3 provided with the distro (not sure if it's relevant here).
I've tried gcc/gfortran versions 4.8.5 and 6.3.1 and get the same result.
The text was updated successfully, but these errors were encountered: