llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.26k stars 11.67k forks source link

Make kernel-selftests/bpf error in debian bookworm/sid #56399

Open jie2xzhou opened 2 years ago

jie2xzhou commented 2 years ago

llvm-project commit 142aca7741d5b06207e87bf4880fbe308c8d6823

$ cd linux/tools/testing/selftests/bpf
$ make -C bpf
fatal error: error in backend: Branch target out of insn range
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: clang -g -D__TARGET_ARCH_x86 -mlittle-endian -I/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f443e374ae131c168a065ea1748feac6b2e76613/tools/testing/selftests/bpf/tools/include -I/usr/src/perf_selftests-x86_
64-rhel-8.3-kselftests-f443e374ae131c168a065ea1748feac6b2e76613/tools/testing/selftests/bpf -I/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f443e374ae131c168a065ea1748feac6b2e76613/tools/include/uapi -I/usr/src/perf_selftests-x86_64-
rhel-8.3-kselftests-f443e374ae131c168a065ea1748feac6b2e76613/tools/testing/selftests/usr/include -idirafter /lib/clang/15.0.0/include -idirafter /usr/local/include -idirafter /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/i
nclude -idirafter /usr/include/x86_64-linux-gnu -idirafter /include -idirafter /usr/include -Wno-compare-distinct-pointer-types -DENABLE_ATOMICS_TESTS -O2 -target bpf -c progs/pyperf600.c -mcpu=v3 -o /usr/src/perf_selftests-x86_64-rhel-8.
3-kselftests-f443e374ae131c168a065ea1748feac6b2e76613/tools/testing/selftests/bpf/pyperf600.o make: *** [Makefile:487: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-f443e374ae131c168a065ea1748feac6b2e76613/tools/testing/selftests/bpf/pyperf600.o] Error 1
Endilll commented 1 year ago

@jie2xzhou Do you still experience this with LLVM 17 or trunk?