Hello everyone,
I'm attempting to compile a custom kernel on my Dell XPS 13 9370 running Debian, but I've hit a wall with an error that I can't seem to resolve.
I reviewed the build log and found the error occurs near the end, after the archiving (AR) process, but I couldn't identify the exact cause. The log ends with:
I made sure to install all build dependencies for the Linux kernel:
Verified that ar, gcc, make, and other essential tools are installed and up-to-date.
Configured the Kernel:
I used make localmodconfig to generate an initial .config file.
I then manually edited the .config to further optimize it for my hardware (e.g., reducing CONFIG_NR_CPUS, disabling unnecessary drivers and modules).
Compiling the Kernel:
I attempted to compile the kernel using the following command:The compilation process fails with the following error:Troubleshooting Steps I've Taken:
Cleaned the Build Environment:
I ran make clean and even make mrproper to ensure there were no leftover files causing issues.
Re-ran make oldconfig to reconfigure the kernel after cleaning.
Ensured Sufficient Resources:
I confirmed there is enough disk space and memory available during the build process.
Tried Compiling Without Packaging:
I attempted to compile the kernel without creating Debian packages:The same error occurs.
System Information:
Laptop: Dell XPS 13 9370
OS: Debian 12 (Bookworm)
Kernel Version: Linux 6.1 (Custom Configuration)
I’ve exhausted my knowledge and troubleshooting steps. Could anyone provide guidance on how to resolve this error or further steps I should take to diagnose the problem? If more information or logs are needed, I’m happy to provide them.
Thanks in advance for your help!
I'm attempting to compile a custom kernel on my Dell XPS 13 9370 running Debian, but I've hit a wall with an error that I can't seem to resolve.
I reviewed the build log and found the error occurs near the end, after the archiving (AR) process, but I couldn't identify the exact cause. The log ends with:
Code:
make: *** [Makefile:2034: .] Erro 2
Code:
sudo apt-get build-dep linuxsudo apt-get install build-essential binutils libncurses5-dev libelf-dev libssl-dev flex bison
Configured the Kernel:
I used make localmodconfig to generate an initial .config file.
I then manually edited the .config to further optimize it for my hardware (e.g., reducing CONFIG_NR_CPUS, disabling unnecessary drivers and modules).
Compiling the Kernel:
I attempted to compile the kernel using the following command:
Code:
make -j$(nproc) bindeb-pkg
Code:
.... CC kernel/iomem.o CC kernel/rseq.o UPD kernel/config_data GZIP kernel/config_data.gz CC [M] kernel/configs.o AR mm/built-in.a AR kernel/built-in.amake: *** [Makefile:2034: .] Erro 2
Cleaned the Build Environment:
I ran make clean and even make mrproper to ensure there were no leftover files causing issues.
Re-ran make oldconfig to reconfigure the kernel after cleaning.
Ensured Sufficient Resources:
I confirmed there is enough disk space and memory available during the build process.
Tried Compiling Without Packaging:
I attempted to compile the kernel without creating Debian packages:
Code:
make -j$(nproc)
System Information:
Laptop: Dell XPS 13 9370
OS: Debian 12 (Bookworm)
Kernel Version: Linux 6.1 (Custom Configuration)
I’ve exhausted my knowledge and troubleshooting steps. Could anyone provide guidance on how to resolve this error or further steps I should take to diagnose the problem? If more information or logs are needed, I’m happy to provide them.
Thanks in advance for your help!
Statistics: Posted by lcsavb — 2024-08-21 18:39 — Replies 0 — Views 1