I am trying to compile a Linux kernel version (linux-22.214.171.124) for my Debian machine.
The first step was to create a configuration file (.config) by typing:
The issue was caused because of a development environment variable in my O.S setting ARCH to be i386 (that was required for running some infrastructure in our office). Since my kernel runs in a 64-bit processor and xconfig relies on a variable with the same name, the resulting .config file was being generated for a 32-bit architecture, and so was the whole compilation process. In the end, this was causing the installation error (which is indeed expected).