FYI, we noticed the following commit (built with gcc-7): commit: d94e96122a4778c029ef08ffc0a8b315a48a30f5 ("[PATCH] static_assert: move before people start using it") url: https://github.com/0day-ci/linux/commits/Alexey-Dobriyan/static_assert-move-before-people-start-using-it/20190311-050701 in testcase: bpf_offload with following parameters: on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): /usr/src/perf_selftests-x86_64-rhel-7.6-d94e96122a4778c029ef08ffc0a8b315a48a30f5/tools/bpf/bpf_jit_disasm.c: In function ‘get_exec_path’: /usr/src/perf_selftests-x86_64-rhel-7.6-d94e96122a4778c029ef08ffc0a8b315a48a30f5/tools/bpf/bpf_jit_disasm.c:44:2: warning: implicit declaration of function ‘assert’ [-Wimplicit-function-declaration] assert(path); ^~~~~~ bpf_jit_disasm.o: In function `get_asm_insns': bpf_jit_disasm.c:(.text+0x78): undefined reference to `assert' bpf_jit_disasm.c:(.text+0xb6): undefined reference to `assert' bpf_jit_disasm.c:(.text+0xcc): undefined reference to `assert' bpf_jit_disasm.c:(.text+0x134): undefined reference to `assert' bpf_jit_disasm.o: In function `main': bpf_jit_disasm.c:(.text.startup+0x1b9): undefined reference to `assert' bpf_jit_disasm.o:bpf_jit_disasm.c:(.text.startup+0x1e7): more undefined references to `assert' follow collect2: error: ld returned 1 exit status make: *** [bpf_jit_disasm] Error 1 failed to prepare_for_bpf /lkp/lkp/src/lib/debug.sh:7: die /lkp/lkp/src/tests/bpf_offload:35: main :0: To reproduce: # build kernel cd linux cp config-5.0.0-10154-gd94e961 .config make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong Chen