I am trying to compile the kernel using the instructions here, but the compilation process breaks and I do not understand the error. The only deviation I do from the build steps is that I skip the secure boot steps, which I disabled on my laptop anyways.
My exact steps were:
fedpkg clone -a kernel
cd kernel
git switch f43
fedpkg local
The build process runs for a while, but then I get this error:
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/.str_error_r.o.d: No such file or directory
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/.cpu.o.d: No such file or directory
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/.debug.o.d: No such file or directory
make[4]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:86: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/cpu.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Build:9: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/str_error_r.o] Error 1
make[4]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:86: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/debug.o] Error 1
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fd/.array.o.d: No such file or directory
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fs/.fs.o.d: No such file or directory
make[5]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:86: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fd/array.o] Error 1
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fs/.tracing_path.o.d: No such file or directory
make[5]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:86: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fs/fs.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:142: fd] Error 2
make[5]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:86: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fs/tracing_path.o] Error 1
cat: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fs/.cgroup.o.d: No such file or directory
make[5]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:86: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/fs/cgroup.o] Error 1
make[4]: *** [/home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/build/Makefile.build:142: fs] Error 2
make[3]: *** [Makefile:75: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/libapi-in.o] Error 2
make[2]: *** [Makefile.perf:954: /home/farhan/kernel/kernel-6.17.13-build/kernel-6.17.13/linux-6.17.13-300.fc43.x86_64/tools/perf/libapi/libapi.a] Error 2
make[1]: *** [Makefile.perf:289: sub-make] Error 2
make: *** [Makefile:76: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.88yUSq (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.88yUSq (%build)
I have tried this in a clean build directory.
I earlier installed the following dependencies:
sudo dnf builddep kernel.spec
sudo dnf install qt3-devel libXi-devel gcc-c++
I am on a clean F43 from less than 24 hours ago.
My over-all goal is to modify the ath9k kernel module with printk statements, but that can wait for now.
Stuck…thank you in advance!