Bug 12446

Summary: Buildroot fails to finish installing packages
Product: buildroot Reporter: TheComputerGuy <spaceboyross>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: 2020.02   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description TheComputerGuy 2020-01-05 02:01:09 UTC
I'm using a forked version of Buildroot for my OS called ExpidusOS (https://github.com/ExpidusOS). After SDDM is installed, Make fails to create the `.stamp_target_installed` file. Then it works at xfont_font-misc-misc package but fails when installing Linux. This is the output:

>>> xapp_xkbcomp 1.4.2 Installing to target
PATH="/home/ross/ExpidusOS/buildroot/output/host/bin:/home/ross/ExpidusOS/buildroot/output/host/sbin:/home/ross/Applications/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/emscripten:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ross/.gem/ruby/2.6.0/bin:/opt/toolchains/dc/sh-elf/bin:/opt/toolchains/dc/bin:/opt/toolchains/dc/kos/utils/gnu_wrappers:/home/ross/.gem/ruby/2.6.0/bin:/opt/toolchains/dc/sh-elf/bin:/opt/toolchains/dc/bin:/opt/toolchains/dc/kos/utils/gnu_wrappers"  /usr/bin/make -j5 DESTDIR=/home/ross/ExpidusOS/buildroot/output/target install -C /home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2/
make[1]: Entering directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2'
Making install in man
make[2]: Entering directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2/man'
make[3]: Entering directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2/man'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/home/ross/ExpidusOS/buildroot/output/target/usr/share/man/man1'
 /usr/bin/install -c -m 644 xkbcomp.1 '/home/ross/ExpidusOS/buildroot/output/target/usr/share/man/man1'
make[3]: Leaving directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2/man'
make[2]: Leaving directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2/man'
make[2]: Entering directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2'
make[3]: Entering directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2'
 /usr/bin/mkdir -p '/home/ross/ExpidusOS/buildroot/output/target/usr/bin'
 /usr/bin/mkdir -p '/home/ross/ExpidusOS/buildroot/output/target/usr/lib/pkgconfig'
 /usr/bin/install -c -m 644 xkbcomp.pc '/home/ross/ExpidusOS/buildroot/output/target/usr/lib/pkgconfig'
  /usr/bin/install -c xkbcomp '/home/ross/ExpidusOS/buildroot/output/target/usr/bin'
make[3]: Leaving directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2'
make[2]: Leaving directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2'
make[1]: Leaving directory '/home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2'
xapp_xkbcomp: installs files in /home/ross/ExpidusOS/buildroot/output/target//home/ross/ExpidusOS/buildroot/output
make: *** [package/pkg-generic.mk:360: /home/ross/ExpidusOS/buildroot/output/build/xapp_xkbcomp-1.4.2/.stamp_target_installed] Error 1
Comment 1 Yann E. MORIN 2020-01-05 08:40:28 UTC
> I'm using a forked version of Buildroot

We can't be responsible for all the forks around there,
that's not sustainable.

If you can provide a defconfig that exhibits the issue
with the official Buildroot, please re-open this bug and
provide your defconfig.
Comment 2 TheComputerGuy 2020-01-05 20:10:43 UTC
I haven't changed much in my fork besides adding packages, updating startup-notification, changing some defaults like the init system and libc, and changing the os-release file. This bug occurs on the pc_x86_64_bios_defconfig.
Comment 3 Yann E. MORIN 2020-01-05 20:34:46 UTC
> This bug occurs on the pc_x86_64_bios_defconfig

pc_x86_64_bios_defconfig does not have xapp_xkbcomp enabled, so
I can't reproduce your failure.

> I haven't changed much in my fork besides adding packages,
> updating startup-notification, changing some defaults like
> the init system and libc

That's already a lot of changes! :-/

Please, try to reproduce on the upstream Buildroot, and provide us
with a defconfig that exhibits the problem, or we won't be able to
reproduce and help.

If it does not fail on upstream buildroot, then it's a change in
your fork that causes the issue.
Comment 4 TheComputerGuy 2020-01-05 20:49:00 UTC
The problem exists in the package/pkg-generic.mk file at line 360. I'm using the commit https://git.buildroot.net/buildroot/commit/?id=88f79481878c7adf9642e208c72dea7fe367bee8, look at the commit history for the file I mentioned and I haven't changed it so this is an upstream issue.
Comment 5 TheComputerGuy 2020-01-05 21:01:34 UTC
https://gist.github.com/RossComputerGuy/4d023304f3a33eeb02cc1a04a9d4e5bc I uploaded the config file as a gist, try it and you'll see that my issue occurs.
Comment 6 Yann E. MORIN 2020-01-06 17:17:13 UTC
> https://gist.github.com/RossComputerGuy/4d023304f3a33eeb02cc1a04a9d4e5bc

As I expected, that config file builds perfectly well in upstream
Buildroot.

> try it and you'll see that my issue occurs.

I am sorry, but you have still failed to provide a way to reproduce
your issue on upstream Buildroot, and thus I am no longer going to
spend any time on this build report.

Please, please, try on *your* side to reproduce with upstream
Buildroot. If you can't reproduce, it is a problem with the changes
you did in your fork.

Note that if you want to help update some components versions, you
can send patches to that effect, and we can then help iron out the
issues on the patches.
Comment 7 TheComputerGuy 2020-01-10 07:57:49 UTC
I got this issue again and it happened when I enabled switch_root in util-linux