We have a C codebase which used to build successfully with SunStudio 12.1 and Solaris 11.3 but recently we have upgraded our OS to Solaris 11.4 and build starts to break with either of below errors.
"<FILE_NAME>", line <LINE_NUMBER>: internal compiler error: cg_inbuf_emit(): messed up relocation cc: acomp failed for <FILE_NAME> *** Error code 2
Or
"<FILE_NAME>", line <LINE_NUMBER>: internal compiler error: cg_inbuf_emit(): missed relocation cc: acomp failed for <FILE_NAME> *** Error code 2
On inspection I observed that these lines are nothing but ending of either Macro definitons or symbols both which are referenced from other user defined libraries.
Those indicate problems in the compiler that you will need to open a support request with Oracle to have them resolve.