Building Error: relocation truncated to fit: R_X86_64_32S against symbol 'XXX'

来源:互联网 发布:mac电脑显示器分辨率 编辑:程序博客网 时间:2024/05/21 17:11

 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

 

原创粉丝点击