Во-первых, я не понял, почему эта цепочка инструментов поставляется с Заголовки 4.20.x. Я выбрал заголовки 6.6.x в разделе «Связка инструментов» > «Серия заголовков ядра внешней цепочки инструментов», но buildroot обнаружил, что заголовки — это 4.20.x. Почемуtoolchai, несмотря на то, что он самый последний, поставляется с такими старыми заголовками?
В buildroot rootfs я хочу, чтобы заголовки ядра Linux соответствовали моему ядру 6.6.35, потому что когда я запускаю определенные программы (например, bpftrace или bcc), они жалуются на отсутствие заголовков.
Код: Выделить всё
# ./bitehist.py
In file included from :2:
In file included from /virtual/include/bcc/bpf.h:12:
In file included from include/linux/types.h:6:
In file included from include/uapi/linux/types.h:14:
In file included from include/linux/posix_types.h:5:
In file included from include/linux/stddef.h:5:
In file included from include/uapi/linux/stddef.h:5:
include/linux/compiler_types.h:167:10: fatal error: 'asm/compiler.h' file not found
#include
^~~~~~~~~~~~~~~~
1 error generated.
Traceback (most recent call last):
File "//./bitehist.py", line 21, in
b = BPF(text="""
^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/bcc/__init__.py", line 479, in __init__
Exception: Failed to compile BPF module
Код: Выделить всё
# bpftrace -e 'tracepoint:raw_syscalls:sys_enter { @[comm] = count(); }'
fatal error: '/lib/modules/6.6.35-ga78e9d5d3e33-dirty/build/include/linux/kconfig.h' file not found
#
Подробнее здесь: https://stackoverflow.com/questions/787 ... filesystem