<div dir="ltr">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.<br><br><div>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</div><div>cc: error: unrecognized argument to -fsanitize= option: ‘safe-stack’</div><div>cc: error: unrecognized command line option ‘-Wcovered-switch-default’</div><div>cc: error: unrecognized command line option ‘-fcolor-diagnostics’</div><div>cc: error: unrecognized command line option ‘-Wglobal-constructors’</div><div><br></div><div>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</div><div>cmake ../llvm -G "Sublime Text 2 - Ninja"</div><div>with no options and I deleted my CMakeCache after I first ran into this error.</div></div>