[aspectc-user] Building ag++

Jens Schedel jens at schedel.org
Wed Jul 7 09:19:50 CEST 2010


Hi,

today i tried to build puma, ac++ and ag++ with debug symbols to find
the reason for a segmentation fault. But i can't build puma with the
build versions 270 and 257 of ag++. The following error messages are
shown:

**********************************************************************
Copying sources not to weave...
Weaving aspects into PreFileIncluder.cc...
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah:33: error: invalid member declaration near token `Puma'
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah:33: located in the following non-file unit:
   private:
  typedef CTree CExprResolveCTree;

#line 32 "/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah"
 public :
virtual Puma :: CTypeInfo * resolve ( Puma :: CSemExpr & sem_expr , Puma :: CTree * base ) ;
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah:37: error: invalid member declaration near token `Puma'
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah:37: located in the following non-file unit:
   private:
  typedef CT_Expression CExprResolveExpr;

#line 36 "/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah"
 public :
virtual Puma :: CTypeInfo * resolve ( Puma :: CSemExpr & sem_expr , Puma :: CTree * base ) ;
**********************************************************************
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/ExtGnu.ah:817: error: invalid member declaration near token `Puma'
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/ExtGnu.ah:817: located in the following non-file unit:
   private:
  typedef CSemExpr ExtGnuStmtExprsCSemExpr;

#line 816 "/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/ExtGnu.ah"
 public :
Puma :: CTypeInfo * resolve ( Puma :: CT_GnuStatementExpr * , Puma :: CTree * ) ;
error: introduction cannot be parsed
/local/sijesche/da/AspectC++-Project/Puma/gen-release/step1/aspects/ExtAC.ah:84: error: cannot declare `Puma::ACIntroducer' within `CSemantic'
**********************************************************************

I was able to build puma with build version 248 of the ag++.

I also discovered such errors about "invalid member declaration" and
unknown types in CiAO. Forward declarations for the undefined types in
the original code (not the aspect code) made it work. But this is only a
work around.

Regards,
Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3230 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20100707/cc09047d/attachment.bin>


More information about the aspectc-user mailing list