* Package: net-misc/realtek-r8152-2.15.0 * Repository: gentoo * Maintainer: slashbeast@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * CONFIG_USB_USBNET needs to be built as module (builtin doesn't work) * CONFIG_USB_NET_CDC_NCM needs to be built as module (builtin doesn't work) * CONFIG_USB_NET_CDCETHER needs to be built as module (builtin doesn't work) * CONFIG_MII needs to be built as module or builtin into the kernel * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.15.1-gentoo-dist * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking realtek-r8152-2.15.0.tar.gz to /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work >>> Source unpacked in /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work >>> Preparing source in /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0 ... ln: failed to create symbolic link 'Module.symvers': File exists * Preparing r8152 module make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' CC=x86_64-pc-linux-gnu-gcc KERNELDIR=/usr/src/linux modules libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory Error: could not get list of modules: No such file or directory make -C /usr/src/linux M=/var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0 modules make[1]: Entering directory '/usr/src/linux-5.15.1-gentoo-dist' CC [M] /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0/r8152.o /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0/r8152.c:18530:25: error: initialization of ‘int (*)(struct net_device *, struct ethtool_coalesce *, struct kernel_ethtool_coalesce *, struct netlink_ext_ack *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_coalesce *)’ [-Werror=incompatible-pointer-types] 18530 | .get_coalesce = rtl8152_get_coalesce, | ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0/r8152.c:18530:25: note: (near initialization for ‘ops.get_coalesce’) /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0/r8152.c:18531:25: error: initialization of ‘int (*)(struct net_device *, struct ethtool_coalesce *, struct kernel_ethtool_coalesce *, struct netlink_ext_ack *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_coalesce *)’ [-Werror=incompatible-pointer-types] 18531 | .set_coalesce = rtl8152_set_coalesce, | ^~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0/r8152.c:18531:25: note: (near initialization for ‘ops.set_coalesce’) cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:277: /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0/r8152.o] Error 1 make[1]: *** [Makefile:1868: /var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0] Error 2 make[1]: Leaving directory '/usr/src/linux-5.15.1-gentoo-dist' make: *** [Makefile:24: modules] Error 2 * ERROR: net-misc/realtek-r8152-2.15.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/realtek-r8152-2.15.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/realtek-r8152-2.15.0::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:realtek-r8152-2.15.0:20211109-221320.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/realtek-r8152-2.15.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/realtek-r8152-2.15.0/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0' * S: '/var/tmp/portage/net-misc/realtek-r8152-2.15.0/work/realtek-r8152-2.15.0'