FTBFS with errors similar to the one below (full makepkg --cleanbuild
output)
FAILED: c/sfntdiff/source/CMakeFiles/sfntdiff.dir/Dopt.c.o
/usr/bin/clang -DANTLR4CPP_STATIC -I/usr/include/libxml2 -I/home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/../../spot/sfnt_includes -I/home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/../../shared/include -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/koyomi/.cache/paru/clone/afdko/src=/usr/src/debug/afdko -flto=auto -O3 -DNDEBUG -MD -MT c/sfntdiff/source/CMakeFiles/sfntdiff.dir/Dopt.c.o -MF c/sfntdiff/source/CMakeFiles/sfntdiff.dir/Dopt.c.o.d -o c/sfntdiff/source/CMakeFiles/sfntdiff.dir/Dopt.c.o -c /home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/Dopt.c
/home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/Dopt.c:16:12: error: expected parameter declarator
16 | extern int fprintf(FILE *stream, const char *format, ...);
| ^
/usr/include/bits/stdio2.h:92:26: note: expanded from macro 'fprintf'
92 | __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
| ^
/usr/include/features.h:423:31: note: expanded from macro '__USE_FORTIFY_LEVEL'
423 | # define __USE_FORTIFY_LEVEL 3
| ^
/home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/Dopt.c:16:12: error: expected ')'
/usr/include/bits/stdio2.h:92:26: note: expanded from macro 'fprintf'
92 | __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
| ^
/usr/include/features.h:423:31: note: expanded from macro '__USE_FORTIFY_LEVEL'
423 | # define __USE_FORTIFY_LEVEL 3
| ^
/home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/Dopt.c:16:12: note: to match this '('
/usr/include/bits/stdio2.h:92:17: note: expanded from macro 'fprintf'
92 | __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
| ^
/home/koyomi/.cache/paru/clone/afdko/src/afdko-4.0.1/c/sfntdiff/source/Dopt.c:16:12: error: conflicting types for '__fprintf_chk'
16 | extern int fprintf(FILE *stream, const char *format, ...);
| ^
/usr/include/bits/stdio2.h:92:3: note: expanded from macro 'fprintf'
92 | __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
| ^
/usr/include/bits/stdio2-decl.h:49:12: note: previous declaration is here
49 | extern int __fprintf_chk (FILE *__restrict __stream, int __flag,
| ^
3 errors generated.
This seems to be due to CC=clang CXX=clang++
environment variables. The package builds with gcc. If the package requires a specific compiler the PKGBUILD
should set CC, CXX
to ensure that compiler is used.
Pinned Comments
alerque commented on 2020-03-04 09:16 (UTC)
PSA: I've started hosting this and all its dependencies as prebuilt packages in my repository for those that want to install them using
pacman
without messing around with building from the AUR.