public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge consistently 'hangs' on kernel/gentoo-sources
@ 2023-12-17 14:17 Remco Rijnders
  2023-12-17 15:24 ` ralfconn
       [not found] ` <675d0538-292f-40de-95c0-44664161111a@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Remco Rijnders @ 2023-12-17 14:17 UTC (permalink / raw
  To: gentoo-user

Hi all,

I've tried googling and didn't get very far so am afraid this might not be a
common thing...

Since a number of months, emerge hangs when doing a upgrade as soon as it gets
to the package gentoo-sources:

>>> Installing (23 of 27) sys-kernel/gentoo-sources-6.1.67::gentoo
  * If you are upgrading from a previous kernel, you may be interested
  * in the following document:
  *   - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade
  * For more info on this patchset, and how to report problems, see:
  * https://dev.gentoo.org/~mpagano/genpatches
WARNING: Will unset existing variable 'TMPDIR' to avoid clashing with genkernel config ...
WARNING: Will unset existing variable 'CHOST' to avoid clashing with genkernel config ...
* Gentoo Linux Genkernel; Version 4.3.6
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --kernel-config=/etc/kernels/kernel-config-6.1.19-gentoo-x86_64 all

* Working with Linux kernel 6.1.67-gentoo for x86_64
* Using kernel config file '/etc/kernels/kernel-config-6.1.19-gentoo-x86_64' ...
*
* Note: The version above is subject to change (depends on config and status of kernel sources).

* kernel: >> Initializing ...
*         >> Running 'make mrproper' ...
*         >> Running 'make oldconfig' ...
*         >> Kernel version has changed (probably due to config change) since genkernel start:
*            We are now building Linux kernel 6.1.67-gentoo-x86_64 for x86_64 ...
*         >> Compiling 6.1.67-gentoo-x86_64 bzImage ...
*         >> Compiling 6.1.67-gentoo-x86_64 modules ...
*         >> Installing 6.1.67-gentoo-x86_64 modules (and stripping) ...
*         >> Generating module dependency data ...
*         >> Compiling out-of-tree module(s) ...

It is consistent every time and at the same point. It has been stuck there for
24 hours now. Pressing Ctrl-C takes me back to the command line with no error
indication. Computer load is low, and this is the process tree for emerge:

root     19590  0.0  0.0   7916  4264 pts/5    S    09:15   0:00  |           \_ bash
root     19936  0.6  1.9 322620 314152 pts/5   SN+  09:16   1:17  |               \_ /usr/bin/python3.11 /usr/lib/python-exec/python3.11/emerge --ask --update --newuse --de
ep @world
root      8996  0.1  1.8 324220 308860 pts/5   SN+  09:40   0:20  |                   \_ /usr/bin/python3.11 /usr/lib/python-exec/python3.11/emerge --ask --update --newuse
--deep @world
root      9142  0.0  0.0  10892  7148 pts/5    SN+  09:40   0:00  |                       \_ bash /usr/lib/portage/python3.11/ebuild.sh postinst
root      9153  0.0  0.0  10892  5992 pts/5    SN+  09:40   0:00  |                           \_ bash /usr/lib/portage/python3.11/ebuild.sh postinst
root      9196  0.0  0.0  12724  9024 pts/5    SN+  09:40   0:00  |                               \_ /bin/bash /usr/bin/genkernel --kernel-config=/etc/kernels/kernel-config
-6.1.19-gentoo-x86_64 all
root     31236  0.0  0.4  71804 67416 pts/5    SN+  10:03   0:00  |                                   \_ /usr/bin/python3.11 /usr/lib/python-exec/python3.11/emerge --ignore
-default-opts --buildpkg=n --usepkg=n --quiet-build=y @module-rebuild

Anyone has any ideas what might be wrong?


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

* Re: [gentoo-user] emerge consistently 'hangs' on kernel/gentoo-sources
  2023-12-17 14:17 [gentoo-user] emerge consistently 'hangs' on kernel/gentoo-sources Remco Rijnders
@ 2023-12-17 15:24 ` ralfconn
       [not found] ` <675d0538-292f-40de-95c0-44664161111a@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread
From: ralfconn @ 2023-12-17 15:24 UTC (permalink / raw
  To: gentoo-user

Il 17/12/23 15:17, Remco Rijnders ha scritto:
> Hi all,
>
> I've tried googling and didn't get very far so am afraid this might 
> not be a
> common thing...
>
> Since a number of months, emerge hangs when doing a upgrade as soon as 
> it gets
> to the package gentoo-sources:
>>>> Installing (23 of 27) sys-kernel/gentoo-sources-6.1.67::gentoo
>  * If you are upgrading from a previous kernel, you may be interested
>  * in the following document:
>  *   - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade
>  * For more info on this patchset, and how to report problems, see:
>  * https://dev.gentoo.org/~mpagano/genpatches
> WARNING: Will unset existing variable 'TMPDIR' to avoid clashing with 
> genkernel config ...
> WARNING: Will unset existing variable 'CHOST' to avoid clashing with 
> genkernel config ...
> * Gentoo Linux Genkernel; Version 4.3.6
> * Using genkernel configuration from '/etc/genkernel.conf' ...
> * Running with options: 
> --kernel-config=/etc/kernels/kernel-config-6.1.19-gentoo-x86_64 all
>
> * Working with Linux kernel 6.1.67-gentoo for x86_64
> * Using kernel config file 
> '/etc/kernels/kernel-config-6.1.19-gentoo-x86_64' ...
> *
> * Note: The version above is subject to change (depends on config and 
> status of kernel sources).
>
> * kernel: >> Initializing ...
> *         >> Running 'make mrproper' ...
> *         >> Running 'make oldconfig' ...
> *         >> Kernel version has changed (probably due to config 
> change) since genkernel start:
> *            We are now building Linux kernel 6.1.67-gentoo-x86_64 for 
> x86_64 ...
> *         >> Compiling 6.1.67-gentoo-x86_64 bzImage ...
> *         >> Compiling 6.1.67-gentoo-x86_64 modules ...
> *         >> Installing 6.1.67-gentoo-x86_64 modules (and stripping) ...
> *         >> Generating module dependency data ...
> *         >> Compiling out-of-tree module(s) ...
>
> It is consistent every time and at the same point. It has been stuck 
> there for
> 24 hours now. Pressing Ctrl-C takes me back to the command line with 
> no error
> indication. Computer load is low, and this is the process tree for 
> emerge:
>
> root     19590  0.0  0.0   7916  4264 pts/5    S    09:15   0:00  
> |           \_ bash
> root     19936  0.6  1.9 322620 314152 pts/5   SN+  09:16   1:17  
> |               \_ /usr/bin/python3.11 
> /usr/lib/python-exec/python3.11/emerge --ask --update --newuse --de
> ep @world
> root      8996  0.1  1.8 324220 308860 pts/5   SN+  09:40   0:20  
> |                   \_ /usr/bin/python3.11 
> /usr/lib/python-exec/python3.11/emerge --ask --update --newuse
> --deep @world
> root      9142  0.0  0.0  10892  7148 pts/5    SN+  09:40   0:00  
> |                       \_ bash /usr/lib/portage/python3.11/ebuild.sh 
> postinst
> root      9153  0.0  0.0  10892  5992 pts/5    SN+  09:40   0:00  
> |                           \_ bash 
> /usr/lib/portage/python3.11/ebuild.sh postinst
> root      9196  0.0  0.0  12724  9024 pts/5    SN+  09:40   0:00  
> |                               \_ /bin/bash /usr/bin/genkernel 
> --kernel-config=/etc/kernels/kernel-config
> -6.1.19-gentoo-x86_64 all
> root     31236  0.0  0.4  71804 67416 pts/5    SN+  10:03   0:00  | \_ 
> /usr/bin/python3.11 /usr/lib/python-exec/python3.11/emerge --ignore
> -default-opts --buildpkg=n --usepkg=n --quiet-build=y @module-rebuild
>
> Anyone has any ideas what might be wrong?
>
I don't use genkernel so just a guess. It looks like the kernel got 
build and installed but genkernel is stuck 'building out of tree 
module'. Maybe it is trying to fetch some code and not managing to? Try 
checking /var/log/emerge-fetch.log

raf



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

* Re: [gentoo-user] emerge consistently 'hangs' on kernel/gentoo-sources
       [not found] ` <675d0538-292f-40de-95c0-44664161111a@gmail.com>
@ 2023-12-17 16:58   ` Remco Rijnders
  0 siblings, 0 replies; 3+ messages in thread
From: Remco Rijnders @ 2023-12-17 16:58 UTC (permalink / raw
  To: Michael Cook, gentoo-user

Michael responded to me off list, and wrote:

On Sun, Dec 17, 2023 at 10:08:49AM -0500, Michael wrote in 
<675d0538-292f-40de-95c0-44664161111a@gmail.com>:
>I assume you have a script in /etc/portage/env/sys-kernel to build the
>kernel during normal emerge, this is getting stuck because genkernel 
>is calling another emerge instance and the hook is holding a lock. 
>genkernel needs to be called with --no-module-rebuild in that case, 
>then you need to manually call emerge @module-rebuild

I tried "genkernel --no-module-rebuild
--kernel-config=/etc/kernels/kernel-config-6.1.19-gentoo-x86_64 all" and this
did result in a succesful compilation. Doing an emerge afterwards finished
emerging the last four remaining packages. Will see if this fixes it going
forward as well!

Thank you all for the suggestions!


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

end of thread, other threads:[~2023-12-17 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17 14:17 [gentoo-user] emerge consistently 'hangs' on kernel/gentoo-sources Remco Rijnders
2023-12-17 15:24 ` ralfconn
     [not found] ` <675d0538-292f-40de-95c0-44664161111a@gmail.com>
2023-12-17 16:58   ` Remco Rijnders

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