Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.25k stars 157 forks source link

Odd Shell Error After Successful Installation #935

Open ThisNekoGuy opened 1 month ago

ThisNekoGuy commented 1 month ago

Describe the bug

I noticed that, after (re-)installing my kernel (6.8.9, which is also running at the time) that despite succeeding all the way to the end I got an "error 1" indicator in my shell for some reason. Confused, I checked the logs folder and the only thing I can imagine might have been the issue is a linker check in system-info.txt that failed for some reason due to a "permission denied" error.

AdelKS commented 1 month ago

Hello, please try again with latest linux-tkg commit to get the shell-output.log.txt file and attach it here.

ThisNekoGuy commented 1 month ago

shell-output.log.txt

AdelKS commented 1 month ago

It's failing at rebuilding the media-video/v4l2loopback module during emerge @module-rebuild, this is not a linux-tkg issue.

ThisNekoGuy commented 1 month ago

Thanks for clarifying; I don't recall it failing on my end (there was some at the end that wasn't appended to the log, for some reason, and I saw the usual install message) but I haven't seen anything else I could imagine it being :/

I could try running that part by hand when I have a moment later today/tonight to double check if it really fails though.

ThisNekoGuy commented 1 month ago

No, it does install; so that wouldn't make sense:

>>> Install media-video/v4l2loopback-0.13.1 into /var/tmp/portage/media-video/v4l2loopback-0.13.1/image
 * Stripping modules ...
 * Running /usr/lib/llvm/17/bin/x86_64-pc-linux-gnu-strip --strip-unneeded -- /var/tmp/portage/media-video/v4l2loopback-0.13.1/image/lib/modules/6.8.9-tkg-eevdf-gentoo-llvm-zen2/video/v4l2loopback.ko ...   [ ok ]
>>> Completed installing media-video/v4l2loopback-0.13.1 into /var/tmp/portage/media-video/v4l2loopback-0.13.1/image

 * Final size of build directory: 1328 KiB (1.2 MiB)
 * Final size of installed tree:   556 KiB

 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * v4l2loopback-ctl.c:773:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
 * v4l2loopback-ctl.c:1136:1: warning: non-void function does not return a value [-Wreturn-type]
 * /var/tmp/portage/media-video/v4l2loopback-0.13.1/work/v4l2loopback-0.13.1/v4l2loopback.c:1875:4: warning: variable 'index' is uninitialized when used here [-Wuninitialized]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: https://github.com/umlaeute/v4l2loopback

>>> Installing (2 of 2) media-video/v4l2loopback-0.13.1::gentoo
 * Updating module dependencies for kernel 6.8.9-tkg-eevdf-gentoo-llvm-zen2 ...
 * Running depmod -ae -F /lib/modules/6.8.9-tkg-eevdf-gentoo-llvm-zen2/build/System.map 6.8.9-tkg-eevdf-gentoo-llvm-zen2 ...                                                                                  [ ok ]

>>> Completed (2 of 2) media-video/v4l2loopback-0.13.1::gentoo
AdelKS commented 1 month ago

The install.sh simply calls emerge @module-rebuild, no extra magic. maybe you have a different kernel selected in equery kernel list

ThisNekoGuy commented 1 month ago

Just checked; no, I don't have a different one selected:

Available kernel symlink targets:
  [1]   linux-6.6.28-tkg-pds-gentoo-llvm-zen2
  [2]   linux-6.7.12-tkg-pds-gentoo-llvm-zen2
  [3]   linux-6.8.9-gentoo-dist
  [4]   linux-6.8.9-tkg-eevdf-gentoo-llvm-zen2 *
AdelKS commented 1 month ago

No idea then, you probably won't be able to reproduce this error next time you compile a kernel.

ThisNekoGuy commented 1 month ago

How is that the case when I reproduced it twice in a row so far? (Initially, then again to collect the log)