[LLVMbugs] [Bug 20112] New: size_t definition not found in lib/builtins/clear_cache.c
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 23 23:01:41 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20112
Bug ID: 20112
Summary: size_t definition not found in
lib/builtins/clear_cache.c
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: newchief at king.net.pl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I've compiled llvm+clang+compiler_rt+lldb (all from git master) using gcc-4.8.3
and it completed fine. Then I tried to build the same with the compiler I've
just built. The only problem I got is the error that size_t type definition
coulnd't be found in lib/builtins/clear_cache.c. Seems like gcc-4.8 assumes
stddef.h is always included. The fix for this is:
--- a/lib/builtins/clear_cache.c
+++ b/lib/builtins/clear_cache.c
@@ -8,6 +8,7 @@
*
===----------------------------------------------------------------------===
*/
+#include <stddef.h>
#include "int_lib.h"
#if __APPLE__
--
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/20140624/5394d198/attachment.html>
More information about the llvm-bugs
mailing list