I think you'll need to figure out exactly where the compiler is creating this error message. Also, how do we interpret the message? The way I read it, it says:
In the file "trace_clock", the term "/work/xxxxxxxxx_my_work_directory_xxxxx" is not defined
Indepentent of this question, can you search all the relevant files and find that string?
Finally, are you using a standard set of kernel headers---or has something been customized?