Community
cancel
Showing results for 
Search instead for 
Did you mean: 
John_G_8
Beginner
77 Views

icpc 16.02 compiler bug -trackback and -O0 incompatiblity

I discovered this bug on Mac OSX 10.11.3. It may or may not also occur for the Linux version. I have a C++ program that will not compile when using both -trackback and -O0. The failure message is

": internal error: 04020005_2237

compilation aborted for Cmd.cc (code 4)

The attached tar file contains an extraction for the code that was exhibiting this problem. I hope you can reproduce the problem on a mac pro running 10.11.3. The procedure is a follows

icpc -c Cmd.cc

normal compile

icpc -c -traceback Cmd.cc

normal compile

icpc -c -O0  Cmd.cc

normal compile

icpc -c -traceback -O0 Cmd.cc
": internal error: 04020005_2237

compilation aborted for Cmd.cc (code 4)

By my understanding -O0 means no optimization, but apparently something is being done to make the compile fail. At the least it should return an understandable error message, not internal error.

 

0 Kudos
2 Replies
Yuan_C_Intel
Employee
77 Views

Hi, John I have reproduce the error you reported. Thank you for raising the issue with a reproducible test case. I am entering this in our problem tracking system. We will try to resolve this issue as soon as we can. However, please be advised that this issue may have to be targeted to for the next major release. I will let you know when I have an update on this issue. Thanks.
John_G_8
Beginner
77 Views

I am glad you can reproduce the bug. The obvious workaround is to not use -O0 (or probably any -O option) when asking for a traceback. That will do for now.

Reply