mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: ptxdist <ptxdist@pengutronix.de>
Subject: [ptxdist] Getting error 'kernel' must depend on 'host-system-python3' for 'python3'!
Date: Wed, 27 Mar 2024 17:17:21 +0000	[thread overview]
Message-ID: <4cfc5e0b-86fd-452d-8f1d-ea8a109673f1@mev.co.uk> (raw)

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 )=-



             reply	other threads:[~2024-03-27 17:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-27 17:17 Ian Abbott [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4cfc5e0b-86fd-452d-8f1d-ea8a109673f1@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox