If i run "gcc -args /home/...../clang [....] list.cpp" i get this now :
--- gcc: clang++: No such file or directory gcc: dxr-index: No such file or directory gcc: unrecognized option '-Xclang' gcc: unrecognized option '-Xclang' gcc: unrecognized option '-Xclang' gcc: unrecognized option '-Xclang' gcc: unrecognized option '-Xclang' gcc: unrecognized option '-plugin-arg-dxr-index' gcc: unrecognized option '-Xclang' gcc: error trying to exec 'cc1plus': execvp: No such file or directory --- But actually my command is set up inside dxr-clang environment, where $CXX is : 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/ The error by the way in my first message comes from running "$CXX list.cpp" so i'm not really involved into all these arguments... Thank you On 26 July 2011 01:44, Joshua Cranmer <[email protected]> wrote: > On 7/25/2011 7:11 AM, Cedric Teyton wrote: > >> 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. >> > > What happens if you run gcc --args <the entire command string here> ? > ______________________________**_________________ > 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
