Hello! I tried to install the UIM package from the AUR using yay, and it returns a build() failed with this error https://pastebin.com/apX8E8Dt , I tried copying the github repr and doing makepkg, but that didn’t work either and it returned the same error. What should i do?
bsd-snprintf.c: In function 'dopr':
bsd-snprintf.c:104:38: error: assignment to expression with array type
104 | # define VA_COPY(dest, src) (dest) = (src)
| ^
bsd-snprintf.c:186:9: note: in expansion of macro 'VA_COPY'
186 | VA_COPY(args, args_in);
| ^~~~~~~
make[1]: *** [Makefile:601: bsd-snprintf.lo] Error 1
Copy/pasted from the AUR comment from 12 May this year.
bsd-snprintf.c: In function 'dopr':
bsd-snprintf.c:104:38: error: assignment to expression with array type
104 | # define VA_COPY(dest, src) (dest) = (src)
| ^
bsd-snprintf.c:186:9: note: in expansion of macro 'VA_COPY'
186 | VA_COPY(args, args_in);
| ^~~~~~~
make[1]: *** [Makefile:601: bsd-snprintf.lo] Error 1
Advice given by phenylshima in the AUR comment regarding this VA_COPY error.
The root cause of VA_COPY error looks like uim’s “broken snprintf” checking, which mistakes gcc 14.x’s implicit function warning as “broken snprintf”. This issue seems to have been fixed in uim#187, but the fix is not released yet. https://github.com/uim/uim/pull/187
In my environment, downgrading gcc to 13.x fixed the problem. Alternatively, passing CFLAGS="-Wno-implicit-function-declaration" to ./configure also seems to fix the issue.