* Package: sys-libs/libhugetlbfs-2.20  * Repository: gentoo  * Maintainer: base-system@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux perl test userland_GNU  * FEATURES: preserve-libs sandbox test usersandbox >>> Unpacking source... >>> Unpacking libhugetlbfs-2.20.tar.gz to /var/tmp/portage/sys-libs/libhugetlbfs-2.20/work >>> Source unpacked in /var/tmp/portage/sys-libs/libhugetlbfs-2.20/work >>> Preparing source in /var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20 ... * Applying libhugetlbfs-2.9-build.patch ...  [ ok ] * Applying libhugetlbfs-2.20-noexec-stack.patch ...  [ ok ] * Applying libhugetlbfs-2.6-fixup-testsuite.patch ...  [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20 ... make -j3 CC=x86_64-pc-linux-gnu-gcc libs tools ./localversion version ./hugetlbfs.h ./kernel-features.h ./libhugetlbfs_debug.h ./libhugetlbfs_internal.h ./libhugetlbfs_privutils.h ./libhugetlbfs_testprobes.h *.c *.lds Makefile version string: 2.20 x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/elflink.o -c elflink.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -o obj64/sys-elf_x86_64.o -c sys-elf_x86_64.S x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/hugeutils.o -c hugeutils.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/version.o -c version.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/init.o -c init.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/morecore.o -c morecore.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/debug.o -c debug.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/alloc.o -c alloc.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/shm.o -c shm.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/kernel-features.o -c kernel-features.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj64/init_privutils.o -c init_privutils.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/init_privutils.o -c init_privutils.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/debug.o -c debug.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/hugeutils.o -c hugeutils.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/kernel-features.o -c kernel-features.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/hugectl.o -c hugectl.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/hugeedit.o -c hugeedit.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/hugeadm.o -c hugeadm.c x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/pagesize.o -c pagesize.c x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -ldl -Wl,--version-script=version.lds -Wl,-soname,libhugetlbfs.so -shared -o obj64/libhugetlbfs.so obj64/elflink.o obj64/sys-elf_x86_64.o obj64/hugeutils.o obj64/version.o obj64/init.o obj64/morecore.o obj64/debug.o obj64/alloc.o obj64/shm.o obj64/kernel-features.o x86_64-pc-linux-gnu-ar rv obj64/libhugetlbfs.a obj64/elflink.o obj64/sys-elf_x86_64.o obj64/hugeutils.o obj64/version.o obj64/init.o obj64/morecore.o obj64/debug.o obj64/alloc.o obj64/shm.o obj64/kernel-features.o x86_64-pc-linux-gnu-ar: creating obj64/libhugetlbfs.a a - obj64/elflink.o a - obj64/sys-elf_x86_64.o a - obj64/hugeutils.o a - obj64/version.o a - obj64/init.o a - obj64/morecore.o a - obj64/debug.o a - obj64/alloc.o a - obj64/shm.o a - obj64/kernel-features.o x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -ldl -Wl,--version-script=privutils.lds -Wl,-soname,libhugetlbfs_privutils.so -shared -o obj64/libhugetlbfs_privutils.so obj64/init_privutils.o obj64/debug.o obj64/hugeutils.o obj64/kernel-features.o x86_64-pc-linux-gnu-ar rv obj/libhugetlbfs_privutils.a obj/init_privutils.o obj/debug.o obj/hugeutils.o obj/kernel-features.o x86_64-pc-linux-gnu-ar: creating obj/libhugetlbfs_privutils.a a - obj/init_privutils.o a - obj/debug.o a - obj/hugeutils.o a - obj/kernel-features.o mkdir -p obj x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -o obj/hugectl obj/hugectl.o -Wl,-O1 -Wl,--as-needed -ldl mkdir -p obj x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/hugeedit obj/hugeedit.o -Wl,-O1 -Wl,--as-needed -ldl mkdir -p obj x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/pagesize obj/pagesize.o obj/libhugetlbfs_privutils.a -Wl,-O1 -Wl,--as-needed -ldl mkdir -p obj x86_64-pc-linux-gnu-gcc -D__LIBHUGETLBFS__ -march=native -mtune=native -O2 -pipe -Wall -fPIC -DLIB32='"lib32"' -DLIBDIR32='"/usr/lib32"' -DLIB64='"lib64"' -DLIBDIR64='"/usr/lib64"' -o obj/hugeadm obj/hugeadm.o obj/libhugetlbfs_privutils.a -Wl,-O1 -Wl,--as-needed -ldl >>> Source compiled. >>> Test phase: sys-libs/libhugetlbfs-2.20 * Building testsuite make -j3 -j1 tests make -C tests all make[1]: Entering directory '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20/tests' CC64 obj64/gethugepagesize.o CC64 obj64/testutils.o CC64 obj64/libtestutils.o LD64 (lib test) obj64/gethugepagesize CC64 obj64/test_root.o LD64 (lib test) obj64/test_root CC64 obj64/find_path.o LD64 (lib test) obj64/find_path CC64 obj64/unlinked_fd.o LD64 (lib test) obj64/unlinked_fd CC64 obj64/misalign.o LD64 (lib test) obj64/misalign CC64 obj64/readback.o LD64 (lib test) obj64/readback CC64 obj64/truncate.o LD64 (lib test) obj64/truncate CC64 obj64/shared.o LD64 (lib test) obj64/shared CC64 obj64/private.o LD64 (lib test) obj64/private CC64 obj64/fork-cow.o LD64 (lib test) obj64/fork-cow CC64 obj64/empty_mounts.o LD64 (lib test) obj64/empty_mounts CC64 obj64/large_mounts.o LD64 (lib test) obj64/large_mounts CC64 obj64/meminfo_nohuge.o LD64 (lib test) obj64/meminfo_nohuge CC64 obj64/ptrace-write-hugepage.o LD64 (lib test) obj64/ptrace-write-hugepage CC64 obj64/icache-hygiene.o icache-hygiene.c: In function ‘test_once’: icache-hygiene.c:158:2: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] ftruncate(fd, 0);  ^ icache-hygiene.c:162:3: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] ftruncate(fd, 0);  ^ icache-hygiene.c:171:2: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] ftruncate(fd, hpage_size);  ^ icache-hygiene.c:177:2: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] ftruncate(fd, 0);  ^ LD64 (lib test) obj64/icache-hygiene CC64 obj64/slbpacaflush.o LD64 (lib test) obj64/slbpacaflush CC64 obj64/chunk-overcommit.o LD64 (lib test) obj64/chunk-overcommit CC64 obj64/mprotect.o LD64 (lib test) obj64/mprotect CC64 obj64/alloc-instantiate-race.o alloc-instantiate-race.c: In function ‘thread_racer’: alloc-instantiate-race.c:114:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] int rc;  ^ LD64 (lib test) obj64/alloc-instantiate-race CC64 obj64/mlock.o LD64 (lib test) obj64/mlock CC64 obj64/truncate_reserve_wraparound.o LD64 (lib test) obj64/truncate_reserve_wraparound CC64 obj64/truncate_sigbus_versus_oom.o LD64 (lib test) obj64/truncate_sigbus_versus_oom CC64 obj64/map_high_truncate_2.o LD64 (lib test) obj64/map_high_truncate_2 CC64 obj64/truncate_above_4GB.o LD64 (lib test) obj64/truncate_above_4GB CC64 obj64/direct.o LD64 (lib test) obj64/direct CC64 obj64/misaligned_offset.o LD64 (lib test) obj64/misaligned_offset CC64 obj64/brk_near_huge.o LD64 (lib test) obj64/brk_near_huge CC64 obj64/task-size-overrun.o LD64 (lib test) obj64/task-size-overrun CC64 obj64/stack_grow_into_huge.o LD64 (lib test) obj64/stack_grow_into_huge CC64 obj64/counters.o LD64 (lib test) obj64/counters CC64 obj64/quota.o LD64 (lib test) obj64/quota CC64 obj64/heap-overflow.o LD64 (lib test) obj64/heap-overflow CC64 obj64/get_huge_pages.o LD64 (lib test) obj64/get_huge_pages CC64 obj64/get_hugepage_region.o LD64 (lib test) obj64/get_hugepage_region CC64 obj64/shmoverride_linked.o shmoverride_linked.c: In function ‘local_read_meminfo’: shmoverride_linked.c:113:11: warning: variable ‘readerr’ set but not used [-Wunused-but-set-variable] int len, readerr;  ^ LD64 (lib test) obj64/shmoverride_linked CC64 obj64/gethugepagesizes.o LD64 (lib test) obj64/gethugepagesizes CC64 obj64/madvise_reserve.o LD64 (lib test) obj64/madvise_reserve CC64 obj64/fadvise_reserve.o LD64 (lib test) obj64/fadvise_reserve CC64 obj64/readahead_reserve.o LD64 (lib test) obj64/readahead_reserve CC64 obj64/shm-perms.o LD64 (lib test) obj64/shm-perms CC64 obj64/mremap-expand-slice-collision.o LD64 (lib test) obj64/mremap-expand-slice-collision CC64 obj64/mremap-fixed-normal-near-huge.o LD64 (lib test) obj64/mremap-fixed-normal-near-huge CC64 obj64/mremap-fixed-huge-near-normal.o LD64 (lib test) obj64/mremap-fixed-huge-near-normal CC64 obj64/corrupt-by-cow-opt.o LD64 (lib test) obj64/corrupt-by-cow-opt CC64 obj64/noresv-preserve-resv-page.o LD64 (lib test) obj64/noresv-preserve-resv-page CC64 obj64/noresv-regarded-as-resv.o LD64 (lib test) obj64/noresv-regarded-as-resv CC64 obj64/fallocate_basic.o LD64 (lib test) obj64/fallocate_basic CC64 obj64/fallocate_align.o LD64 (lib test) obj64/fallocate_align CC64 obj64/fallocate_stress.o LD64 (lib test) obj64/fallocate_stress CC64 obj64/malloc.o LD64 (nolib test) obj64/malloc CC64 obj64/malloc_manysmall.o LD64 (nolib test) obj64/malloc_manysmall CC64 obj64/dummy.o LD64 (nolib test) obj64/dummy CC64 obj64/heapshrink.o LD64 (nolib test) obj64/heapshrink CC64 obj64/shmoverride_unlinked.o shmoverride_unlinked.c: In function ‘local_read_meminfo’: shmoverride_unlinked.c:113:11: warning: variable ‘readerr’ set but not used [-Wunused-but-set-variable] int len, readerr;  ^ LD64 (nolib test) obj64/shmoverride_unlinked CC64 obj64/mmap-gettest.o LD64 (lib test) obj64/mmap-gettest CC64 obj64/mmap-cow.o LD64 (lib test) obj64/mmap-cow CC64 obj64/shm-gettest.o LD64 (lib test) obj64/shm-gettest CC64 obj64/shm-getraw.o LD64 (lib test) obj64/shm-getraw CC64 obj64/shm-fork.o LD64 (lib test) obj64/shm-fork SCRIPT64 obj64/dummy.ldscript CC64 obj64/zero_filesize_segment.o LD64 (preload test) obj64/zero_filesize_segment /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: zero_filesize_segment.ld contains output sections; did you forget -T? CC64 obj64/linkhuge.o LD64 (hugelink test) obj64/linkhuge CC64 obj64/linkhuge_nofd.o LD64 (hugelink test) obj64/linkhuge_nofd CC64 obj64/linkshare.o LD64 (hugelink test) obj64/linkshare LD64 (xB test) obj64/xB.linkhuge LD64 (xB test) obj64/xB.linkhuge_nofd LD64 (xB test) obj64/xB.linkshare LD64 (xBDT test) obj64/xBDT.linkhuge LD64 (xBDT test) obj64/xBDT.linkhuge_nofd LD64 (xBDT test) obj64/xBDT.linkshare CC64 obj64/straddle_4GB.o LD64 (lib test) obj64/straddle_4GB_static CC64 obj64/huge_at_4GB_normal_below.o LD64 (lib test) obj64/huge_at_4GB_normal_below_static CC64 obj64/huge_below_4GB_normal_above.o LD64 (lib test) obj64/huge_below_4GB_normal_above_static LD64 (lib test) obj64/shmoverride_linked_static CC64 obj64/get_hugetlbfs_path.o LD64 (helper) obj64/get_hugetlbfs_path CC64 obj64/compare_kvers.o LD64 (helper) obj64/compare_kvers CC64 obj64/heapshrink-helper-pic.o heapshrink-helper.c: In function ‘setup_heapshrink_helper’: heapshrink-helper.c:24:2: warning: ignoring return value of ‘malloc’, declared with attribute warn_unused_result [-Wunused-result] (void) malloc(1);  ^ LD64 (shared) obj64/libheapshrink.so COPY (wrapped test) obj64/quota.sh COPY (wrapped test) obj64/counters.sh COPY (wrapped test) obj64/madvise_reserve.sh COPY (wrapped test) obj64/fadvise_reserve.sh COPY (wrapped test) obj64/readahead_reserve.sh COPY (wrapped test) obj64/mremap-expand-slice-collision.sh COPY (wrapped test) obj64/mremap-fixed-normal-near-huge.sh COPY (wrapped test) obj64/mremap-fixed-huge-near-normal.sh COPY (wrapped test) obj64/fallocate_basic.sh COPY (wrapped test) obj64/fallocate_align.sh COPY (wrapped test) obj64/fallocate_stress.sh make[1]: Leaving directory '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20/tests' * Planning allocation mkdir: cannot create directory ‘/var/lib/hugetlbfs’: Permission denied * Checking HugeTLB mountpoints hugeadm:ERROR: Unable to create dir /var/lib/hugetlbfs, error: Permission denied * ERROR: sys-libs/libhugetlbfs-2.20::gentoo failed (test phase): * Failed to set up hugetlb mountpoints. * * Call stack: * ebuild.sh, line 115: Called src_test * environment, line 3232: Called die * The specific snippet of code: * ${hugeadm} --create-mounts || die "Failed to set up hugetlb mountpoints."; * * If you need support, post the output of `emerge --info '=sys-libs/libhugetlbfs-2.20::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libhugetlbfs-2.20::gentoo'`. * The complete build log is located at '/var/log/portage-build/build/sys-libs/libhugetlbfs-2.20:20170907-005709.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20' * S: '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20'