Article

don't use -fpic and -mcmodel together with version 10 compiler

Version 10 of the Intel compiler for Intel 64 Linux does not support the use of both -fpic and -mcmodel medium (or -mcmodel large) on the same command line.
Authored by admin Last updated on 06/01/2017 - 11:34
Article

Avoiding Relocation Errors when Building Applications with Large Global or Static Data on Intel64 Linux

Applications with >2GB of static or global data should be built with –mcmodel=medium –shared-intel on Intel64 Linux*. If linked with static libraries, these should also be built with –mcmodel=medium. Else, "relocation truncated to fit" errors may occur.
Authored by Martyn Corden (Intel) Last updated on 06/07/2017 - 10:10
For more complete information about compiler optimizations, see our Optimization Notice.