[LLVMbugs] [Bug 16453] New: ubuntu 12 soundcard header miasma

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 25 16:04:40 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16453

            Bug ID: 16453
           Summary: ubuntu 12 soundcard header miasma
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: baallan at sandia.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130625/09d523a8/attachment.html>


More information about the llvm-bugs mailing list