Skip to contentSkip to conversation

bpf tool build failure in latest stable-rc 6.1.103-rc3 due to missing backport

DISCUSSION Hardik Garg 3 participants 5 messages Aug 2, 2024 – Aug 11, 2024

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

bpf tool build fails for the latest stable-rc 6.1.103-rc3
The error details are as follows:
prog.c: In function 'load_with_options':
prog.c:1710:23: warning: implicit declaration of function 'create_and_mount_bpffs_dir' [-Wimplicit-function-declaration]

 1710 |                 err = create_and_mount_bpffs_dir(pinmaps);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
  CC      struct_ops.o
  CC      tracelog.o
  CC      xlated_dumper.o
  CC      jit_disasm.o
  CC      disasm.o
  LINK    bpftool

/usr/bin/ld: prog.o: in function `load_with_options':
prog.c:(.text+0x346a): undefined reference to `create_and_mount_bpffs_dir'

The commit causing this failure in 6.1.103-rc3: bc1605fcb33bf7a300cd3ac5c409a16bda1626ba

It appears that the commit from the 6.10 series is missing in this release candidate:
478a535ae54a ("bpftool: Mount bpffs on provided dir instead of parent dir")

Thanks,
Hardik

#1 lore raw
Quoted 11 lines · Hardik Garg

bpf tool build fails for the latest stable-rc 6.1.103-rc3 The error details are as follows:
prog.c: In function 'load_with_options':
prog.c:1710:23: warning: implicit declaration of function 'create_and_mount_bpffs_dir' [-Wimplicit-function-declaration]

 1710 |                 err = create_and_mount_bpffs_dir(pinmaps);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~

The commit causing this failure in 6.1.103-rc3:
bc1605fcb33bf7a300cd3ac5c409a16bda1626ba

Quoted 7 lines

It appears that the commit from the 6.10 series is missing in this release candidate:
478a535ae54a ("bpftool: Mount bpffs on provided dir instead of parent dir")

Thanks,
Hardik

Build of final 6.1.103 fails due to the reported issue.

Can we drop this commit until we figure out a proper fix?

Thanks,
Akemi

maintainer
#3 lore raw
Quoted 1 line · Hardik Garg

adding the BPF maintainers

There was no data here at all for anyone to respond to :(

maintainer
#4 lore raw
In reply to Hardik Garg
Quoted 12 lines · Hardik Garg

bpf tool build fails for the latest stable-rc 6.1.103-rc3
The error details are as follows:
prog.c: In function 'load_with_options':
prog.c:1710:23: warning: implicit declaration of function 'create_and_mount_bpffs_dir' [-Wimplicit-function-declaration]

 1710 |                 err = create_and_mount_bpffs_dir(pinmaps);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
  CC      struct_ops.o
  CC      tracelog.o
  CC      xlated_dumper.o
  CC      jit_disasm.o
  CC      disasm.o
  LINK    bpftool
Quoted 7 lines

/usr/bin/ld: prog.o: in function `load_with_options':
prog.c:(.text+0x346a): undefined reference to `create_and_mount_bpffs_dir'

The commit causing this failure in 6.1.103-rc3: bc1605fcb33bf7a300cd3ac5c409a16bda1626ba

It appears that the commit from the 6.10 series is missing in this release candidate:
478a535ae54a ("bpftool: Mount bpffs on provided dir instead of parent dir")

That commit does not apply to 6.1.y, sorry.

greg k-h