http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59626
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to David Kredba from comment #10) > There is preprocessed source in closed as duplicate of this error: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56088. > > I will attach one from program cp. The duplicate preprocessed source has correct wrappers: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt, __gnuc_va_list __ap) throw () __asm__ ("" "vswprintf") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) int __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt, __gnuc_va_list __ap) throw () { if (__builtin_object_size (__s, 1 > 1) != (size_t) -1 || 1 > 1) return __vswprintf_chk (__s, __n, 1 - 1, __builtin_object_size (__s, 1 > 1) / sizeof (wchar_t), __fmt, __ap); return __vswprintf_alias (__s, __n, __fmt, __ap); } and it works for me.