And by the way, is there any specific version of gcc required to use clang ? here i'm using gcc/g++ 4.5
On 26 July 2011 10:00, Cedric Teyton <[email protected]> wrote: > ps : I'm working with revision 134438 of llvm and clang > > > On 26 July 2011 09:45, Cedric Teyton <[email protected]> wrote: > >> Ok sorry. >> Well it does not seem to provide me something more...? >> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - - - - - - >> Reading symbols from /home/cedric/llvm/Debug+Asserts/bin/clang++...done. >> (gdb) run >> Starting program: /home/cedric/llvm/Debug+Asserts/bin/clang++ -Xclang >> -load -Xclang >> /home/cedric/dxr/dxr-clang/xref-tools/cxx-clang/libclang-index-plugin.so >> -Xclang -add-plugin -Xclang dxr-index -Xclang -plugin-arg-dxr-index -Xclang >> /home/cedric/CodeCPP/ list.cpp >> [Thread debugging using libthread_db enabled] >> >> 0 clang 0x0a308fd6 >> 1 clang 0x0a308d63 >> 2 0x0012e400 __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 0x0028fe37 __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 93 -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 /home/cedric/CodeCPP/ -o >> /tmp/cc-FqdILM.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) >> >> Program exited with code 0376. >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - - - - - - >> >> >> On 26 July 2011 09:31, Joshua Cranmer <[email protected]> wrote: >> >>> On 7/26/2011 3:11 AM, Cedric Teyton wrote: >>> >>>> If i run "gcc -args /home/...../clang [....] list.cpp" i get this now : >>>> >>> That should have been gdb --args... >>> >>> ______________________________**_________________ >>> dev-static-analysis mailing list >>> dev-static-analysis@lists.**mozilla.org<[email protected]> >>> https://lists.mozilla.org/**listinfo/dev-static-analysis<https://lists.mozilla.org/listinfo/dev-static-analysis> >>> >> >> > _______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
