<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 --- - bugpoint fails checks when compiled with cmake+sharedlibs+debug"
   href="http://llvm.org/bugs/show_bug.cgi?id=15242">15242</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bugpoint fails checks when compiled with cmake+sharedlibs+debug
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>bugpoint
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arnaud.adegm@gmail.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>The fails only happen when the build is configured with debug _and_ shared
libs.

This is not a spurious failure as it as been reproducable for several monthes.


$ gcc --version
gcc (Gentoo 4.6.3 p1.11, pie-0.5.2) 4.6.3

$ cmake --version
cmake version 2.8.9

$ git clone <a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> llvm.git
...
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DBUILD_SHARED_LIBS:BOOL=1
-DLLVM_TARGETS_TO_BUILD:STRING=X86 ../llvm.git
...
$ make -j4 && make check-llvm
...
[100%] Running the LLVM regression tests
FAIL: LLVM :: BugPoint/crash-narrowfunctiontest.ll (394 of 7306)
******************** TEST 'LLVM :: BugPoint/crash-narrowfunctiontest.ll' FAILED
********************
Script:
--
/home/local/aadgrand/tmp/build/bin/./bugpoint -load
/home/local/aadgrand/tmp/build/lib/./BugpointPasses.so
/home/local/aadgrand/tmp/llvm.git/test/BugPoint/crash-narrowfunctiontest.ll
-output-prefix
/home/local/aadgrand/tmp/build/test/BugPoint/Output/crash-narrowfunctiontest.ll.tmp
-bugpoint-crashcalls -silence-passes > /dev/null
--
Exit Code: 1
Command Output (stderr):
--
simplifycfg failed!
--

********************
FAIL: LLVM :: BugPoint/metadata.ll (509 of 7306)
******************** TEST 'LLVM :: BugPoint/metadata.ll' FAILED
********************
Script:
--
/home/local/aadgrand/tmp/build/bin/./bugpoint -load
/home/local/aadgrand/tmp/build/lib/./BugpointPasses.so
/home/local/aadgrand/tmp/llvm.git/test/BugPoint/metadata.ll -output-prefix
/home/local/aadgrand/tmp/build/test/BugPoint/Output/metadata.ll.tmp
-bugpoint-crashcalls -silence-passes > /dev/null
/home/local/aadgrand/tmp/build/bin/./llvm-dis
/home/local/aadgrand/tmp/build/test/BugPoint/Output/metadata.ll.tmp-reduced-simplified.bc
-o - | /home/local/aadgrand/tmp/build/bin/./FileCheck
/home/local/aadgrand/tmp/llvm.git/test/BugPoint/metadata.ll
--
Exit Code: 1
Command Output (stderr):
--
simplifycfg failed!
--

********************
FAIL: LLVM :: BugPoint/remove_arguments_test.ll (510 of 7306)
******************** TEST 'LLVM :: BugPoint/remove_arguments_test.ll' FAILED
********************
Script:
--
/home/local/aadgrand/tmp/build/bin/./bugpoint -load
/home/local/aadgrand/tmp/build/lib/./BugpointPasses.so
/home/local/aadgrand/tmp/llvm.git/test/BugPoint/remove_arguments_test.ll
-output-prefix
/home/local/aadgrand/tmp/build/test/BugPoint/Output/remove_arguments_test.ll.tmp
-bugpoint-crashcalls -silence-passes
/home/local/aadgrand/tmp/build/bin/./llvm-dis
/home/local/aadgrand/tmp/build/test/BugPoint/Output/remove_arguments_test.ll.tmp-reduced-simplified.bc
-o - | /home/local/aadgrand/tmp/build/bin/./FileCheck
/home/local/aadgrand/tmp/llvm.git/test/BugPoint/remove_arguments_test.ll
--
Exit Code: 1
Command Output (stdout):
--
Read input file      :
'/home/local/aadgrand/tmp/llvm.git/test/BugPoint/remove_arguments_test.ll'
*** All input ok
Running selected passes on program to test for crash: Execute failed: Program
could not be executed
Dumped core

*** Debugging optimizer crash!
Checking to see if these passes crash: -bugpoint-crashcalls: Execute failed:
Program could not be executed
Dumped core

*** Found crashing pass: -bugpoint-crashcalls
Emitted bitcode to
'/home/local/aadgrand/tmp/build/test/BugPoint/Output/remove_arguments_test.ll.tmp-passes.bc'

*** You can reproduce the problem with: opt
/home/local/aadgrand/tmp/build/test/BugPoint/Output/remove_arguments_test.ll.tmp-passes.bc
-load /home/local/aadgrand/tmp/build/lib/./BugpointPasses.so
-bugpoint-crashcalls
Checking for crash with only these blocks: : --
Command Output (stderr):
--
simplifycfg failed!
--

********************
Testing Time: 42.64s
********************
Failing Tests (3):
    LLVM :: BugPoint/crash-narrowfunctiontest.ll
    LLVM :: BugPoint/metadata.ll
    LLVM :: BugPoint/remove_arguments_test.ll

  Expected Passes    : 5279
  Expected Failures  : 28
  Unsupported Tests  : 1996
  Unexpected Failures: 3
make[3]: *** [test/CMakeFiles/check-llvm] Error 1
make[2]: *** [test/CMakeFiles/check-llvm.dir/all] Error 2
make[1]: *** [test/CMakeFiles/check-llvm.dir/rule] Error 2
make: *** [check-llvm] Error 2</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>