I updated clang and llvm today and now I get an error when I run ninja. I've been able to sucessfully build llvm and clang in the past, but now I get the following error part way through the build. FAILED: /usr/bin/cc -DHAVE_RPC_XDR_H=1 -DHAVE_TIRPC_RPC_XDR_H=0 -DSANITIZER_NEEDS_SEGV=1 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/sanitizer_common -I/home/jkergan/Development/llvm/projects/compiler-rt/lib/sanitizer_common -Iinclude -I/home/jkergan/Development/llvm/include -fPIC -g -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 -Wdelete-non-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wall -std=c++11 -Wno-unused-parameter -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 -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -w -MMD -MT projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_linux_x86_64.S.o -MF projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_linux_x86_64.S.o.d -o projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.x86_64.dir/sanitizer_linux_x86_64.S.o -c /home/jkergan/Development/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_x86_64.S cc: error: unrecognized argument to -fsanitize= option: ‘safe-stack’ cc: error: unrecognized command line option ‘-Wcovered-switch-default’ cc: error: unrecognized command line option ‘-fcolor-diagnostics’ cc: error: unrecognized command line option ‘-Wglobal-constructors’ I can't figure out why this is failing. I know that my cc is pointing at cc (Ubuntu 5.3.1-14ubuntu2.1) 5.3.1 20160413. I can't figure out why is started failing unless I need to specify a compiler other than cc for cmake. I ran cmake as cmake ../llvm -G "Sublime Text 2 - Ninja" with no options and I deleted my CMakeCache after I first ran into this error. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160619/83674424/attachment.html>