[aspectc-user] Problems building SVN version of Puma

Matthias Urban matthias.urban at pure-systems.com
Mon Mar 23 03:32:17 CET 2009


Hi,

> I an interested in getting a C++ Tree and building tools on top of it.
>>From what I found in several older versions of the Puma documentation it
> looks like it is the right tool for me (I hope the aspectc mailing list
> is the appropriate one for this tool, too). Furthermore it seems that
> the documentation hast been updated recently. I was trying this a while
> ago (quite a while, this thing is more of a hobby) and found, that the
> documentation of the 1.0pre3 release was not enough for me. So I figured
> to take a look at the SVN version.

Well, the documentation still isn't very good. But at least the most
important classes are now documented. Don't forget to generate the
reference manual with 'make doc'. You should also take a look into the
annotator example for the first steps with Puma. The parser example you
may give a try for inspecting the syntax and semantic trees. It also
shows how to get the configuration of the target compiler.

> My problem is, that I cannot generate the SVN version.
> 
> I got the a[gc]++ binaries (http://www.aspectc.org/fileadmin/downloads/ac/1.0pre3/ac-bin-linux-1.0pre3.tar.gz) 
> and the latest SVN trunk version (svn checkout https://svn.aspectc.org/repos/AspectC++-Project/trunk AspectC++-Project).
> The a[gc]++ binaries are in PATH.
> 
> Here is my session:
> ...
> Copying sources not to weave...
> Weaving aspects into PreFileIncluder.cc...
> make[2]: *** [/home/kai/src/acagain/AspectC++-Project/Puma/gen-release/step2/src/PreFileIncluder.cc] Segmentation fault
> make[1]: *** [step2] Error 2
> make: *** [src] Error 2
> 
> Did I do anything seriously wrong? I thought it might be better to ask
> here first, before diving deep into Makefiles :)

It seems that ac++ is crashing, but I can not reproduce it. Here is my
session:

$ ac++ --version
ac++ 1.0pre3 (Mar 16 2006)

$ ag++ --version
ag++ 0.6  built: Mar 16 2006

$ g++ --version
g++ (SUSE Linux) 4.3.1 20080507 [gcc-4_3-branch revision 135036]

$ uname -msr
Linux 2.6.25.20-0.1-pae i686

$ make cleanall
...

$ make
...

Works as expected.

Has anyone else the same problem with the current version from SVN?

Regards,
Matthias



More information about the aspectc-user mailing list