[cfe-users] clang frontend command failed due to signal

01_Tyro_10 via cfe-users cfe-users at lists.llvm.org
Mon Jan 8 02:36:59 PST 2018


Hello everyone:
I'm building libcxx on amd64 ubuntu 14.04 for testing cloud9, but encountered the following fatal issue that clang caused.


The program arguments are as follows:
 /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


But it failed with the following error, and I can not understand why.
1.	libcxx/include/__config:1028:3: current parser token 'if'
2.	libcxx/include/__config:448:1: parsing namespace 'std'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)






I am a newbee on clang , and I have tried my best to google what I can do to solve it. But I failed.


Does anyone encounter the same problem or know how to slove it. I can provide libcxx source code if someone responses to me.


Thanks in advance.


bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180108/363c3f49/attachment.html>


More information about the cfe-users mailing list