[llvm-dev] compiler-rt fails to find <stdarg.h> on FreeBSD
Sean Bruno via llvm-dev
llvm-dev at lists.llvm.org
Tue Dec 8 13:35:40 PST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 12/08/15 13:16, Sean Bruno via llvm-dev wrote:
> I'm unsure why this is failing this week, but when I build for
> FreeBSD HEAD, I now get a failure to find <stdarg.h>. Very
> strange. Maybe its missing a -I /usr/include somewhere?
>
>
Yeah, adding a -I /usr/include is definitely allowing this to work.
How do I add that to the build?
sean
> [1950/2811] Building CXX object
> projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o
>
>
FAILED: /usr/bin/CC -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
> -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W
> -Wno-unused-parameter -Wwrite-strings -Wcast-qual
> -Wmissing-field-initializers -pedantic -Wno-long-long
> -Wcovered-switch-default -Wnon-virtual-dtor -std=c++11
> -fcolor-diagnostics -Wall -std=c++11 -g
> -Iprojects/compiler-rt/lib/tsan
> -I/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan -Iinclude
> -I/home/sbruno/clang/llvm/include -I/usr/local/include
> -I/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/..
> -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer
> -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack
> -fvisibility=hidden -fvisibility-inlines-hidden
> -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu
> -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor
> -fPIE -fno-rtti -msse3 -Wframe-larger-than=512
> -Wglobal-constructors --sysroot=. -MMD -MT
> projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o
>
>
- -MF
> projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o.d
>
>
- -o
> projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interceptors.cc.o
>
>
- -c
> /home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
>
>
In file included from
> /home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:2367:
>
>
/home/sbruno/clang/llvm/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:41:10:
> fatal error: 'stdarg.h' file not found #include <stdarg.h> ^ 1
> error generated. [1950/2811] Building X86GenDAGISel.inc... ninja:
> build stopped: subcommand failed.
> _______________________________________________ LLVM Developers
> mailing list llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQF8BAEBCgBmBQJWZ00oXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx
MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k0/YH/04qULA4PVftiNypLQODCmPv
L/YKNpAAQeoNEiRjFr/d2DOfd7FANrIJ4y+dTEhreDM18XeaKJOHKQQIZOvdkrYx
EvVhNSbvitOF7g6VOr4GlrZYTtVoyyT/HhDPoPe6R8wgLjaAaD9mAtXB4ZY+k7LG
M5mqstUfaC443VSQuwb9dIpD8XF5jLp8+EFz/AWX1FaLzYuIjwvPzj2gClph2kjf
IH4IOl0px7FNbeg7kehtQTMZ9owXtrg9GVUUHKEUWvxGoraXgvz0f/GeoO7BgcQz
m9TO6FOut2hvZsveWD0rNEIS+vM5bAOqRQLvJhK00quMUCTwxjhbNblmHYJWZak=
=xS32
-----END PGP SIGNATURE-----
More information about the llvm-dev
mailing list