Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7700 Discussions

icc18.0.1 -static-intel links libiomp5 dynamically on Linux x86_64

Yakov_Mindelis
Beginner
311 Views

Hi,

"icc18.0.1 -static-intel" links libiomp5 dynamically on Linux x86_64. Work around is to link with explicit path libiomp5.a instead of "-qstatic" linker flag, Unfortunately it breaks the implicitness of our deployment scripts.

Yakov Mindelis

0 Kudos
1 Solution
Olga_M_Intel
Employee
311 Views

Yes, this is intended behavior which has been always described in Intel compiler documentation - https://software.intel.com/en-us/node/682903

But implementation was wrong, so starting 18.0.1 it behaves properly.

So, if you need to statically link libiomp, please use "-qopenmp-link=static".

 

View solution in original post

2 Replies
Olga_M_Intel
Employee
312 Views

Yes, this is intended behavior which has been always described in Intel compiler documentation - https://software.intel.com/en-us/node/682903

But implementation was wrong, so starting 18.0.1 it behaves properly.

So, if you need to statically link libiomp, please use "-qopenmp-link=static".

 

Yakov_Mindelis
Beginner
311 Views

Thanks!

Reply