I am using the latest version of CCS for linux (currently it is 5.2.1). When I do headless build following these steps :
http://support.code-red-tech.com/CodeRedWiki/HeadlessBuild
the ccstudio pops a message box to report an error. Like this :
http://www.picvalley.net/u/2753/115853884819529227461348667478WijljHluX9RGt6lsq6Q2.JPG
For successful builds, the box is not popped.
I build like this from a script :
$CCS_ECLIPSE -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild all -data "$WORKSPACE_PATH"
where CCS_ECLIPSE is the ccstudio executable, and WORKSPACE_PATH is the path to the workspace.