When trying to build the libhugetlbfs test on KVM instance gummo, which is running the 4.15.0-1003-kvm kernel, it will fail with:
CC32 obj32/linkhuge_nofd.o
LD32 (hugelink test) obj32/linkhuge_nofd
CC32 obj32/linkshare.o
LD32 (hugelink test) obj32/linkshare
LD32 (xB test) obj32/xB.linkhuge
/usr/bin/x86_64-linux-gnu-ld: unrecognized option '--hugetlbfs-link=B'
/usr/bin/x86_64-linux-gnu-ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
Makefile:227: recipe for target 'obj32/xB.linkhuge' failed
make[1]: *** [obj32/xB.linkhuge] Error 1
Makefile:242: recipe for target 'tests/all' failed
make: *** [tests/all] Error 2
When trying to build the libhugetlbfs test on KVM instance gummo, which is running the 4.15.0-1003-kvm kernel, it will fail with: nofd.o bin/x86_ 64-linux- gnu-ld: unrecognized option '--hugetlbfs- link=B' bin/x86_ 64-linux- gnu-ld: use the --help option for usage information
CC32 obj32/linkhuge_
LD32 (hugelink test) obj32/linkhuge_nofd
CC32 obj32/linkshare.o
LD32 (hugelink test) obj32/linkshare
LD32 (xB test) obj32/xB.linkhuge
/usr/
/usr/
collect2: error: ld returned 1 exit status
Makefile:227: recipe for target 'obj32/xB.linkhuge' failed
make[1]: *** [obj32/xB.linkhuge] Error 1
Makefile:242: recipe for target 'tests/all' failed
make: *** [tests/all] Error 2
Steps: /github. com/libhugetlbf s/libhugetlbfs. git
1. git clone --depth=1 -b next https:/
2. cd libhugetlbfs
3. make
ProblemType: Bug 4.15.0- 1003-kvm 4.15.0-1003.3 ature: User Name 4.15.0-1003.3-kvm 4.15.10 256color DIR=<set>
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-1003-kvm x86_64
ApportVersion: 2.20.9-0ubuntu5
Architecture: amd64
Date: Thu Apr 19 04:44:08 2018
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)