<div>Hello everyone:</div><div>I'm building libcxx on amd64 ubuntu 14.04 for testing cloud9, but encountered the following fatal issue that clang caused.</div><div><br></div><div>The program arguments are as follows:</div><div> /home/bruce/Cloud9_Root/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -disable-free -main-file-name condition_variable.cpp -pic-level 2 -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.24 -momit-leaf-frame-pointer -g -coverage-file out/Default/obj.target/libcxx/libcxx/src/condition_variable.o -nostdinc++ -resource-dir /home/bruce/Cloud9_Root/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.1 -dependency-file out/Default/.deps/out/Default/obj.target/libcxx/libcxx/src/condition_variable.o.d.raw -MT out/Default/obj.target/libcxx/libcxx/src/condition_variable.o -D _FILE_OFFSET_BITS=32 -I libcxx/include -fmodule-cache-path /var/tmp/clang-module-cache -c-isystem /usr/include/x86_64-linux-gnu/c++/4.8/ -c-isystem /home/bruce/Cloud9_Root/src/cloud9/include/ -cxx-isystem /usr/include/x86_64-linux-gnu/c++/4.8/ -cxx-isystem /home/bruce/Cloud9_Root/src/cloud9/include/ -internal-isystem /usr/local/include -internal-isystem /home/bruce/Cloud9_Root/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Os -Wall -Wextra -Wshadow -Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2 -Wstrict-overflow=4 -std=c++0x -fdeprecated-macro -fdebug-compilation-dir /home/bruce/Cloud9_Root/src/testing_targets -ferror-limit 19 -fmessage-length 143 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o out/Default/obj.target/libcxx/libcxx/src/condition_variable.o -x c++ libcxx/src/condition_variable.cpp</div><div><br></div><div>But it failed with the following error, and I can not understand why.</div><div><div>1.<span style="white-space:pre">        </span>libcxx/include/__config:1028:3: current parser token 'if'</div><div>2.<span style="white-space:pre">   </span>libcxx/include/__config:448:1: parsing namespace 'std'</div><div><div>clang: error: unable to execute command: Segmentation fault (core dumped)</div><div>clang: error: clang frontend command failed due to signal (use -v to see invocation)</div><div><br></div></div></div><div><br></div><div>I am a newbee on clang , and I have tried my best to google what I can do to solve it. But I failed.</div><div><br></div><div>Does anyone encounter the same problem or know how to slove it. I can provide libcxx source code if someone responses to me.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>bruce</div>