Sean Bruno via llvm-dev
2015-Dec-08 21:16 UTC
[llvm-dev] compiler-rt fails to find <stdarg.h> on FreeBSD
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? [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.
Sean Bruno via llvm-dev
2015-Dec-08 21:35 UTC
[llvm-dev] compiler-rt fails to find <stdarg.h> on FreeBSD
-----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-----
Sean Silva via llvm-dev
2015-Dec-08 23:04 UTC
[llvm-dev] compiler-rt fails to find <stdarg.h> on FreeBSD
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? -- Sean Silva On Tue, Dec 8, 2015 at 1:16 PM, Sean Bruno via llvm-dev < llvm-dev at lists.llvm.org> 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? > > > [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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151208/9d6b8020/attachment.html>
Brooks Davis via llvm-dev
2015-Dec-09 09:25 UTC
[llvm-dev] compiler-rt fails to find <stdarg.h> on FreeBSD
They clang std*.h headers are incompatible with FreeBSD's builtin ones so FreeBSD users generally have to remove them (limits.h is also broken in -ffreestating mode). -- Brooks On Tue, Dec 08, 2015 at 03:04:16PM -0800, Sean Silva via llvm-dev wrote:> 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? > > -- Sean Silva > > On Tue, Dec 8, 2015 at 1:16 PM, Sean Bruno via llvm-dev < > llvm-dev at lists.llvm.org> 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? > > > > > > [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 > >> _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151209/2b0f9f28/attachment.sig>