As discussed on Discord
RetroArch needs to be configured with --disable-caca. Another option to disable would be CG: --disable-cg it is used for shaders, but RetroArch comes with better shader engines IE Slang and GLSL both which is more modern than CG