Skip to content
Advertisement

ld: Final link Failed: Memory exhausted while building Linux kernel 5.8.9

I am trying to compile Linux Kernel 5.8.9 on Ubuntu 16.04 installed on VirtualBox ( specifications: 22 + 3 GB, Memory : 2 GB). After successfully making the .config file using make menuconfig, I compiled it using make. The compilation ran for around 100 minutes and stopped abruptly displaying error memory exhausted. How can I remove this error?

Advertisement

Answer

As suggested by Giuseppe, add a swap area to the Linux installation with a suitable Swapify value(default is 60, which works for most of the cases). Further instructions for adding a swap area can be found here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement