<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 --- - ubuntu 12 soundcard header miasma"
   href="http://llvm.org/bugs/show_bug.cgi?id=16453">16453</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ubuntu 12 soundcard header miasma
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>baallan@sandia.gov
          </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>on ubuntu 12.04/gcc4.6/kernel 3.2.0-45
struct copr_buffer is only defined in 
/usr/include/linux/soundcard.h.oss3
and not in
/usr/include/linux/soundcard.h

This leads to broken build at least with current svn checkout (>= llvm 3.3):

COMPILE:   clang_linux/san-x86_64/x86_64:
/home/baallan/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cc
/home/baallan/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:180:36:
error: invalid application of 'sizeof' to
      an incomplete type 'struct copr_buffer'
  unsigned struct_copr_buffer_sz = sizeof(struct copr_buffer);
                                   ^     ~~~~~~~~~~~~~~~~~~~~
/home/baallan/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:180:50:
note: forward declaration of
      '__sanitizer::copr_buffer'
  unsigned struct_copr_buffer_sz = sizeof(struct copr_buffer);
                                                 ^

Workaround is to replace the #include <linux/soundcard.h> with
<linux/soundcard.h.oss3></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>