8 Mar 2011 18:16
Problems with synopsis from trunk
Michael Lehn <michael.lehn <at> uni-ulm.de>
2011-03-08 17:16:23 GMT
2011-03-08 17:16:23 GMT
Hello,
I just tried out the new synopsis from trunk. Following the instructions from
I could compile and install LLVM and synopsis without problems.
However, I have two problems (and I guess I am doing some really stupid mistake):
1) It seams that I cannot pass a include path to synopsis. For instance, I want to pass
the include "$HOME/blas++" and want to define two macros like this:
synopsis -p Cxx -I $HOME/blas++ -D HAVE_CBLAS -D WITH_ATLAS -f Dump -o dump blas++/examples/test_gematrix.cc
With synopsis 0.13 this works without problems.
In case it helps reproducing the problem, I uploaded a tar-ball of this C++ project:
2) I tried using the Dump formatter on a small C++ code with different options, e.g.
synopsis -p Cxx -f Dump -o dump main.cc
synopsis -p Cxx -f Dump -Wf,--show_declarations -o dump main.cc
synopsis -p Cxx -f Dump -Wf,--show_declarations,--show_types -o dump main.cc
(Here the sample code: http://www.mathematik.uni-ulm.de/~lehn/synopsis-test/main.cc)
However, in all cases the dumped file merely contains some tags about some builtin types, eg.
....
<instance class="Synopsis.ASG.BuiltinTypeId" id="15969104" language="C++" name="bool"/>
<instance class="Synopsis.ASG.BuiltinTypeId" id="15969168" language="C++" name="char"/>
<instance class="Synopsis.ASG.BuiltinTypeId" id="15970064" language="C++" name="double"/>
....
Is there something wrong with my installation? Or am I doing something wrong in using the new synopsis?
Cheers,
Michael
_______________________________________________ Synopsis-devel mailing list Synopsis-devel <at> lists.fresco.org http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel
Stefan
RSS Feed