Do not use -Werror, because the configure script incorrectly identifies clang as gcc and uses warning flags clang does not understand. https://sourceforge.net/p/autogen/bugs/185/ https://sourceforge.net/p/autogen/bugs/186/ --- configure.orig 2018-08-26 12:44:54.000000000 -0500 +++ configure 2018-09-16 06:44:23.000000000 -0500 @@ -18924,7 +18924,7 @@ WARN_CFLAGS= test "X${GCC}" = Xyes && { CFLAGS="$CFLAGS -Wno-format-contains-nul -fno-strict-aliasing" - WARN_CFLAGS="$CFLAGS "`echo -Wall -Werror -Wcast-align -Wmissing-prototypes \ + WARN_CFLAGS="$CFLAGS "`echo -Wall -Wcast-align -Wmissing-prototypes \ -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ -Wstrict-aliasing=3 -Wextra -Wno-cast-qual` }