Closed alexminder closed 1 month ago
I wrote ebuild, but the compilation is not successful
make -j2 ARCH=x86 V=1 KBUILD_VERBOSE=1 CONFIG_WERROR= CONFIG_MODULE_SIG_ALL= CONFIG_MODULE_COMPRESS_GZIP= CONFIG_MODULE_COMPRESS_XZ= CONFIG_MODULE_COMPRESS_ZSTD= DEPMOD=true STRIP=true CROSS_COMPILE=x86_64-gentoo-linux-musl- HOSTCC=x86_64-gentoo-linux-musl-gcc HOSTCXX=x86_64-gentoo-linux-musl-g++ 'HOSTCFLAGS=-march=btver2 -O3 -Wl,-O1 -Wl,--as-needed' 'HOSTCXXFLAGS=-march=btver2 -O3 -Wl,-O1 -Wl,--as-needed' 'HOSTLDFLAGS=-Wl,-O1 -Wl,--as-needed' HOSTPKG_CONFIG=x86_64-gentoo-linux-musl-pkg-config CC=/usr/bin/x86_64-gentoo-linux-musl-gcc-13 CXX=/usr/bin/x86_64-gentoo-linux-musl-g++-13 LD=/usr/bin/x86_64-gentoo-linux-musl-ld.bfd AR=/usr/bin/x86_64-gentoo-linux-musl-gcc-ar NM=/usr/bin/x86_64-gentoo-linux-musl-gcc-nm OBJCOPY=/usr/bin/x86_64-gentoo-linux-musl-objcopy OBJDUMP=/usr/bin/x86_64-gentoo-linux-musl-objdump READELF=/usr/bin/x86_64-gentoo-linux-musl-readelf KERNELDIR=/usr/src/linux module make[1]: Entering directory '/usr/src/linux-6.6.47-gentoo-dist-hardened' make --no-print-directory -C /usr/src/linux-6.6.47-gentoo-dist-hardened \ -f /usr/src/linux-6.6.47-gentoo-dist-hardened/Makefile modules warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-gentoo-linux-musl-gcc (Gentoo Hardened 13.3.1_p20240614 p17) 13.3.1 20240614 You are using: x86_64-gentoo-linux-musl-gcc-13 (Gentoo Hardened 13.3.1_p20240614 p17) 13.3.1 20240614 make -f ./scripts/Makefile.build obj=/var/tmp/portage/net-vpn/amneziawg-linux-kernel-module-1.0.20240711/work/amneziawg-linux-kernel-module-1.0.20240711/src/generated need-builtin=1 need-modorder=1 scripts/Makefile.build:41: /var/tmp/portage/net-vpn/amneziawg-linux-kernel-module-1.0.20240711/work/amneziawg-linux-kernel-module-1.0.20240711/src/generated/Makefile: No such file or directory make[3]: *** No rule to make target '/var/tmp/portage/net-vpn/amneziawg-linux-kernel-module-1.0.20240711/work/amneziawg-linux-kernel-module-1.0.20240711/src/generated/Makefile'. Stop. make[2]: *** [/usr/src/linux-6.6.47-gentoo-dist-hardened/Makefile:1921: /var/tmp/portage/net-vpn/amneziawg-linux-kernel-module-1.0.20240711/work/amneziawg-linux-kernel-module-1.0.20240711/src/generated] Error 2 make[1]: *** [Makefile:234: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-6.6.47-gentoo-dist-hardened' make: *** [Makefile:93: module] Error 2
I wrote ebuild, but the compilation is not successful