Compile exploit from Kali running on M1 Mac

Hey,

I run Kali on my M1 Mac and yes, I like it because it’s freaking fast.

However, today my nightmare came true, when trying to compile a kernel exploit (for x86 as usual). I was googling for cross compilation, compiling within docker, … and a lot of solution, but none of them really turns out to work good. I knew that this problem will come, but I hoped to have a solution, which is easier.

I now ended up in installing an emulated x86 Kali.

Does anyone has a similar setup and is able to compile from his ARM machine?