Michael Lehn | 8 Mar 2011 18:16
Picon
Favicon

Problems with synopsis from trunk

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


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 Seefeld | 8 Mar 2011 19:58

Re: Problems with synopsis from trunk

On 2011-03-08 12:16, Michael Lehn wrote:
> Hello,
>
> I just tried out the new synopsis from trunk.  Following the 
> instructions from
>
> http://lists.fresco.org/pipermail/synopsis-devel/2011-February/001086.html
>
> 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.

I just realized I had a related local change that I failed to check in. 
I just committed this as revision 2045.

>
> In case it helps reproducing the problem, I uploaded a tar-ball of 
> this C++ project:
>
> http://www.mathematik.uni-ulm.de/~lehn/synopsis-test/blas++.tgz 
> <http://www.mathematik.uni-ulm.de/%7Elehn/synopsis-test/blas++.tgz>
>
> 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 
> <http://www.mathematik.uni-ulm.de/%7Elehn/synopsis-test/main.cc>)
>
> However, in all cases the dumped file merely contains some tags about 
> some builtin types

Thanks, I'll look at that as soon as possible.

         Stefan

--

-- 

       ...ich hab' noch einen Koffer in Berlin...
Michael Lehn | 8 Mar 2011 20:38
Picon
Favicon

Re: Problems with synopsis from trunk

>> 
>> 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.
> 
> I just realized I had a related local change that I failed to check in. I just committed this as revision 2045.

Works!  Thanks for the fast bugfix!

Michael
Stefan Seefeld | 8 Mar 2011 23:00

Re: Problems with synopsis from trunk

On 2011-03-08 13:58, Stefan Seefeld wrote:
> On 2011-03-08 12:16, Michael Lehn wrote:
>
>> However, in all cases the dumped file merely contains some tags about 
>> some builtin types
>
> Thanks, I'll look at that as soon as possible.

I have just checked in some improvements that should fix some of this.
If you pass the "-Wp,primary-files-only=False" option, you should see 
declarations and types also coming from included header files.

     Stefan

--

-- 

       ...ich hab' noch einen Koffer in Berlin...
Michael Lehn | 8 Mar 2011 23:19
Picon
Favicon

Re: Problems with synopsis from trunk


Am 08.03.2011 um 23:00 schrieb Stefan Seefeld:

> On 2011-03-08 13:58, Stefan Seefeld wrote:
>> On 2011-03-08 12:16, Michael Lehn wrote:
>> 
>>> However, in all cases the dumped file merely contains some tags about some builtin types
>> 
>> Thanks, I'll look at that as soon as possible.
> 
> I have just checked in some improvements that should fix some of this.
> If you pass the "-Wp,primary-files-only=False" option, you should see declarations and types also
coming from included header files.
> 

Unfortunately it does not compile after I updated from svn:

	/home/clientadmin/SYNOPSIS/synopsis/Synopsis/Parsers/Cxx/ASGTranslator.cc:295: error:
‘clang_isDependentType’ was not declared in this scope

The following files where modified when I updated to revision 2056:

	U    Synopsis/Parsers/Cxx/ASGTranslator.hh
	U    Synopsis/Parsers/Cxx/ASGTranslator.cc
	U    Synopsis/Formatters/DocBook/Markup/RST.py
	U    Synopsis/Formatters/HTML/Markup/RST.py
	U    src/Support/utils.hh

I also was not able to find "clang_isDependentType" via grep ...

Michael
Stefan Seefeld | 8 Mar 2011 23:37

Re: Problems with synopsis from trunk

On 2011-03-08 17:19, Michael Lehn wrote:
> Am 08.03.2011 um 23:00 schrieb Stefan Seefeld:
>
>> On 2011-03-08 13:58, Stefan Seefeld wrote:
>>> On 2011-03-08 12:16, Michael Lehn wrote:
>>>
>>>> However, in all cases the dumped file merely contains some tags about some builtin types
>>> Thanks, I'll look at that as soon as possible.
>> I have just checked in some improvements that should fix some of this.
>> If you pass the "-Wp,primary-files-only=False" option, you should see declarations and types also
coming from included header files.
>>
> Unfortunately it does not compile after I updated from svn:
>
> 	/home/clientadmin/SYNOPSIS/synopsis/Synopsis/Parsers/Cxx/ASGTranslator.cc:295: error:
‘clang_isDependentType’ was not declared in this scope

I had forgotten about a new clang API that I added (but which isn't yet 
checked in). I've reverted that part of the code, so things should work 
again with clang trunk right now. Sorry for that.

         Stefan

--

-- 

       ...ich hab' noch einen Koffer in Berlin...
Michael Lehn | 8 Mar 2011 23:44
Picon
Favicon

Re: Problems with synopsis from trunk

Am 08.03.2011 um 23:37 schrieb Stefan Seefeld:

> On 2011-03-08 17:19, Michael Lehn wrote:
>> Am 08.03.2011 um 23:00 schrieb Stefan Seefeld:
>> 
>>> On 2011-03-08 13:58, Stefan Seefeld wrote:
>>>> On 2011-03-08 12:16, Michael Lehn wrote:
>>>> 
>>>>> However, in all cases the dumped file merely contains some tags about some builtin types
>>>> Thanks, I'll look at that as soon as possible.
>>> I have just checked in some improvements that should fix some of this.
>>> If you pass the "-Wp,primary-files-only=False" option, you should see declarations and types also
coming from included header files.
>>> 
>> Unfortunately it does not compile after I updated from svn:
>> 
>> 	/home/clientadmin/SYNOPSIS/synopsis/Synopsis/Parsers/Cxx/ASGTranslator.cc:295: error:
‘clang_isDependentType’ was not declared in this scope
> 
> I had forgotten about a new clang API that I added (but which isn't yet checked in). I've reverted that part
of the code, so things should work again with clang trunk right now. Sorry for that.
> 

Great!  Compiles and everything (including the Dump formatter) is working!

Thanks,

Michael
Gilles J. Seguin | 9 Mar 2011 21:00
Picon

Re: Problems with synopsis from trunk

On Tue, 2011-03-08 at 13:58 -0500, Stefan Seefeld wrote: 
> I just realized I had a related local change that I failed to check in. 
> I just committed this as revision 2045.

2045 !
hums, here is last email
The Synopsis-changes Archives
http://lists.fresco.org/pipermail/synopsis-changes/

Date: Wed, 21 Jul 2010 12:48:57 +0000 (UTC) (07/21/2010 08:48:57 AM)
From: stefan <at> fresco.org
Subject: [Synopsis-changes] r2050 - branches/S10/Synopsis/Parsers/Python
Sender: synopsis-changes-bounces <at> lists.fresco.org
To: synopsis-changes <at> fresco.org
Errors-To: synopsis-changes-bounces <at> lists.fresco.org
Reply-To: synopsis-devel <at> fresco.org
Message-Id: <20100721125138.C8250E3774 <at> frida.spi-inc.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Precedence: list
X-beenthere: synopsis-changes <at> lists.fresco.org
Delivered-To: synopsis-changes <at> chic.spi-inc.org
X-original-to: synopsis-changes <at> fresco.org
X-mailman-version: 2.1.9
List-post: <mailto:synopsis-changes <at> lists.fresco.org>
List-subscribe:
<http://lists.fresco.org/cgi-bin/listinfo/synopsis-changes>,
<mailto:synopsis-changes-request <at> lists.fresco.org?subject=subscribe>
List-unsubscribe:
<http://lists.fresco.org/cgi-bin/listinfo/synopsis-changes>,
<mailto:synopsis-changes-request <at> lists.fresco.org?subject=unsubscribe>
List-help:
<mailto:synopsis-changes-request <at> lists.fresco.org?subject=help>
List-id: Changelogs for commits to the Synopsis tree
<synopsis-changes.lists.fresco.org>

bonjour, gilles
Stefan Seefeld | 9 Mar 2011 22:05

Re: Problems with synopsis from trunk

On 2011-03-09 15:00, Gilles J. Seguin wrote:
> On Tue, 2011-03-08 at 13:58 -0500, Stefan Seefeld wrote:
>> I just realized I had a related local change that I failed to check in.
>> I just committed this as revision 2045.
> 2045 !
> hums, here is last email
> The Synopsis-changes Archives
> http://lists.fresco.org/pipermail/synopsis-changes/
>
> Date: Wed, 21 Jul 2010 12:48:57 +0000 (UTC) (07/21/2010 08:48:57 AM)
> From: stefan <at> fresco.org
> Subject: [Synopsis-changes] r2050 - branches/S10/Synopsis/Parsers/Python

Oups. I see the current revision is in fact 2057. I'm not sure how I 
came up with that number.

The changes mailer is presently inactive, as the repository was moved a 
couple of weeks ago, without regenerating the post-commit hooks. In 
fact, lots of services associated with the Synopsis website don't work 
right now, as I still try to get hold of an admin who can help me reset 
things. :-(

     Stefan

--

-- 

       ...ich hab' noch einen Koffer in Berlin...

Gmane