diff options
| author | Deepak Rathore <deeratho@cisco.com> | 2025-08-29 18:49:29 +0530 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-05 09:12:33 -0700 |
| commit | 057ee563305e9484b29d02347aeafdadc5ea28ed (patch) | |
| tree | 4d9b28fdf70c1afe44a12ab2bd28fdee5c52daf8 | |
| parent | 6691e4bc47e20b903dc3dd7684685086d2468b84 (diff) | |
| download | meta-clang-057ee563305e9484b29d02347aeafdadc5ea28ed.tar.gz | |
bpftool: Use gcc instead of clang compiler
While compiling bpftool with clang, it fails with below error:
| error: no member named 'id' in 'struct bpf_link'
| return BPF_CORE_READ((struct bpf_link *)ent, id);
bpftool is kernel tool to inspect and manipulate eBPF programs and maps.
And kernel is built using GCC by default. Maintaining compatibility with
Clang is an ongoing challenge, and using Clang solely for building bpftool
is ineffective unless the entire kernel is compiled with Clang.
Hence, updated TOOLCHAIN of bpftool to gcc.
Signed-off-by: Deepak Rathore <deeratho@cisco.com>
| -rw-r--r-- | conf/nonclangable.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 0dd0ee3..2a12618 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
| @@ -201,6 +201,9 @@ TOOLCHAIN:pn-gcc-for-nvcc-runtime:tegra = "gcc" | |||
| 201 | #| | ^ | 201 | #| | ^ |
| 202 | TOOLCHAIN:pn-optee-os:imx-nxp-bsp = "gcc" | 202 | TOOLCHAIN:pn-optee-os:imx-nxp-bsp = "gcc" |
| 203 | 203 | ||
| 204 | # Does not compile with clang 18 | ||
| 205 | TOOLCHAIN:pn-bpftool = "gcc" | ||
| 206 | |||
| 204 | CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " | 207 | CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " |
| 205 | 208 | ||
| 206 | # TOPDIR/build/tmp/work/core2-32-yoe-linux/gnu-efi/3.0.17-r0/gnu-efi-3.0.17//lib/ctors.S:11:41: error: expected the entry size | 209 | # TOPDIR/build/tmp/work/core2-32-yoe-linux/gnu-efi/3.0.17-r0/gnu-efi-3.0.17//lib/ctors.S:11:41: error: expected the entry size |
