Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823350 - net-wireless/rtl8192eu compiles against running kernel version
Summary: net-wireless/rtl8192eu compiles against running kernel version
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-12 11:10 UTC by Pacho Ramos
Modified: 2021-11-12 13:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2021-11-12 11:10:45 UTC
Hello,

Please note this is not a regression as I also saw it with the older snapshot but I couldn't understand what was happening.

After compiling the a new kernel and updating the link, I saw that rtl8192eu was being compiled against the old kernel and, as a consequence, after booting in the new one, module fails to load:
nov 12 12:04:16 dell-2017 kernel: 8192eu: version magic '5.10.75-gentoo SMP preempt mod_unload ' should be '5.10.78-gentoo SMP preempt mod_unload '

In the build.log I can see it:
 * Package:    net-wireless/rtl8192eu-0_pre20211023
 * Repository: guru
 * Maintainer: abbat.2008@gmail.com
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   ccache compressdebug network-sandbox preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     5.10.78-gentoo
 * Checking for suitable kernel configuration options...
 *   The RTL8XXXXU module is enabled in the kernel; it conflicts with this module.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Unpacking rtl8192eu-0_pre20211023.tar.gz to /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work
>>> Source unpacked in /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work
>>> Preparing source in /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2 ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing 8192eu module
make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' all 
make ARCH=x86 CROSS_COMPILE=x86_64-pc-linux-gnu- -C /lib/modules/5.10.75-gentoo/build M=/var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2  modules
make[1]: Entering directory '/usr/src/linux-5.10.75-gentoo'
  CC [M]  /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2/core/rtw_cmd.o
  CC [M]  /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2/core/rtw_security.o
  CC [M]  /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2/core/rtw_debug.o
  CC [M]  /var/tmp/portage/net-wireless/rtl8192eu-0_pre20211023/work/rtl8192eu-linux-driver-744bbe52976e51895fce2c1d4075f97a98dca2b2/core/rtw_io.o
Comment 1 Pacho Ramos gentoo-dev 2021-11-12 11:18:51 UTC
You need to set:
BUILD_PARAMS="KSRC=${KERNEL_DIR}"

That works
Comment 2 Alexander 2021-11-12 12:35:53 UTC
(In reply to Pacho Ramos from comment #1)
> You need to set:
> BUILD_PARAMS="KSRC=${KERNEL_DIR}"
> 
> That works

Thank you for noticing this. This is because the Makefile says
KVER: = $ (shell uname -r)
KSRC: = / lib / modules / $ (KVER) / build
the path to the modules of the currently loaded kernel is taken.
I'll fix it now.
Comment 3 Pacho Ramos gentoo-dev 2021-11-12 12:52:03 UTC
Apart from that, the new version works fine for me, maybe it could be added to the main guru repo (from dev branch)

Thanks!
Comment 4 Alexander 2021-11-12 13:12:14 UTC
(In reply to Pacho Ramos from comment #3)
> Apart from that, the new version works fine for me, maybe it could be added
> to the main guru repo (from dev branch)
> 
> Thanks!

It usually takes a few days, you need to wait a little.
Comment 5 Pacho Ramos gentoo-dev 2021-11-12 13:19:55 UTC
Ah fine, thanks for the info