The package does not build with recent compilers, since GCC has learned the -Wfree-nonheap-object warning. The software is doing some really bogus-looking pointer arithmetic right before free()ing the pointer; however, this only undoes even more bogus pointer arithmetic from before, so this should actually be fine.
Adding
CFLAGS='-Wno-error=free-nonheap-object' CXXFLAGS='-Wno-error=free-nonheap-object'
to the ./configure call in the PKGBUILD fixes compilation.
Pinned Comments
AlphaJack commented on 2024-02-28 13:24 (UTC) (edited on 2024-02-28 13:25 (UTC) by AlphaJack)
The author of
mimic
recommends its successor,piper
:https://aur.archlinux.org/packages/piper-tts-bin