Skip to content

relocation truncation error when linking 2dx_fftrans.exe #229

@andrew-niaid

Description

@andrew-niaid

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions