I'm getting the following problem: nwatkins@kyoto:~/boost-statechart-viewer$ clang++ -Xclang -load -Xclang src/visualizer.so -Xclang -plugin -Xclang visualize-statechart -c test.cc warning: Visualizer plugin is running! test.cc:24:1: note: Found statemachine 'DU' struct DU : sc::state_machine< DU, state_1 > {};//Nastaveni inicializacniho stavu ^ test.cc:36:1: note: Found state 'state_1' struct state_1 : sc::simple_state< state_1, DU> // stav ^ 0 libLLVM-3.0.so.1 0x00007f64b2c4566f 1 libLLVM-3.0.so.1 0x00007f64b2c45ad9 2 libpthread.so.0 0x00007f64b1be7cb0 3 visualizer.so 0x00007f64b09c65ca 4 visualizer.so 0x00007f64b09c71f0 5 visualizer.so 0x00007f64b09cbd69 clang::RecursiveASTVisitor<Visitor>::TraverseCXXRecordDecl(clang::CXXRecordDecl*) + 25 6 visualizer.so 0x00007f64b09c75f1 clang::RecursiveASTVisitor<Visitor>::TraverseDeclContextHelper(clang::DeclContext*) + 65 7 visualizer.so 0x00007f64b09c753f 8 clang 0x00000000007bcc8f clang::ParseAST(clang::Sema&, bool) + 415 9 clang 0x00000000005adc7f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 319 10 clang 0x000000000059653a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1114 11 clang 0x000000000058e1c4 cc1_main(char const**, char const**, char const*, void*) + 820 12 clang 0x000000000058cb3c main + 620 13 libc.so.6 0x00007f64b132076d __libc_start_main + 237 14 clang 0x000000000058dd39 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file test.o -resource-dir /usr/bin/../lib/clang/3.0 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/4.6 -internal-isystem /usr/include/c++/4.6/x86_64-linux-gnu -internal-isystem /usr/include/c++/4.6/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fmessage-length 224 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -load src/visualizer.so -plugin visualize-statechart -o test.o -x c++ test.cc 1. <eof> parser at end of file clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: error: unable to execute command: Segmentation fault (core dumped) clang: note: diagnostic msg: Error generating preprocessed source(s). -Noah
Hi Noah, On Fri, Apr 26 2013, Noah Watkins wrote:
I'm getting the following problem:
nwatkins@kyoto:~/boost-statechart-viewer$ clang++ -Xclang -load -Xclang src/visualizer.so -Xclang -plugin -Xclang visualize-statechart -c test.cc warning: Visualizer plugin is running!
test.cc:24:1: note: Found statemachine 'DU' struct DU : sc::state_machine< DU, state_1 > {};//Nastaveni inicializacniho stavu ^ test.cc:36:1: note: Found state 'state_1' struct state_1 : sc::simple_state< state_1, DU> // stav ^ 0 libLLVM-3.0.so.1 0x00007f64b2c4566f
We use boost-statechart-viewer with llvm-3.1. You seem to be using 3.0. Can you check whether you get the same problem with 3.1? Thanks, -Michal
I'm getting the following problem:
nwatkins@kyoto:~/boost-statechart-viewer$ clang++ -Xclang -load -Xclang src/visualizer.so -Xclang -plugin -Xclang visualize-statechart -c test.cc warning: Visualizer plugin is running!
test.cc:24:1: note: Found statemachine 'DU' struct DU : sc::state_machine< DU, state_1 > {};//Nastaveni inicializacniho stavu ^ test.cc:36:1: note: Found state 'state_1' struct state_1 : sc::simple_state< state_1, DU> // stav ^ 0 libLLVM-3.0.so.1 0x00007f64b2c4566f 1 libLLVM-3.0.so.1 0x00007f64b2c45ad9 2 libpthread.so.0 0x00007f64b1be7cb0 3 visualizer.so 0x00007f64b09c65ca 4 visualizer.so 0x00007f64b09c71f0 5 visualizer.so 0x00007f64b09cbd69 clang::RecursiveASTVisitor<Visitor>::TraverseCXXRecordDecl(clang::CXXRecordDecl*) + 25 6 visualizer.so 0x00007f64b09c75f1 clang::RecursiveASTVisitor<Visitor>::TraverseDeclContextHelper(clang::DeclContext*) + 65 7 visualizer.so 0x00007f64b09c753f 8 clang 0x00000000007bcc8f clang::ParseAST(clang::Sema&, bool) + 415 9 clang 0x00000000005adc7f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 319 10 clang 0x000000000059653a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1114 11 clang 0x000000000058e1c4 cc1_main(char const**, char const**, char const*, void*) + 820 12 clang 0x000000000058cb3c main + 620 13 libc.so.6 0x00007f64b132076d __libc_start_main + 237 14 clang 0x000000000058dd39 Stack dump: 0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file test.o -resource-dir /usr/bin/../lib/clang/3.0 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/4.6 -internal-isystem /usr/include/c++/4.61. <eof> parser at end of file clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. clang: error: unable to execute command: Segmentation fault (core dumped) clang: note: diagnostic msg: Error generating preprocessed source(s).
-Noah _______________________________________________ Boost-statechart-viewer mailing list Boost-statechart-viewer@rtime.felk.cvut.cz http://rtime.felk.cvut.cz/mailman/listinfo/boost-statechart-viewer I tried the program once more with LLVM 3.0 and it worked well with this example. I use precompiled LLVM for Ubuntu 32 bit version. So this
Hi Noah, Dne 26.4.2013 19:12, Noah Watkins napsal(a): program is not tested on 64 bit OS with LLVM 3.0. This is the command line I used /home/petr/clang+llvm-3.0-i386-linux-Ubuntu-11_10/bin/clang++ -Xclang -load -Xclang ../src/visualizer.so -Xclang -plugin -Xclang visualize-statechart -c -o test.cc test.cc As Michal wrote try to use it with LLVM 3.1. This version is tested on both OS versions (32 bit and 64 bit). Petr
participants (3)
-
Michal Sojka
-
Noah Watkins
-
Petr Silhavik