Probably the issue is that your system code page is set to 950 (Traditional Chinese) and c:\S4R\LibArchive\libarchive\archive_read_support_format_rar5.c contains characters that cannot be interpreted in this code page.
The simplest is to remove the offending characters (remove entire line 74, it is just a comment):
* "Rar!→•☺·\x00"
If you will keep running into similar errors then you may consider switching to Latin1 code page for the build.