How can I speed up the build process?

  • Use -j switch to enable parallel builds
  • Use local mirror to avoid downloads (advanced build options)
    CONFIG_LOCALMIRROR="file:///home/username/mirror
  • use local feeds (src-link) instead of downloading with git

:!: Build may FAIL

The build process can be accelerated by running multiple concurrent job processes using the -j-option:

make -j 3
  • Use the standard formula <your number of CPU cores + 1>
  • If this produces random build errors try compiling again without the -j-option

If the build fails with errors that include [s-attrib] Killed and [all-gcc] Error 2 while compiling gcc, this indicates you are out of disk space or RAM. This could be likely if you are building within a virtual machine with < 1 GB RAM allocated and no swap.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2021/10/15 08:26
  • by bobafetthotmail