Skip to main content

[Compiler 02]: The following error occurs when compiling.

relocation truncated to fit: R_X86_64_32S against `.bss'
additional relocation overflows omitted from the output

This message indicates that the memory that is statically allocated in the program may exceed 2GB. Please specify each one of the following options when compiling.

System A:
[Cray compiler] -h pic -dynamic
[Intelcompiler] -mcmodel=medium -shared-intel -fpic -dynamic
[PGI compiler] -mcmodel=medium -dynamic
[GNU compiler] -mcmodel=medium -fpic -dynamic

System B:
[Intel compiler] -mcmodel=medium -shared-intel
[PGI compiler] -mcmodel=medium
[GNU compiler] -mcmodel=medium

FAQ - SubCategory