* Package: net-misc/ena-driver-2.6.1 * Repository: gentoo * Maintainer: dilfridge@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: 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.16.11-gentoo-dist * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking ena-driver-2.6.1-linux.tar.gz to /var/tmp/portage/net-misc/ena-driver-2.6.1/work >>> Source unpacked in /var/tmp/portage/net-misc/ena-driver-2.6.1/work >>> Preparing source in /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena ... ln: failed to create symbolic link 'Module.symvers': File exists * Preparing ena module make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' CONFIG_MODULE_SIG=n KERNEL_DIR=/usr/src/linux all make -C /usr/src/linux M=/var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena modules make[1]: Entering directory '/usr/src/linux-5.16.11-gentoo-dist' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-pc-linux-gnu-gcc (Gentoo 11.2.0 p1) 11.2.0 You are using: x86_64-pc-linux-gnu-gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115 CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_netdev.o CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_ethtool.o CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_lpc.o CC [M] /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/dim.o /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_ethtool.c:1072:35: 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] 1072 | .get_coalesce = ena_get_coalesce, | ^~~~~~~~~~~~~~~~ compilation terminated due to -Wfatal-errors. cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:287: /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena/ena_ethtool.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:1846: /var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena] Error 2 make[1]: Leaving directory '/usr/src/linux-5.16.11-gentoo-dist' make: *** [Makefile:41: all] Error 2 * ERROR: net-misc/ena-driver-2.6.1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/ena-driver-2.6.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/ena-driver-2.6.1::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:ena-driver-2.6.1:20220305-011553.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/ena-driver-2.6.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/ena-driver-2.6.1/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena' * S: '/var/tmp/portage/net-misc/ena-driver-2.6.1/work/amzn-drivers-ena_linux_2.6.1/kernel/linux/ena'