Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701678 - stage3 tarball should include app-arch/cpio or kernel compiling fails
Summary: stage3 tarball should include app-arch/cpio or kernel compiling fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-01 15:11 UTC by Marko Weber Bürgermeister
Modified: 2024-02-18 21:54 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vanilla-sources config (config,123.44 KB, text/plain)
2019-12-02 18:15 UTC, Marko Weber Bürgermeister
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Weber Bürgermeister 2019-12-01 15:11:06 UTC
if you take the actual stage3 and come to the point to build kernel,
the kernel compiles at stops without error.
if you emerge cpio "before" kernel compiling runs to end without failure.
so, actual stage3 misses cpio

marko
Comment 1 Jonas Stein gentoo-dev 2019-12-01 17:46:35 UTC
which exact package did you use to compile the kernen?
genkernel depends on cpio, sys-kernel/gentoo-sources does not.

https://qa-reports.gentoo.org/output/genrdeps/rindex/app-arch/cpio
Comment 2 Jonas Stein gentoo-dev 2019-12-01 17:53:36 UTC
And please recompile and 
*attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Comment 3 Ben Kohler gentoo-dev 2019-12-02 14:07:47 UTC
Are you using a kernel config which specifies a cpio archive or dir for built-in initramfs?

Most people can build a kernel just fine without cpio.
Comment 4 Marko Weber Bürgermeister 2019-12-02 17:37:18 UTC
(In reply to Jonas Stein from comment #1)
> which exact package did you use to compile the kernen?
> genkernel depends on cpio, sys-kernel/gentoo-sources does not.
> 
> https://qa-reports.gentoo.org/output/genrdeps/rindex/app-arch/cpio

i used  vanilla-sources
Comment 5 Marko Weber Bürgermeister 2019-12-02 17:40:05 UTC
(In reply to Jonas Stein from comment #2)
> And please recompile and 
> *attach* the logfiles and 
> paste the emerge info as described on
> https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
> We need to have all information at hand before ticket assignment, so that
> the maintainer can look after it in one session with minimal number of
> callbacks.

finally i could compile vanilla-sources , after emerge cpio.
i can do recompile and if theres a compile log i can attach.
But i dont know if a  "make -j8 && make -j8 modules_install" leaves a log..
Comment 6 Ben Kohler gentoo-dev 2019-12-02 17:40:48 UTC
Please attach your .config
Comment 7 Marko Weber Bürgermeister 2019-12-02 18:15:03 UTC
Created attachment 598290 [details]
vanilla-sources config

vanilla sources kernel config
Comment 8 Ben Kohler gentoo-dev 2019-12-02 19:42:19 UTC
I think we will need to see that kernel build log too
Comment 9 Ben Kohler gentoo-dev 2019-12-03 18:03:34 UTC
  GEN     kernel/kheaders_data.tar.xz
./kernel/gen_kheaders.sh: line 61: cpio: command not found
make[1]: *** [kernel/Makefile:133: kernel/kheaders_data.tar.xz] Error 127
Comment 10 Ben Kohler gentoo-dev 2019-12-03 18:05:33 UTC
This is caused by CONFIG_IKHEADERS=m

I've never seen someone enable this.  Frankly, I don't think we should add cpio to @system or to *-sources deps, just for this corner case.

You can emerge it if you want it.
Comment 11 coran.fisher@gmail.com 2020-05-28 01:29:57 UTC
Thank you for reporting this.  Finding this bug helped me solve an install issue.  I had no idea it was cpio it was depending on but sure enough.
Comment 12 Maxim P. Dementiev 2020-08-09 21:52:27 UTC
This bug report helped me to fix the same issue. Thanks!
Comment 13 brho 2020-11-29 15:51:19 UTC
+1 on the "this bug helped me fix the same problem".  i was using gentoo-sources.

it wouldn't surprise me if there were other dependencies that pop up, based on the kernel config.  would the handbook be a good place to collect this sort of info?  arguably, search engines + this bug report were enough for me in this case.
Comment 14 NQS 2020-12-25 23:14:43 UTC
+1 more on fixing issue.  dunno why I selected that in the first place.
Comment 15 Ben Kohler gentoo-dev 2020-12-26 13:20:44 UTC
Perhaps someone can collect a list of the possible dependencies for various kernel build features and we can display them in pkg_postinst of kernel source packages.

I do not believe we need to add these things in @system (for stage3)