<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 --- - configure and cmake builds lack dependencies for swig python wrapper"
   href="http://llvm.org/bugs/show_bug.cgi?id=19316">19316</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>configure and cmake builds lack dependencies for swig python wrapper
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Sometime in the last month or so dependency handling for LLDBWrapPython.cpp
broke, causing failures unless doing a clean build.

I observed this with cmake on my builds, and the FreeBSD buildbot (which uses
configure) suggests it has the same issue.  (See
<a href="http://llvm-amd64.freebsd.your.org/b/builders/lldb-amd64-freebsd/builds/1988/steps/check-lldb.1/logs/stdio">http://llvm-amd64.freebsd.your.org/b/builders/lldb-amd64-freebsd/builds/1988/steps/check-lldb.1/logs/stdio</a>
for example.)

I'm not sure what broke this, or the best way to fix it just yet.  For now I
added explicit dependencies on each .i file:

--- a/scripts/CMakeLists.txt                                                    
+++ b/scripts/CMakeLists.txt                                                    
@@ -3,6 +3,55 @@ set(LLVM_NO_RTTI 1)                                            
 add_custom_command(                                                            
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp                        
   DEPENDS ${LLDB_SOURCE_DIR}/scripts/lldb.swig                                 
+  DEPENDS Python/interface/SBAddress.i                                         
+  DEPENDS Python/interface/SBBlock.i                                           
+  DEPENDS Python/interface/SBBreakpoint.i                                      
+  DEPENDS Python/interface/SBBreakpointLocation.i                              
...</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>