Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unrecognized option '--hugetlbfs-link=BDT' #20

Open
anatol opened this issue Jun 23, 2017 · 0 comments
Open

unrecognized option '--hugetlbfs-link=BDT' #20

anatol opened this issue Jun 23, 2017 · 0 comments

Comments

@anatol
Copy link

anatol commented Jun 23, 2017

I am trying to compile the project at Arch Linux and it fails


	 VERSION
version update: commit<4d54caaf4f6418fbde08737aa9416920a425dc09>
version string: commit<4d54caaf4f6418fbde08737aa9416920a425dc09> (modified)
	 CC64 obj64/elflink.o
	 AS64 obj64/sys-elf_x86_64.o
	 CC64 obj64/hugeutils.o
	 CC64 obj64/version.o
	 CC64 obj64/init.o
	 CC64 obj64/morecore.o
version.c:3:19: warning: ‘libhugetlbfs_version’ defined but not used [-Wunused-const-variable=]
 static const char libhugetlbfs_version[] = "VERSION: "VERSION;
                   ^~~~~~~~~~~~~~~~~~~~
	 CC64 obj64/debug.o
	 CC64 obj64/alloc.o
	 CC64 obj64/shm.o
	 CC64 obj64/kernel-features.o
	 CC64 obj64/init_privutils.o
	 CCHOST obj/init_privutils.o
	 CCHOST obj/debug.o
	 CCHOST obj/hugeutils.o
	 CCHOST obj/kernel-features.o
	 CCHOST obj/hugectl.o
	 CCHOST obj/hugeedit.o
	 CCHOST obj/hugeadm.o
	 CCHOST obj/pagesize.o
	 LDHOST obj/hugeedit
	 LDHOST obj/hugectl
	 LD64 (shared) obj64/libhugetlbfs_privutils.so
	 LD64 (shared) obj64/libhugetlbfs.so
	 AR64 obj64/libhugetlbfs.a
	 ARHOST obj/libhugetlbfs_privutils.a
	 LDHOST obj/pagesize
	 LDHOST obj/hugeadm
	 CC64 obj64/testutils.o
	 CC64 obj64/libtestutils.o
	 CC64 obj64/test_root.o
	 CC64 obj64/find_path.o
	 CC64 obj64/unlinked_fd.o
	 CC64 obj64/misalign.o
	 CC64 obj64/gethugepagesize.o
	 CC64 obj64/readback.o
	 CC64 obj64/truncate.o
	 CC64 obj64/shared.o
	 CC64 obj64/private.o
	 CC64 obj64/fork-cow.o
	 CC64 obj64/empty_mounts.o
	 CC64 obj64/large_mounts.o
	 CC64 obj64/meminfo_nohuge.o
	 CC64 obj64/ptrace-write-hugepage.o
	 CC64 obj64/icache-hygiene.o
	 CC64 obj64/slbpacaflush.o
	 CC64 obj64/chunk-overcommit.o
	 CC64 obj64/mprotect.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);
  ^~~~~~~~~~~~~~~~
	 CC64 obj64/alloc-instantiate-race.o
	 CC64 obj64/mlock.o
	 CC64 obj64/truncate_reserve_wraparound.o
	 CC64 obj64/truncate_sigbus_versus_oom.o
	 CC64 obj64/map_high_truncate_2.o
	 CC64 obj64/truncate_above_4GB.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;
      ^~
	 CC64 obj64/direct.o
	 CC64 obj64/misaligned_offset.o
	 CC64 obj64/brk_near_huge.o
	 CC64 obj64/task-size-overrun.o
	 CC64 obj64/stack_grow_into_huge.o
	 CC64 obj64/counters.o
	 CC64 obj64/quota.o
	 CC64 obj64/heap-overflow.o
	 CC64 obj64/get_huge_pages.o
	 CC64 obj64/get_hugepage_region.o
	 CC64 obj64/gethugepagesizes.o
	 CC64 obj64/shmoverride_linked.o
	 CC64 obj64/madvise_reserve.o
	 CC64 obj64/fadvise_reserve.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;
           ^~~~~~~
	 CC64 obj64/readahead_reserve.o
	 CC64 obj64/shm-perms.o
	 CC64 obj64/mremap-expand-slice-collision.o
	 CC64 obj64/mremap-fixed-normal-near-huge.o
	 CC64 obj64/mremap-fixed-huge-near-normal.o
	 CC64 obj64/corrupt-by-cow-opt.o
	 CC64 obj64/noresv-preserve-resv-page.o
	 CC64 obj64/noresv-regarded-as-resv.o
	 CC64 obj64/fallocate_basic.o
	 CC64 obj64/fallocate_align.o
	 CC64 obj64/fallocate_stress.o
	 CC64 obj64/malloc.o
	 CC64 obj64/malloc_manysmall.o
	 CC64 obj64/dummy.o
	 CC64 obj64/heapshrink.o
	 CC64 obj64/shmoverride_unlinked.o
	 CC64 obj64/mmap-gettest.o
	 CC64 obj64/mmap-cow.o
	 CC64 obj64/shm-gettest.o
	 CC64 obj64/shm-getraw.o
	 CC64 obj64/shm-fork.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;
           ^~~~~~~
	 SCRIPT64 obj64/dummy.ldscript
	 CC64 obj64/zero_filesize_segment.o
	 CC64 obj64/linkhuge.o
	 CC64 obj64/linkhuge_nofd.o
	 CC64 obj64/linkshare.o
	 CC64 obj64/straddle_4GB.o
	 CC64 obj64/huge_at_4GB_normal_below.o
	 CC64 obj64/huge_below_4GB_normal_above.o
	 LD64 (lib test) obj64/shmoverride_linked_static
	 CC64 obj64/get_hugetlbfs_path.o
	 CC64 obj64/compare_kvers.o
	 CC64 obj64/heapshrink-helper-pic.o
	 LD64 (lib test) obj64/gethugepagesize
	 LD64 (lib test) obj64/test_root
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 (lib test) obj64/find_path
	 LD64 (lib test) obj64/unlinked_fd
	 LD64 (lib test) obj64/misalign
	 LD64 (lib test) obj64/readback
	 LD64 (lib test) obj64/truncate
	 LD64 (lib test) obj64/shared
	 LD64 (lib test) obj64/private
	 LD64 (lib test) obj64/fork-cow
	 LD64 (lib test) obj64/empty_mounts
	 LD64 (lib test) obj64/large_mounts
	 LD64 (lib test) obj64/meminfo_nohuge
	 LD64 (lib test) obj64/ptrace-write-hugepage
	 LD64 (lib test) obj64/icache-hygiene
	 LD64 (lib test) obj64/slbpacaflush
	 LD64 (lib test) obj64/chunk-overcommit
	 LD64 (lib test) obj64/mprotect
	 LD64 (lib test) obj64/alloc-instantiate-race
	 LD64 (lib test) obj64/mlock
	 LD64 (lib test) obj64/truncate_reserve_wraparound
	 LD64 (lib test) obj64/truncate_sigbus_versus_oom
	 LD64 (lib test) obj64/map_high_truncate_2
	 LD64 (lib test) obj64/truncate_above_4GB
	 LD64 (lib test) obj64/direct
	 LD64 (lib test) obj64/misaligned_offset
	 LD64 (lib test) obj64/brk_near_huge
	 LD64 (lib test) obj64/task-size-overrun
	 LD64 (lib test) obj64/stack_grow_into_huge
	 LD64 (lib test) obj64/counters
	 LD64 (lib test) obj64/quota
	 LD64 (lib test) obj64/heap-overflow
	 LD64 (lib test) obj64/get_huge_pages
	 LD64 (lib test) obj64/get_hugepage_region
	 LD64 (lib test) obj64/shmoverride_linked
	 LD64 (lib test) obj64/gethugepagesizes
	 LD64 (lib test) obj64/madvise_reserve
	 LD64 (lib test) obj64/readahead_reserve
	 LD64 (lib test) obj64/fadvise_reserve
	 LD64 (lib test) obj64/shm-perms
	 LD64 (lib test) obj64/mremap-expand-slice-collision
	 LD64 (lib test) obj64/mremap-fixed-normal-near-huge
	 LD64 (lib test) obj64/mremap-fixed-huge-near-normal
	 LD64 (lib test) obj64/corrupt-by-cow-opt
	 LD64 (lib test) obj64/noresv-preserve-resv-page
	 LD64 (lib test) obj64/noresv-regarded-as-resv
	 LD64 (lib test) obj64/fallocate_basic
	 LD64 (lib test) obj64/fallocate_align
	 LD64 (lib test) obj64/fallocate_stress
	 LD64 (nolib test) obj64/malloc
	 LD64 (nolib test) obj64/malloc_manysmall
	 LD64 (nolib test) obj64/dummy
	 LD64 (nolib test) obj64/heapshrink
	 LD64 (nolib test) obj64/shmoverride_unlinked
	 LD64 (lib test) obj64/mmap-gettest
	 LD64 (lib test) obj64/mmap-cow
	 LD64 (lib test) obj64/shm-gettest
	 LD64 (lib test) obj64/shm-getraw
	 LD64 (lib test) obj64/shm-fork
	 LD64 (preload test) obj64/zero_filesize_segment
	 LD64 (hugelink test) obj64/linkhuge
	 LD64 (hugelink test) obj64/linkhuge_nofd
	 LD64 (hugelink test) obj64/linkshare
	 LD64 (xB test) obj64/xB.linkhuge
	 LD64 (xB test) obj64/xB.linkhuge_nofd
/usr/bin/ld: warning: zero_filesize_segment.ld contains output sections; did you forget -T?
	 LD64 (xBDT test) obj64/xBDT.linkhuge
	 LD64 (xB test) obj64/xB.linkshare
	 LD64 (xBDT test) obj64/xBDT.linkhuge_nofd
	 LD64 (xBDT test) obj64/xBDT.linkshare
/usr/bin/ld: unrecognized option '--hugetlbfs-link=B'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
	 LD64 (lib test) obj64/straddle_4GB_static
make[1]: *** [Makefile:236: obj64/xB.linkhuge] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: unrecognized option '--hugetlbfs-link=B'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:236: obj64/xB.linkhuge_nofd] Error 1
/usr/bin/ld: unrecognized option '--hugetlbfs-link=B'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:236: obj64/xB.linkshare] Error 1
/usr/bin/ld: unrecognized option '--hugetlbfs-link=BDT'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
/usr/bin/ld: unrecognized option '--hugetlbfs-link=BDT'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:248: obj64/xBDT.linkhuge] Error 1
make[1]: *** [Makefile:248: obj64/xBDT.linkhuge_nofd] Error 1
/usr/bin/ld: unrecognized option '--hugetlbfs-link=BDT'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:248: obj64/xBDT.linkshare] Error 1
make: *** [Makefile:249: tests/all] Error 2

Is there a way to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant