error when building with clang:
[63/89] Compiling C object foot.p/main.c.o
FAILED: foot.p/main.c.o
clang -Ifoot.p -I. -I.. -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -flto -fdiagnostics-color=always -fprofile-use -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c11 -O3 -DMEMFD_CREATE -D_GNU_SOURCE=200809L '-DFOOT_DEFAULT_TERM="foot"' '-DUTMP_ADD="add"' '-DUTMP_DEL="del"' '-DUTMP_DEFAULT_HELPER_PATH="/usr/lib/utempter/utempter"' -DUTMP_DEL_HAVE_ARGUMENT=1 -fno-asynchronous-unwind-tables -DFOOT_IME_ENABLED=1 -DFOOT_PGO_ENABLED=1 -pedantic -fstrict-aliasing -Wstrict-aliasing -fmacro-prefix-map=../= -DFOOT_GRAPHEME_CLUSTERING=1 -march=native -mtune=native -O3 -fexceptions -fopenmp -fno-math-errno -fno-trapping-math -fcf-protection=none -mharden-sls=none -Wp,-D_FORTIFY_SOURCE=1 -Wformat -Werror=format-security -fstack-clash-protection -ffile-prefix-map=/home/samson/.cache/paru/clone/foot-git/src=/usr/src/debug/foot-git -O3 -Wno-ignored-optimization-argument -pthread -DUTF8PROC_EXPORTS -MD -MQ foot.p/main.c.o -MF foot.p/main.c.o.d -o foot.p/main.c.o -c ../main.c
error: ../main.c: function control flow change detected (hash mismatch) main Hash = 820583352444322486 up to 484 count discarded [-Werror,-Wbackend-plugin]
1 error generated.
[68/89] Compiling C object foot.p/config.c.o
FAILED: foot.p/config.c.o
clang -Ifoot.p -I. -I.. -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -flto -fdiagnostics-color=always -fprofile-use -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c11 -O3 -DMEMFD_CREATE -D_GNU_SOURCE=200809L '-DFOOT_DEFAULT_TERM="foot"' '-DUTMP_ADD="add"' '-DUTMP_DEL="del"' '-DUTMP_DEFAULT_HELPER_PATH="/usr/lib/utempter/utempter"' -DUTMP_DEL_HAVE_ARGUMENT=1 -fno-asynchronous-unwind-tables -DFOOT_IME_ENABLED=1 -DFOOT_PGO_ENABLED=1 -pedantic -fstrict-aliasing -Wstrict-aliasing -fmacro-prefix-map=../= -DFOOT_GRAPHEME_CLUSTERING=1 -march=native -mtune=native -O3 -fexceptions -fopenmp -fno-math-errno -fno-trapping-math -fcf-protection=none -mharden-sls=none -Wp,-D_FORTIFY_SOURCE=1 -Wformat -Werror=format-security -fstack-clash-protection -ffile-prefix-map=/home/samson/.cache/paru/clone/foot-git/src=/usr/src/debug/foot-git -O3 -Wno-ignored-optimization-argument -pthread -DUTF8PROC_EXPORTS -MD -MQ foot.p/config.c.o -MF foot.p/config.c.o.d -o foot.p/config.c.o -c ../config.c
error: ../config.c: function control flow change detected (hash mismatch) config_load Hash = 473814507700788785 up to 87 count discarded [-Werror,-Wbackend-plugin]
error: ../config.c: function control flow change detected (hash mismatch) config_override_apply Hash = 1035436356859922695 up to 5 count discarded [-Werror,-Wbackend-plugin]
error: ../config.c: function control flow change detected (hash mismatch) config_free Hash = 1094249772159538821 up to 9081 count discarded [-Werror,-Wbackend-plugin]
3 errors generated.
[70/89] Compiling C object foot.p/render.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments
danekl commented on 2021-11-07 09:18 (UTC)
The foot and foot-terminfo packages have been updated:
In other words, foot will default to the terminfo provided by ncurses. You can optionally install foot-terminfo, and set "term=foot-extra" in foot.ini to use foot's terminfo instead, which has a couple of non-standard capabilities (mainly targeting tmux).