Program Build Fails with Debugging Enabled

Discussion created by aj_guillon on Jun 2, 2010
Latest reply on Jun 4, 2010 by omkaranathan

I am attempting to debug a kernel on the CPU with gdb.  I appended -g to the build options, and clc runs for a much longer period of time than normal.  Finally, clBuildProgram returns -11 (buiild failure), and checking the value of CL_PROGRAM_BUILD_STATUS I get -2 (build error).  The program does compile normally without the -g option.

I'm running on Linux, Ubuntu 10.04.  Any ideas?