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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs