jakeday / linux-surface

Linux Kernel for Surface Devices
2.59k stars 242 forks source link

Compiling kernel built-in.a Error 2 #678

Closed HappyAshes closed 3 years ago

HappyAshes commented 3 years ago

Hi, I'm on a Surface Book 2 and currently using linux-surface kernel v5.12.12 on Debian 10.10, and I'm trying to build a new one with Preempt Real-Time patch for real-time audio purposes, my system is running great on the linux-surface kernel.

My error is the following: AR arch/x86/kernel/built-in.a make[3]: *** [Makefile:1859: arch/x86] Error 2 make[2]: *** [debian/rules:7: build-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2 make: *** [Makefile:1587: bindeb-pkg] Error 2

I'm using kernel v5.12.13 right now but I already tried v5.12.12 with the same output, I'm tried a fresh config and merged it with the one from this repo, but currently I'm using the .config file from my linux-surface kernel, and using make oldconfig to match it to the current version.

In both cases, the error is the same, by same I mean its always on a file named "built-in.a", here it was 20 seconds in making it but can happen in 2 minutes of building, and the folder change everytime, it can also happen with fs/built-in.a, drivers/built-in.a, audio/built-in.a, or wherever it doesn't want to.

Thanks in advance for your help, if you need anything else, please ask me