User Tools

Site Tools


faq:how_can_i_speed_up_build_process

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

Building on multi-core CPU

:!: 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

Errors building gcc

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
faq/how_can_i_speed_up_build_process.txt · Last modified: 2019/09/11 15:36 by tmomas