<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 2012年05月17日 20:02, Jason Wessel wrote:
    <blockquote cite="mid:4FB4E8D7.2020808@windriver.com" type="cite">
      <pre wrap="">On 05/16/2012 09:01 PM, Xiaofeng Yan wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On 2012年05月16日 19:02, Saul Wold wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On 05/16/2012 01:10 PM, <a class="moz-txt-link-abbreviated" href="mailto:xiaofeng.yan@windriver.com">xiaofeng.yan@windriver.com</a> wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">From: Xiaofeng Yan<a class="moz-txt-link-rfc2396E" href="mailto:xiaofeng.yan@windriver.com">&lt;xiaofeng.yan@windriver.com&gt;</a>

Ncurses failure non-gplv3 build by race issue. So disable parallel \
make when building this package.

</pre>
          </blockquote>
          <pre wrap="">This is not the best approach as you disable PARALLEL_MAKE for both 
non-gplv3 and gplv3 versions. Further, we want to get rid of [M1] 
setting as much as possible, so this patch is not helping that.

Did you try running on a large many core machine? It might help if you 
have some other builds going also to stress the machine.

Sau!
</pre>
        </blockquote>
        <pre wrap="">Thanks for your reply. The most cores I have are eight. I also set 
PARALLEL_MAKE=j1000 and 10000. I think I need try to find new way for 
fixing bugs.

</pre>
      </blockquote>
      <pre wrap="">
Do you have an error file from a failed build (and ideally the failed build directory)?  Having diagnosed many problems like this in the past, it is easiest to look for the failure case and add some sleep statement in the Makefile to get it to trigger every time in the same way. 
</pre>
    </blockquote>
    Hi jason,<br>
    The failed build information is in
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=2298"
      style="color: rgb(51, 51, 51); font-family: Verdana, sans-serif;
      font-size: 17px; font-style: normal; font-variant: normal;
      font-weight: bold; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(208, 208,
      208); "><b>Bug 2298</b></a>.  The error appear in the stage of
    install, not configure and compiling.<br>
    Do you any ideas after reading bug information?<br>
    <br>
    Thanks<br>
    Yan<br>
    <span style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif;
      font-size: 17px; font-style: normal; font-variant: normal;
      font-weight: bold; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(208, 208,
      208); display: inline !important; float: none; "><span
        class="Apple-converted-space"><br>
      </span></span><br>
    <br>
    <blockquote cite="mid:4FB4E8D7.2020808@windriver.com" type="cite">
      <pre wrap="">
The two most common problems are:
  1) autoconf re-runs due to time stamps or partially patched files
  2) a generated file is reported as missing

In the first case it, it will often be some error with a .h missing or some other strange error about a header in the compilation and it is a result of only having a partial file because it is getting regenerated at the time.

In the second case you just find the file's rule in the Makefile and add an if statement in the Make target goal if it is a multi-object rule to look for the problem object and sleep a bit.  I have yet to see a case I couldn't reproduce the results by following the strategy of some forcing some extra delay.  You probably won't have to go to this length, but there was one time I even wrote a C wrapper around a command to add some sleep controlled by an environment variable to prove config.h was getting removed and regenerated.   Example:

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;unistd.h&gt;

int main(int argc, char *const argv[]) {
   char *lookfor;
   if (argc &gt;= 2) { 
     lookfor = getenv("LOOKFORSLEEP");
     if (lookfor &amp;&amp; strcmp(argv[1], lookfor) == 0) {
         if (argc &gt;= 3 &amp;&amp; strcmp(argv[2], "config.h") == 0) {
            unlink("config.h");
            printf("Special sleep on command %s\n", lookfor);
            sleep(2);
         }
     }
   }
   execv("/bin/sh", argv);
   return 0;
}


Best of luck,
Jason.

</pre>
    </blockquote>
    <br>
  </body>
</html>