* Applying r8152-2.16.3-kernel-6.4.10-fix.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/r8152-2.16.3/work/r8152-2.16.3 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/r8152-2.16.3/work/r8152-2.16.3 ... ln: failed to create symbolic link 'Module.symvers': File exists * Preparing r8152 module make -j5 HOSTCC=clang 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux CONFIG_CTAP_SHORT=on modules ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd_clang-20230816-200327 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 16.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/16 16.0.6+libcxx Python 3.11.4 Available Ruby profiles: [1] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.71.1 [2] rust-1.71.1 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17] 2) Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 system-vm php cli (if any): go version go1.21.0 linux/amd64 HEAD of ::gentoo commit c8b75203f87b1f7e628b5f34b8a6abab8c063e2f Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Aug 18 04:46:39 2023 +0000 2023-08-18 04:46:38 UTC emerge -qpvO net-misc/r8152 [ebuild N ] net-misc/r8152-2.16.3 USE="center-tap-short -dist-kernel"
Created attachment 868157 [details] emerge-info.txt
Created attachment 868158 [details] emerge-history.txt
Created attachment 868159 [details] environment
Created attachment 868160 [details] etc.clang.tar.xz
Created attachment 868161 [details] etc.portage.tar.xz
Created attachment 868162 [details] net-misc:r8152-2.16.3:20230818-053526.log
Created attachment 868163 [details] temp.tar.xz
This is interesting. Looks like it's using gcc for the build even though you have clang configured: make -C /usr/src/linux M=/var/tmp/portage/net-misc/r8152-2.16.3/work/r8152-2.16.3 modules warning: the compiler differs from the one used to build the kernel The kernel was built by: clang version 16.0.6 You are using: x86_64-pc-linux-gnu-gcc (Gentoo 13.2.0 p3) 13.2.0 CC [M] /var/tmp/portage/net-misc/r8152-2.16.3/work/r8152-2.16.3/r8152.o x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’ Can you try to reproduce with -r1? It uses the new eclass and may resolve the issue. This ebuild is soon to be removed.
I've been informed linux-mod-r1, which the current ebuilds use, fix this.