<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Builder llvm-mips-linux "make check" LLVM-Unit::MCJITTest.return_global failure"
   href="http://llvm.org/bugs/show_bug.cgi?id=16250">16250</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Builder llvm-mips-linux "make check" LLVM-Unit::MCJITTest.return_global failure
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dgilmore@mips.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Recent changes broke LLVM "make check" for Builder llvm-mips-linux.

The following tests files:

LLVM-Unit::MCJITTest.return_global
LLVM-Unit::MCJITTest.multiple_functions

One issue that slowed down the analysis of the issue was reproducing the
problem in isolation, Note that running just ExecutionEngine portion of
"make check" did not report the problem:

$ /usr/bin/python /home/dgilmore/llvm-pp2/llvm/utils/lit/lit.py -s -v
ExecutionEngine
-- Testing: 115 tests, 6 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Testing Time: 2.56s
  Expected Passes    : 107
  Expected Failures  : 8
$

It wasn't apparent how the test was run.

Adding the following patch:


diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
index 8417699..e9b15f8 100644
--- a/utils/lit/lit/TestRunner.py
+++ b/utils/lit/lit/TestRunner.py
@@ -26,6 +26,7 @@ kAvoidDevNull = kIsWindows
 def executeCommand(command, cwd=None, env=None):
     # Close extra file handles on UNIX (on Windows this cannot be done while
     # also redirecting input).
+    print command
     close_fds = not kIsWindows

     p = subprocess.Popen(command, cwd=cwd,

I was able to determine the failing commands:

$
/home/dgilmore/llvm-pp2/bcbug969/unittests/ExecutionEngine/MCJIT/Release+Asserts/MCJITTests
--gtest_filter=MCJITTest.return_global
Note: Google Test filter = MCJITTest.return_global
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from MCJITTest
[ RUN      ] MCJITTest.return_global
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
0 Segmentation fault
$
/home/dgilmore/llvm-pp2/bcbug969/unittests/ExecutionEngine/MCJIT/Release+Asserts/MCJITTests
--gtest_filter=MCJITTest.multiple_functions
Note: Google Test filter = MCJITTest.multiple_functions
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from MCJITTest
[ RUN      ] MCJITTest.multiple_functions
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
0 Segmentation fault
$

We are tracking this this down -- last status blurb on this was:

LLVM/MCJIT failures:
- Issue with multiple relocations - relocations are not correctly re-applied;
-- debugging in progress;</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>