Featured post
c++ - Compiling with icc -static issue -
i have been using icc compile program wrote research (nothing impressive lot of floating point calculations) , can compile fine using:
g++ -o3 mixingmodel.cpp configfile.cpp -o mixingmodel
or
icc -o3 -ipo -static mixingmodel.cpp configfile.cpp -o mixingmodel
however, add -static compiler hangs. issue first crept when wanted use -fast , compiler sat there compiling away forever. process running called mcpcom , takes 99% of cpu (so 1 thread) , hardly memory. have let sit there on 30 minutes before (usual compile time without -fast under 1 minutes).
i went ahead , wrote small hello world program in c++ , tried compiling -fast flag , again showed same mo. sat there 99% cpu used , process called mcpcom.
note: compiling on 64bit linux icc version 11.1 20100806
thank you,
patrick
this due icc's inter-procedural optimization. considers object files, can lot when doing static linking. recommend drop -ipo
. apparently, old problem.
- Get link
- X
- Other Apps
Comments
Post a Comment