KBEA-00037 - Understanding the sub make problem

Summary

When running a build, there are scripts that invoke Electric Make. The command appears to return immediately without doing anything and is always successful. Any code relying on the results of the commands that are supposed to be run fail because the output is not there.

Solution

This is called the sub make problem, which is caused by Electric Make's scheduling the commands to be run in parallel on other machines, just as it would for direct recursive make invocations. To work around this, set EMAKE_BUILD_MODE to local in the script that invokes Electric Make. This way, the commands are executed on the node directly, and the return code from the make command correctly represents the result of the make invocation.

Applies to

  • Product versions: All
  • OS versions: All
Have more questions? Submit a request

Comments

Powered by Zendesk