<div dir="ltr">Clang provides stdarg.h as part of its builtin headers. Maybe that is what compiler-rt is expecting to find and somehow clang is not finding its builtin headers?<div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 1:16 PM, Sean Bruno via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm unsure why this is failing this week, but when I build for FreeBSD<br>
HEAD, I now get a failure to find <stdarg.h>. Very strange. Maybe its<br>
missing a -I /usr/include somewhere?<br>
<br>
<br>
[1950/2811] Building CXX object<br>
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o<br>
FAILED: /usr/bin/CC -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS<br>
-D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W<br>
-Wno-unused-parameter -Wwrite-strings -Wcast-qual<br>
-Wmissing-field-initializers -pedantic -Wno-long-long<br>
-Wcovered-switch-default -Wnon-virtual-dtor -std=c++11<br>
-fcolor-diagnostics -Wall -std=c++11 -g -Iprojects/compiler-rt/lib/tsan<br>
-I/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan -Iinclude<br>
-I/home/sbruno/clang/llvm/include -I/usr/local/include<br>
-I/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/.. -m64<br>
-fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables<br>
-fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden<br>
-fvisibility-inlines-hidden -fno-function-sections -fno-lto -O3<br>
-gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions<br>
-Wno-non-virtual-dtor -fPIE -fno-rtti -msse3 -Wframe-larger-than=512<br>
-Wglobal-constructors --sysroot=. -MMD -MT<br>
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o<br>
-MF<br>
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o.d<br>
-o<br>
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o<br>
-c<br>
/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc<br>
In file included from<br>
/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:2367:<br>
/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:41:10:<br>
fatal error: 'stdarg.h' file not found<br>
#include <stdarg.h><br>
^<br>
1 error generated.<br>
[1950/2811] Building X86GenDAGISel.inc...<br>
ninja: build stopped: subcommand failed.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>