CreatorDev / lede-source

Ci40 LEDE port (pre-alpha)
GNU General Public License v2.0
1 stars 2 forks source link

Package failures non-deterministic #16

Open Ham22 opened 7 years ago

Ham22 commented 7 years ago

Currently we run a full package build with something like this because multi-threaded builds some times fail so we give it another chance single threaded: make -j8 IGNORE_ERRORS=m || make -j1 IGNORE_ERRORS=m V=s

The problem is that depending on when the multithread build fails we have seen that different numbers of packages are being built successfully even on the same code base.

Ham22 commented 7 years ago

Perhaps a solution is to run this sequence of events for a build:

  1. make -j8 IGNORE_ERRORS=m
  2. grep log for failed packages
  3. for each failed package make -j1 package/<package>/{compile,install} (even if one fails)
  4. make package/index