x86_64-gentoo-linux-musl-gcc -Iratbag-command@exe -I. -I../libratbag-0.9 -I../libratbag-0.9/src -I/usr/include/libevdev-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu99 -Wno-unused-parameter -fvisibility=hidden -Wmissing-prototypes -Wstrict-prototypes -O2 -march=native -fno-common -falign-functions=32:25:16 -MD -MQ ratbag-command@exe/tools_ratbag-command.c.o -MF ratbag-command@exe/tools_ratbag-command.c.o.d -o ratbag-command@exe/tools_ratbag-command.c.o -c ../libratbag-0.9/tools/ratbag-command.c ../libratbag-0.9/tools/ratbag-command.c: In function ratbag_cmd_button_set_macro: ../libratbag-0.9/tools/ratbag-command.c:1364:17: error: PATH_MAX undeclared (first use in this function) 1364 | char macro_str[PATH_MAX] = {0}; | ^~~~~~~~ ../libratbag-0.9/tools/ratbag-command.c:1364:17: note: each undeclared identifier is reported only once for each function it appears in ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200316-165821 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.0 * clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Wed, 18 Mar 2020 13:38:27 +0000 emerge -qpvO dev-libs/libratbag [ebuild N ] dev-libs/libratbag-0.9 USE="-doc -test"
Created attachment 623128 [details] emerge-info.txt
Created attachment 623130 [details] dev-libs:libratbag-0.9:20200320-055235.log
Created attachment 623132 [details] emerge-history.txt
Created attachment 623134 [details] environment
Created attachment 623136 [details] etc.portage.tbz2
Created attachment 623138 [details] temp.tbz2
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.