* Package: app-misc/cdargs-2.1:0 * Repository: gentoo * Maintainer: shell-tools@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking cdargs-2.1.tar.gz to /var/tmp/portage/app-misc/cdargs-2.1/work >>> Source unpacked in /var/tmp/portage/app-misc/cdargs-2.1/work >>> Preparing source in /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1 ... * Applying cdargs-1.35-format_security.patch ... [ ok ] * Applying cdargs-1.35-tinfo.patch ... [ ok ] * Applying cdargs-2.1-musl.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1 ... meson setup --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/app-misc/cdargs-2.1/temp/meson.x86_64-gentoo-linux-musl.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1 /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1-build The Meson build system Version: 1.3.0 Source dir: /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1 Build dir: /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1-build Build type: native build Project name: cdargs Project version: 2.1 C++ compiler for the host machine: x86_64-gentoo-linux-musl-g++ (gcc 13.2.1 "x86_64-gentoo-linux-musl-g++ (Gentoo 13.2.1_p20231014 p10) 13.2.1 20231014") C++ linker for the host machine: x86_64-gentoo-linux-musl-g++ ld.bfd 2.41 Host machine cpu family: x86_64 Host machine cpu: x86_64 Configuring config.h using configuration Found pkg-config: YES (/usr/bin/x86_64-gentoo-linux-musl-pkg-config) 2.1.0 Run-time dependency ncurses found: YES 6.4.20230401 Build targets in project: 1 cdargs 2.1 User defined options Native files : /var/tmp/portage/app-misc/cdargs-2.1/temp/meson.x86_64-gentoo-linux-musl.amd64.ini build.pkg_config_path: /usr/share/pkgconfig buildtype : plain libdir : lib localstatedir : /var/lib pkg_config_path : /usr/share/pkgconfig prefix : /usr sysconfdir : /etc werror : false wrap_mode : nodownload b_pch : false Found ninja-1.11.1 at /usr/bin/ninja >>> Source configured. >>> Compiling source in /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1 ... meson compile -C /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1-build --jobs 4 --load-average 0 --verbose INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1-build -j 4 -v ninja: Entering directory `/var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1-build' [1/2] x86_64-gentoo-linux-musl-g++ -Icdargs.p -I. -I../cdargs-2.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -O3 -pipe -march=native -fno-diagnostics-color -D_POSIX_C_SOURCE=199506L -MD -MQ cdargs.p/src_cdargs.cpp.o -MF cdargs.p/src_cdargs.cpp.o.d -o cdargs.p/src_cdargs.cpp.o -c ../cdargs-2.1/src/cdargs.cpp FAILED: cdargs.p/src_cdargs.cpp.o x86_64-gentoo-linux-musl-g++ -Icdargs.p -I. -I../cdargs-2.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -O3 -pipe -march=native -fno-diagnostics-color -D_POSIX_C_SOURCE=199506L -MD -MQ cdargs.p/src_cdargs.cpp.o -MF cdargs.p/src_cdargs.cpp.o.d -o cdargs.p/src_cdargs.cpp.o -c ../cdargs-2.1/src/cdargs.cpp ../cdargs-2.1/src/cdargs.cpp: In function 'std::string {anonymous}::getCwd()': ../cdargs-2.1/src/cdargs.cpp:80:18: error: 'PATH_MAX' was not declared in this scope 80 | char buf[PATH_MAX]; | ^~~~~~~~ ../cdargs-2.1/src/cdargs.cpp:81:35: error: 'buf' was not declared in this scope 81 | const char *result(getcwd(buf, sizeof(buf))); | ^~~ ninja: build stopped: subcommand failed. * ERROR: app-misc/cdargs-2.1::gentoo failed (compile phase): * compile failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 2686: Called meson_src_compile * environment, line 2021: Called die * The specific snippet of code: * "$@" || die "compile failed" * * If you need support, post the output of `emerge --info '=app-misc/cdargs-2.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-misc/cdargs-2.1::gentoo'`. * The complete build log is located at '/var/log/portage/app-misc:cdargs-2.1:20231215-090942.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-misc/cdargs-2.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-misc/cdargs-2.1/temp/environment'. * Working directory: '/var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1' * S: '/var/tmp/portage/app-misc/cdargs-2.1/work/cdargs-2.1'