Building Error: relocation truncated to fit: R_X86_64_32S against symbol 'XXX'
2011-08-25 15:33
651 查看
This error denotes mixing of small and medium memory model object files. Even if Pleides had more memory per node it would still appear. The solution is either:
a) Stick to less than 2GB of RAM per process and make sure that you are only using small memory model object code (no -mcmodel=medium flags for compiling and no libraries created with that flag).
b) If you plan to use more than 2GB of RAM per process compile everything with -mcmodel=medium and make sure all libraries have also been compiled with -mcmodel=medium or -fPIC.
c) Or compile everything with -fPIC and make sure you are not linking any static libraries compiled without -fPIC.
源地址:http://mitgcm.org/pipermail/mitgcm-support/2010-January/006441.html
a) Stick to less than 2GB of RAM per process and make sure that you are only using small memory model object code (no -mcmodel=medium flags for compiling and no libraries created with that flag).
b) If you plan to use more than 2GB of RAM per process compile everything with -mcmodel=medium and make sure all libraries have also been compiled with -mcmodel=medium or -fPIC.
c) Or compile everything with -fPIC and make sure you are not linking any static libraries compiled without -fPIC.
源地址:http://mitgcm.org/pipermail/mitgcm-support/2010-January/006441.html
相关文章推荐
- relocation truncated to fit: R_X86_64_PC32 against symbolXXX
- GCC 编译错误 relocation truncated to fit: R_X86_64_32S against `.bss'
- relocation truncated to fit: R_X86_64_32
- relocation truncated to fit: R_X86_64_PC32错误排除
- GCC 编译错误 relocation truncated to fit: R_X86_64_32S against `.bss'
- GCC 编译错误 relocation truncated to fit: R_X86_64_32S against `.bss'
- relocation truncated to fit: R_X86_64_PC32
- GCC 编译错误 relocation truncated to fit: R_X86_64_32S against `.bss'
- Linking fails : relocation truncated to fit: R_X86_程序占用内存大于2GB所导致的问题
- Linking fails : relocation truncated to fit: R_X86_程序占用内存大于2GB所导致的问题
- ORA-27125: unable to create shared memory segment Linux-x86_64 Error: 1: Operation not per
- 编译u-boot:_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
- Link error: relocation truncated to fit: R_MIPS_GPREL16 time
- ORA-15025: could not open disk"...." ORA-27041: unable to open file Linux-x86_64 Error: 13: Permiss
- 编译u-boot:_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
- error: relocation R_X86_64_32S against `vtable for hit' can not be used when making a shared object
- duplicate symbol _xxx in:ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command
- ORA-27125: unable to create shared memory segment Linux-x86_64 Error: 1: Operation not permitted
- bl跳转指令使用错误导致编译出现错误--relocation truncated to fit: R_ARM_PC24 init_irq
- relocation truncated to fit: R_MIPS_CALL16 问题!