Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

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

Yakov_Mindelis
Beginner
729 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
729 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

0 Kudos
2 Replies
Olga_M_Intel
Employee
730 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".

 

0 Kudos
Yakov_Mindelis
Beginner
729 Views

Thanks!

0 Kudos
Reply