* Package: dev-libs/libratbag-0.9 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking libratbag-0.9.tar.gz to /var/tmp/portage/dev-libs/libratbag-0.9/work >>> Source unpacked in /var/tmp/portage/dev-libs/libratbag-0.9/work >>> Preparing source in /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9 ... /var/tmp/portage/dev-libs/libratbag-0.9/temp/environment: line 1576: type: locale: not found meson --buildtype plain --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload -Denable-documentation=false -Denable-tests=false -Dudev-dir=/lib/udev /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9 /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9-build The Meson build system Version: 0.53.1 Source dir: /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9 Build dir: /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9-build Build type: native build Project name: libratbag Project version: 0.9.0 Appending CFLAGS from environment: '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' Appending LDFLAGS from environment: ['-Wl,-O1', '-Wl,--as-needed'] Appending CXXFLAGS from environment: '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' Appending LDFLAGS from environment: ['-Wl,-O1', '-Wl,--as-needed'] Appending CFLAGS from environment: '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' Appending LDFLAGS from environment: ['-Wl,-O1', '-Wl,--as-needed'] C compiler for the host machine: x86_64-gentoo-linux-musl-gcc (gcc 9.3.0 "x86_64-gentoo-linux-musl-gcc (Gentoo 9.3.0 p1) 9.3.0") C linker for the host machine: x86_64-gentoo-linux-musl-gcc GNU ld.bfd 2.34 Appending CXXFLAGS from environment: '-O2 -pipe -march=native -fno-common -falign-functions=32:25:16' Appending LDFLAGS from environment: ['-Wl,-O1', '-Wl,--as-needed'] C++ compiler for the host machine: x86_64-gentoo-linux-musl-g++ (gcc 9.3.0 "x86_64-gentoo-linux-musl-g++ (Gentoo 9.3.0 p1) 9.3.0") C++ linker for the host machine: x86_64-gentoo-linux-musl-g++ GNU ld.bfd 2.34 Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: /usr/bin/x86_64-gentoo-linux-musl-pkg-config (0.29.2) Run-time dependency libudev found: YES 243 Run-time dependency libevdev found: YES 1.9.0 Library m found: YES Configuring libratbag-version.h using configuration Configuring libratbag.pc using configuration Configuring ratbag-command.1 using configuration Configuring lur-command.1 using configuration Program test/symbols-leak-test found: YES (/var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9/test/symbols-leak-test) Configuring config.h using configuration Build targets in project: 9 Found ninja-1.9.0.git.kitware.dyndep-1.jobserver-1 at /usr/bin/ninja Generating targets: 0%| | 0/9 [00:00>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9 ... ninja -v -j1 -l0 -C /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9-build ninja: Entering directory `/var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9-build' [1/31] x86_64-gentoo-linux-musl-gcc -Ihidpp@sta -I. -I../libratbag-0.9 -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 -fPIC -MD -MQ 'hidpp@sta/src_hidpp10.c.o' -MF 'hidpp@sta/src_hidpp10.c.o.d' -o 'hidpp@sta/src_hidpp10.c.o' -c ../libratbag-0.9/src/hidpp10.c ../libratbag-0.9/src/hidpp10.c: In function ‘hidpp10_profile_parse_names’: ../libratbag-0.9/src/hidpp10.c:1371:23: warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1371 | metadata->lgs02.name, | ~~~~~~~~~~~~~~~^~~~~ ../libratbag-0.9/src/hidpp10.c:1376:36: warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1376 | metadata->lgs02.macro_names[i], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../libratbag-0.9/src/hidpp10.c: In function ‘hidpp10_profile_set_names’: ../libratbag-0.9/src/hidpp10.c:1398:43: warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1398 | hidpp10_uchar8_to_uchar16(metadata->lgs02.name, | ~~~~~~~~~~~~~~~^~~~~ ../libratbag-0.9/src/hidpp10.c:1402:56: warning: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Waddress-of-packed-member] 1402 | hidpp10_uchar8_to_uchar16(metadata->lgs02.macro_names[i], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [2/31] x86_64-gentoo-linux-musl-gcc -Ihidpp@sta -I. -I../libratbag-0.9 -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 -fPIC -MD -MQ 'hidpp@sta/src_hidpp20.c.o' -MF 'hidpp@sta/src_hidpp20.c.o.d' -o 'hidpp@sta/src_hidpp20.c.o' -c ../libratbag-0.9/src/hidpp20.c [3/31] x86_64-gentoo-linux-musl-gcc -Ilur@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'lur@sha/src_liblur.c.o' -MF 'lur@sha/src_liblur.c.o.d' -o 'lur@sha/src_liblur.c.o' -c ../libratbag-0.9/src/liblur.c [4/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-etekcity.c.o' -MF 'ratbag@sha/src_driver-etekcity.c.o.d' -o 'ratbag@sha/src_driver-etekcity.c.o' -c ../libratbag-0.9/src/driver-etekcity.c [5/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-hidpp20.c.o' -MF 'ratbag@sha/src_driver-hidpp20.c.o.d' -o 'ratbag@sha/src_driver-hidpp20.c.o' -c ../libratbag-0.9/src/driver-hidpp20.c [6/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-hidpp10.c.o' -MF 'ratbag@sha/src_driver-hidpp10.c.o.d' -o 'ratbag@sha/src_driver-hidpp10.c.o' -c ../libratbag-0.9/src/driver-hidpp10.c [7/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-logitech-g300.c.o' -MF 'ratbag@sha/src_driver-logitech-g300.c.o.d' -o 'ratbag@sha/src_driver-logitech-g300.c.o' -c ../libratbag-0.9/src/driver-logitech-g300.c [8/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-roccat.c.o' -MF 'ratbag@sha/src_driver-roccat.c.o.d' -o 'ratbag@sha/src_driver-roccat.c.o' -c ../libratbag-0.9/src/driver-roccat.c [9/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-gskill.c.o' -MF 'ratbag@sha/src_driver-gskill.c.o.d' -o 'ratbag@sha/src_driver-gskill.c.o' -c ../libratbag-0.9/src/driver-gskill.c [10/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_driver-test.c.o' -MF 'ratbag@sha/src_driver-test.c.o.d' -o 'ratbag@sha/src_driver-test.c.o' -c ../libratbag-0.9/src/driver-test.c [11/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_libratbag.c.o' -MF 'ratbag@sha/src_libratbag.c.o.d' -o 'ratbag@sha/src_libratbag.c.o' -c ../libratbag-0.9/src/libratbag.c [12/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_libratbag-hidraw.c.o' -MF 'ratbag@sha/src_libratbag-hidraw.c.o.d' -o 'ratbag@sha/src_libratbag-hidraw.c.o' -c ../libratbag-0.9/src/libratbag-hidraw.c [13/31] x86_64-gentoo-linux-musl-gcc -Iratbag@sha -I. -I../libratbag-0.9 -I../libratbag-0.9/ -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 -fPIC -MD -MQ 'ratbag@sha/src_libratbag-test.c.o' -MF 'ratbag@sha/src_libratbag-test.c.o.d' -o 'ratbag@sha/src_libratbag-test.c.o' -c ../libratbag-0.9/src/libratbag-test.c [14/31] x86_64-gentoo-linux-musl-gcc -Ishared@sta -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 -fPIC -MD -MQ 'shared@sta/tools_shared.c.o' -MF 'shared@sta/tools_shared.c.o.d' -o 'shared@sta/tools_shared.c.o' -c ../libratbag-0.9/tools/shared.c [15/31] rm -f libshared.a && x86_64-gentoo-linux-musl-ar csrD libshared.a 'shared@sta/tools_shared.c.o' [16/31] 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 FAILED: ratbag-command@exe/tools_ratbag-command.c.o 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 ninja: build stopped: subcommand failed. * ERROR: dev-libs/libratbag-0.9::gentoo failed (compile phase): * ninja -v -j1 -l0 -C /var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9-build failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 2026: Called meson_src_compile * environment, line 1147: Called eninja '-C' '/var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9-build' * environment, line 730: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" * * If you need support, post the output of `emerge --info '=dev-libs/libratbag-0.9::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/libratbag-0.9::gentoo'`. * The complete build log is located at '/var/log/portage/dev-libs:libratbag-0.9:20200320-055235.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libratbag-0.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libratbag-0.9/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9' * S: '/var/tmp/portage/dev-libs/libratbag-0.9/work/libratbag-0.9'