* Package: sys-libs/libhugetlbfs-2.22 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Using python3.7 to build >>> Unpacking source... >>> Unpacking libhugetlbfs-2.22.tar.gz to /var/tmp/portage/sys-libs/libhugetlbfs-2.22/work >>> Source unpacked in /var/tmp/portage/sys-libs/libhugetlbfs-2.22/work >>> Preparing source in /var/tmp/portage/sys-libs/libhugetlbfs-2.22/work/libhugetlbfs-2.22 ... * Applying libhugetlbfs-2.6-fixup-testsuite.patch ... patching file tests/run_tests.py Hunk #1 succeeded at 72 with fuzz 2 (offset 16 lines). Hunk #2 succeeded at 668 with fuzz 2 (offset 140 lines). [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-libs/libhugetlbfs-2.22/work/libhugetlbfs-2.22 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-libs/libhugetlbfs-2.22/work/libhugetlbfs-2.22 ... make -j1 CC=x86_64-gentoo-linux-musl-gcc libs tools ./localversion version ./libhugetlbfs_testprobes.h ./libhugetlbfs_privutils.h ./libhugetlbfs_internal.h ./libhugetlbfs_debug.h ./kernel-features.h ./hugetlbfs.h *.c *.lds Makefile version string: 2.22 x86_64-gentoo-linux-musl-gcc -D__LIBHUGETLBFS__ -O2 -pipe -march=native -Wall -fPIC -o obj64/elflink.o -c elflink.c x86_64-gentoo-linux-musl-gcc -D__LIBHUGETLBFS__ -o obj64/sys-elf_x86_64.o -c sys-elf_x86_64.S x86_64-gentoo-linux-musl-gcc -D__LIBHUGETLBFS__ -O2 -pipe -march=native -Wall -fPIC -o obj64/hugeutils.o -c hugeutils.c x86_64-gentoo-linux-musl-gcc -D__LIBHUGETLBFS__ -O2 -pipe -march=native -Wall -fPIC -o obj64/version.o -c version.c version.c:3:19: warning: ‘libhugetlbfs_version’ defined but not used [-Wunused-const-variable=] 3 | static const char libhugetlbfs_version[] = "VERSION: "VERSION; | ^~~~~~~~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -D__LIBHUGETLBFS__ -O2 -pipe -march=native -Wall -fPIC -o obj64/init.o -c init.c x86_64-gentoo-linux-musl-gcc -D__LIBHUGETLBFS__ -O2 -pipe -march=native -Wall -fPIC -o obj64/morecore.o -c morecore.c morecore.c:69:33: error: unknown type name ‘ptrdiff_t’ 69 | static void *hugetlbfs_morecore(ptrdiff_t increment) | ^~~~~~~~~ morecore.c:35:1: note: ‘ptrdiff_t’ is defined in header ‘’; did you forget to ‘#include ’? 34 | #include "libhugetlbfs_internal.h" +++ |+#include 35 | morecore.c:222:27: error: unknown type name ‘ptrdiff_t’ 222 | static void *thp_morecore(ptrdiff_t increment) | ^~~~~~~~~ morecore.c:222:27: note: ‘ptrdiff_t’ is defined in header ‘’; did you forget to ‘#include ’? morecore.c: In function ‘__lh_hugetlbfs_setup_morecore’: morecore.c:368:3: error: ‘__morecore’ undeclared (first use in this function) 368 | __morecore = &thp_morecore; | ^~~~~~~~~~ morecore.c:368:3: note: each undeclared identifier is reported only once for each function it appears in morecore.c:368:17: error: ‘thp_morecore’ undeclared (first use in this function) 368 | __morecore = &thp_morecore; | ^~~~~~~~~~~~ morecore.c:370:17: error: ‘hugetlbfs_morecore’ undeclared (first use in this function); did you mean ‘hugetlbfs_setup_morecore’? 370 | __morecore = &hugetlbfs_morecore; | ^~~~~~~~~~~~~~~~~~ | hugetlbfs_setup_morecore morecore.c:375:3: warning: implicit declaration of function ‘mallopt’; did you mean ‘malloc’? [-Wimplicit-function-declaration] 375 | mallopt(M_TRIM_THRESHOLD, hpage_size + hpage_size / 2); | ^~~~~~~ | malloc morecore.c:375:11: error: ‘M_TRIM_THRESHOLD’ undeclared (first use in this function) 375 | mallopt(M_TRIM_THRESHOLD, hpage_size + hpage_size / 2); | ^~~~~~~~~~~~~~~~ morecore.c:378:10: error: ‘M_TOP_PAD’ undeclared (first use in this function) 378 | mallopt(M_TOP_PAD, hpage_size / 2); | ^~~~~~~~~ morecore.c:382:10: error: ‘M_MMAP_MAX’ undeclared (first use in this function); did you mean ‘TMP_MAX’? 382 | mallopt(M_MMAP_MAX, 0); | ^~~~~~~~~~ | TMP_MAX At top level: morecore.c:40:13: warning: ‘mapsize’ defined but not used [-Wunused-variable] 40 | static long mapsize; | ^~~~~~~ make: *** [Makefile:289: obj64/morecore.o] Error 1 * ERROR: sys-libs/libhugetlbfs-2.22::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-libs/libhugetlbfs-2.22::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libhugetlbfs-2.22::gentoo'`. * The complete build log is located at '/var/log/portage/sys-libs:libhugetlbfs-2.22:20200331-130044.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/libhugetlbfs-2.22/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libhugetlbfs-2.22/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libhugetlbfs-2.22/work/libhugetlbfs-2.22' * S: '/var/tmp/portage/sys-libs/libhugetlbfs-2.22/work/libhugetlbfs-2.22'