Build error on arm64 Azure VM:
In file included from /__w/1/s/rpmbuild/BUILD/kernel-source/tools/include/linux/bitmap.h:6, from ../lib/bitmap.c:6: /__w/1/s/rpmbuild/BUILD/kernel-source/tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h 14 | #error Inconsistent word size. Check asm/bitsperlong.h | ^~~~~ CC util/smt.o make[4]: *** [util/Build:299: util/bitmap.o] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from tests/bpf.c:5: /usr/include/sys/epoll.h:134:12: note: in a call to function 'epoll_pwait' declared 'nonnull' 134 | extern int epoll_pwait (int __epfd, struct epoll_event *__events, | ^~~~~~~~~~~ make[3]: *** [/__w/1/s/rpmbuild/BUILD/kernel-source/tools/build/Makefile.build:143: util] Error 2 make[2]: *** [Makefile.perf:658: perf-in.o] Error 2 make[1]: *** [Makefile.perf:238: sub-make] Error 2 make: *** [Makefile:70: all] Error 2
Build error on x86 Azure VM:
In file included from /__w/1/s/rpmbuild/BUILD/kernel-source/tools/include/linux/bitmap.h:6, from ../lib/bitmap.c:6: /__w/1/s/rpmbuild/BUILD/kernel-source/tools/include/asm-generic/bitsperlong.h:14:2: error: #error Inconsistent word size. Check asm/bitsperlong.h 14 | #error Inconsistent word size. Check asm/bitsperlong.h | ^~~~~ CC util/hweight.o CC util/smt.o make[4]: *** [util/Build:299: util/bitmap.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/__w/1/s/rpmbuild/BUILD/kernel-source/tools/build/Makefile.build:143: util] Error 2
Tested-by: Hardik Garg hargar@linux.microsoft.com
Thanks, Hardik