mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Getting error 'kernel' must depend on 'host-system-python3' for 'python3'!
@ 2024-03-27 17:17 Ian Abbott
  2024-03-28  8:10 ` Michael Olbrich
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Abbott @ 2024-03-27 17:17 UTC (permalink / raw)
  To: ptxdist

I'm getting this error when trying to build a kernel that has "Kernel 
hacking > Compile-time checks and compiler options > Generate BTF 
typeinfo (DEBUG_INFO_BTF)" enabled in the configuration:

--------------------------------------------------------------------
----------------------
target: kernel.compile
----------------------

make: Entering directory 
'/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21'
make[1]: Entering directory 
'/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21-build'
   GEN     Makefile
   DESCEND bpf/resolve_btfids
   CALL 
/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21/scripts/checksyscalls.sh
   GEN 
/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21-build/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
   INSTALL libsubcmd_headers

'kernel' must depend on 'host-system-python3' for 'python3'!

make[5]: *** [Makefile:160: 
/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21-build/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h] 
Error 1
make[5]: *** Deleting file 
'/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21-build/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h'
make[4]: *** [Makefile:63: 
/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21-build/tools/bpf/resolve_btfids//libbpf/libbpf.a] 
Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:76: bpf/resolve_btfids] Error 2
make[2]: *** 
[/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21/Makefile:1355: 
tools/bpf/resolve_btfids] Error 2
make[1]: *** 
[/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21/Makefile:234: 
__sub-make] Error 2
make[1]: Leaving directory 
'/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21-build'
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory 
'/mnt/lindata/work/abbotti/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/build-target/linux-6.6.21'
make: *** 
[/mnt/lindata/work/abbotti/ptxdist/ptxdist/ptxdist_git/ptxdist/rules/kernel.make:251: 
/home/abbotti/work/ptxdist/projects/its-ipt4-demo/platform-its-ipt4-demo/state/kernel.compile] 
Error 2
--------------------------------------------------------------------

I could live without it.  It is required for RestrictFileSystems= in 
systemd service units according to 
<https://github.com/systemd/systemd/blob/main/README>.  But is there an 
easy fix?

I'm currently using ptxdist 2024.03.0 but is also reproducible on the 
ptxdist master branch.

-- 
-=( Ian Abbott <abbotti@mev.co.uk> || MEV Ltd. is a company  )=-
-=( registered in England & Wales.  Regd. number: 02862268.  )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-28 15:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 17:17 [ptxdist] Getting error 'kernel' must depend on 'host-system-python3' for 'python3'! Ian Abbott
2024-03-28  8:10 ` Michael Olbrich
2024-03-28 10:59   ` Ian Abbott
2024-03-28 11:36     ` Ian Abbott
2024-03-28 11:52       ` Ian Abbott
2024-03-28 15:04     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox