Hi everybody, I'm new with clang as i'm using it for few days only. I did set up llvm and clang 2.9 and when i used clang command for analyze c++ files it worked almost correctly (since i had bugs but related to my machine i think).
I took recent versions of llvm and clang on SVN repository. And now it does not work, and here are the errors i obtain when i attempt an analysis on file "list.cpp": 0 clang 0x0a308fd6 1 clang 0x0a308d63 2 0x0023d400 __kernel_sigreturn + 0 3 clang 0x08d2c54f clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, llvm::StringRef, clang::InputKind) + 1329 4 clang 0x08d14930 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 758 5 clang 0x08cbbf52 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 835 6 clang 0x08cadd45 cc1_main(char const**, char const**, char const*, void*) + 1014 7 clang 0x08cb7a33 main + 521 8 libc.so.6 0x00764e37 __libc_start_main + 231 9 clang 0x08cad421 Stack dump: 0. Program arguments: /home/cedric/llvm/Debug+Asserts/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name list.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.21 -momit-leaf-frame-pointer -resource-dir /home/cedric/llvm/Debug+Asserts/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 168 -fgnu-runtime -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -load /home/cedric/dxr/dxr-clang/xref-tools/cxx-clang/libclang-index-plugin.so -add-plugin dxr-index -plugin-arg-dxr-index ../CodeCPP/ -o /tmp/cc-00ZhSs.o -x c++ list.cpp clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) --> Anybody can say something about it ? I don't really get what occurs there. thank you. Regards, Cédric Teyton _______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
