[FS#145] compile error using the switch "-j" (eq. -j8) in the > r1493 +

LEDE Bugs lede-bugs at lists.infradead.org
Sun Sep 4 15:23:20 PDT 2016


The following task has a new comment added:

FS#145 - compile error using the switch "-j" (eq. -j8) in the > r1493 +
User who did this - bobafetthotmail (bobafetthotmail)

----------
this is a known issue since OpenWRT times.

Last time I investigated this with a make V=s at various -j numbers it happens because the -j make does not build dependencies properly (reasons unknown), at random it may try to build a package it does not have built the dependency for yet, and then it fails.

My workaround is to call the make -j8 from a script in a loop, so that even if it randomly fails the script restarts building.

Of course if you hit a package that does not build because of other reasons, then this workaround would keep rebuilding forever, so it's probably a good idea to set the amount of retries to a finite number like say 100 to avoid an endless loop.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=145#comment372



More information about the lede-bugs mailing list