Since clang segfaults, it could be a bug in clang.

I am not a clang expert, but I'd suggest trying to remove some of the
compiler flags and observe if the output changes. Or you could try to
use a different version of clang/llvm. And then file a bug for clang if
you can reproduce the crash.

01_Tyro_10 via cfe-users <cfe-users@lists.llvm.org> writes:

> 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
> _______________________________________________
> cfe-users mailing list
> cfe-users@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to