Hi folks, recently I tried to build a pc-kernel snap myself. To test out before customizing the default one, I did the following to clone the stock kernel repo and try to build it:
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git --branch master --single-branch
Everything seems fine until the message below shows up:
CC [M] kernel/torture.o
CC [M] kernel/kheaders.o
Sorry, an error occurred in Snapcraft:
Failed to run ‘make -j4 bzImage modules’ for ‘kernel’: Exited with code 2.
Verify that the part is using the correct parameters and try again.
I tried on both VMWare - Ubuntu 20.04 & 16.04 multiple times. The build just failed at the same point with the same error message.
Not sure if anyone meets this issue before, appreciated it if someone can shed some light on this, thanks!