Bug 14601 - Python build fails on 2022.02-rc2
Summary: Python build fails on 2022.02-rc2
Status: RESOLVED NEEDINFO
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-23 14:23 UTC by HiFiBerry (Daniel)
Modified: 2022-09-18 12:10 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HiFiBerry (Daniel) 2022-02-23 14:23:23 UTC
Just trying the 2022.02 release. When building Python the install step fails:

python3: installs files in /home/matuschd/buildroot-4/target//home/matuschd/buildroot-4
make[1]: *** [package/pkg-generic.mk:389: /home/matuschd/buildroot-4/build/python3-3.10.2/.stamp_target_installed] Error 1

It seems that the install path isn't handled correctly - probably when using the O= build option
Comment 1 Arnout Vandecappelle 2022-02-23 19:23:10 UTC
I used this defconfig:

BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_PACKAGE_PYTHON3=y


and

make O=/var/tmp/python

finishes without error.

This is with current master, but there are no relevant changes since 2022.02-rc2.
Comment 2 HiFiBerry (Daniel) 2022-02-24 06:35:11 UTC
Might not have to do with the -O option (that was just a guess), but the install path is clearly incorrect. 

My config here is quite complex and uses lots of additional stuff. However, it was working fine up to 2021.11

Any recommendation how to go on debugging this?
Comment 3 Peter Seiderer 2022-02-24 21:20:54 UTC
(In reply to HiFiBerry (Daniel) from comment #2)

Identify the files installed under '/home/matuschd/buildroot-4/target//home/matuschd/buildroot-4'...

Provide a config or defconfig (best a minimal one) reproducing the failure against a plain buildroot version (or git master)...

Does it happen only in case of an complete build or does

    $ make clean; make python3

show the same failure?

Anything special about your build host?
Comment 4 Thomas Petazzoni 2022-09-18 12:10:52 UTC
Not enough information provided to reproduce the bug, and python3 builds fine for everyone else.