Skip to contentSkip to conversation

stable kernels 6.6.23 and 6.1.83 fails to build: error: unknown type name 'u32'

DISCUSSION Bagas Sanjaya 5 participants 7 messages Apr 1, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 27 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;                                                              
      |         ^~~                
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];         
      |         ^~~                    
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;   
      |         ^~~                        
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
Quoted 8 lines
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

See the report on Bugzilla for the full thread and proposed fix.

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=218647

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw
Quoted 41 lines · Bagas Sanjaya

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 27 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;                                                              
      |         ^~~                
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];         
      |         ^~~                    
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;   
      |         ^~~                        
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
Quoted 8 lines
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```
Quoted 4 lines

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

See the report on Bugzilla for the full thread and proposed fix.

Is the proposed fix a commit to backport?

Digging through entries is not the easiest way to get things resolved...

greg k-h

#2 lore raw
Quoted 42 lines · Greg KH
Quoted 41 lines · Bagas Sanjaya

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 35 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;                                                              
      |         ^~~                
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];         
      |         ^~~                    
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;   
      |         ^~~                        
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```
Quoted 6 lines
Quoted 4 lines

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

See the report on Bugzilla for the full thread and proposed fix.

Is the proposed fix a commit to backport?

Nope (see below).

Quoted 3 lines

Digging through entries is not the easiest way to get things resolved...

The reporter posted the fix as bug comment [1] instead (hint: include linux/types.h) but not submitted it to mailing lists first.

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=218647#c2

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw
Quoted 60 lines · Bagas Sanjaya
Quoted 42 lines · Greg KH
Quoted 41 lines · Bagas Sanjaya

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 35 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```
Quoted 6 lines
Quoted 4 lines

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

See the report on Bugzilla for the full thread and proposed fix.

Is the proposed fix a commit to backport?

Nope (see below).

Quoted 3 lines

Digging through entries is not the easiest way to get things resolved...

The reporter posted the fix as bug comment [1] instead (hint: include linux/types.h) but not submitted it to mailing lists first.

Quoted 6 lines

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=218647#c2

--
An old man doll... just what I always wanted! - Clara

Does https://lore.kernel.org/all/[email protected]/
resolve this? It's staged in the bpf tree. Though I'm not sure when it'll be merged upstream.

#4 lore raw
Quoted 63 lines · On Mon, 1 Apr 2024 07:36:08 -0700 Greg Thelen <[email protected]> wrote:
Quoted 62 lines · On Mon, Apr 1, 2024 at 7:26*AM Bagas Sanjaya <[email protected]> wrote:
Quoted 42 lines · Greg KH
Quoted 41 lines · Bagas Sanjaya

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 35 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```  
Quoted 6 lines
Quoted 4 lines

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

See the report on Bugzilla for the full thread and proposed fix.

Is the proposed fix a commit to backport?

Nope (see below).

Quoted 3 lines

Digging through entries is not the easiest way to get things resolved...

The reporter posted the fix as bug comment [1] instead (hint: include linux/types.h) but not submitted it to mailing lists first.

Thanks.

Quoted 8 lines
Quoted 4 lines

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=218647#c2

--
An old man doll... just what I always wanted! - Clara

Does https://lore.kernel.org/all/[email protected]/
resolve this? It's staged in the bpf tree. Though I'm not sure when it'll be merged upstream.

Yes. this is the fix

-nc

#5 lore raw
In reply to Bagas Sanjaya
Quoted 45 lines · Bagas Sanjaya
Quoted 43 lines · Greg KH
Quoted 42 lines · Bagas Sanjaya

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 36 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....

make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

See the report on Bugzilla for the full thread and proposed fix.

Is the proposed fix a commit to backport?

Nope (see below).

The fix is in bpf tree.
commit 62248b22d01e ("tools/resolve_btfids: fix build with musl libc")

#6 lore raw
Quoted 49 lines · Alexei Starovoitov
Quoted 48 lines · Bagas Sanjaya
Quoted 46 lines · Greg KH
Quoted 45 lines · Bagas Sanjaya

Hi,

On Bugzilla, [email protected] reported resolve_btfids FTBFS regression on musl system [1]:

Quoted 28 lines

The latest releases fails to build with musl libc (Alpine Linux edge and v3.19):

```
rm -f -f /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/libbpf.a; ar rcs /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tool
s/bpf/resolve_btfids/libbpf/libbpf.a /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
In file included from main.c:73:
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:7:9: error: unknown type name 'u32'
    7 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:8:9: error: unknown type name 'u32'
    8 |         u32 ids[];
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:12:9: error: unknown type name 'u32'
   12 |         u32 cnt;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:13:9: error: unknown type name 'u32'
   13 |         u32 flags;
      |         ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:15:17: error: unknown type name 'u32'
   15 |                 u32 id;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:16:17: error: unknown type name 'u32'
   16 |                 u32 flags;
      |                 ^~~
/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/include/linux/btf_ids.h:215:8: error: unknown type name 'u32'
  215 | extern u32 btf_tracing_ids[];
      |        ^~~
make[4]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/tools/build/Makefile.build:98: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids
Quoted 8 lines
/main.o] Error 1
make[4]: *** Waiting for unfinished jobs....

make[3]: *** [Makefile:83: /home/ncopa/aports/main/linux-lts/src/build-lts.x86_64/tools/bpf/resolve_btfids//resolve_btfids-in.o] Error 2
make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[1]: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:1354: tools/bpf/resolve_btfids] Error 2
make: *** [/home/ncopa/aports/main/linux-lts/src/linux-6.6/Makefile:234: __sub-make] Error 2
```

Bisection led to upstream commit 9707ac4fe2f5ba ("tools/resolve_btfids:
Refactor set sorting with types from btf_ids.h") as the culprit.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

See the report on Bugzilla for the full thread and proposed fix.

Is the proposed fix a commit to backport?

Nope (see below).

The fix is in bpf tree.
commit 62248b22d01e ("tools/resolve_btfids: fix build with musl libc")

Thanks, I'll go queue that up now to make people's lives easier.

greg k-h