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 program is not tested on 64 bit OS with LLVM 3.0. This is the
command line I used