[aspectc-user] aspect compiler error

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Tue Sep 23 17:37:28 CEST 2003


Hi Matthias,

mathias.kurth at s2000.tu-chemnitz.de wrote:
> I tried to compile some sources with the aspect compiler and 
> got the following errors:
> 
> /home/kurm/Software/aspectc++/ac++ -v 9 -I /usr/local/mpich-1.2.5/bin/../include
>  -I /home/kurm/Software/oompi/include/oompi -I ../../../../src/Aspic/asp -I
> ../../../../src/Extern/inc -I ../../../../src/Aspic/inc -r ./ac_repository.xml
> -D _ASPECT_CPP_RUN_  -c Aspic.cpp -o obj/Aspic_wov.cpp -p.  -a TracingBase.ah 
> -a AspicTracer.ah  -a AspicMPI.ah
> * Running ac++ 0.7.2
> * Creating project repository './ac_repository.xml'
> * Handling Translation Unit `Aspic.cpp'.
>   - Path "Aspic.cpp"
> /usr/include/g++/bits/basic_string.tcc:165: error: redefinition of
> `basic_string::_S_construct'
> /usr/include/g++/bits/basic_string.h:747: previously defined here
> /usr/include/g++/bits/localefwd.h:311: error: `_S_num_categories' undeclared
> here
> /usr/include/g++/bits/localefwd.h:357: error: invalid member declaration near
> token `category'
> /usr/include/g++/bits/locale_facets.h:418: error: invalid declaration near token
> `<'
> /usr/include/g++/bits/locale_facets.h:421: error: invalid declaration near token
> `<'
> /usr/include/g++/bits/locale_facets.h:534: error: invalid declaration near token
> `<'
> /usr/include/g++/bits/locale_facets.h:542: error: invalid declaration near token
> `<'
> /usr/include/g++/bits/locale_facets.h:1134: error: invalid declaration near
> token `<'
> /usr/include/g++/bits/locale_facets.h:1150: error: invalid declaration near
> token `<'
> /usr/include/g++/bits/locale_facets.h:1473: error: invalid declaration near
> token `<'
> /usr/include/g++/bits/locale_facets.h:1476: error: invalid declaration near
> token `<'
> /usr/include/g++/bits/locale_facets.h:1488: error: invalid declaration near
> token `<'
> /usr/include/g++/bits/locale_facets.h:1491: error: invalid declaration near
> token `<'
> /usr/include/g++/bits/basic_ios.h:118: error: invalid member declaration near
> token `if'
> /usr/include/g++/bits/basic_ios.tcc:50: error: `rdbuf' is not a member of
> `basic_ios'
> make: *** [obj/Aspic_wov.cpp] Fehler 1
> 
> I am using the gcc 3.2 (the one that ships with suse 8.1).
> Any suggestions on how to get it working? Thanks.
> 
> Mathias Kurth
> 
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user

I know these error messages very well. The problem is that even with the
workaround mentioned in the README file of the aspectc++ tarball there
are some files in the gcc 3.x header files which cannot be parsed by
ac++ at the moment.

We are working on this issue but until we have a fix you can only try
the following workaround. It works for me under suse 8.2 and debian 3.0:

Either install a 2.9x g++ on your machine and run pumag++conf.pl with
the compiler name as the second argument ...

./pumag++conf.pl puma.config g++-2.95

or take g++ 2.9x header files from somewhere and adapt the include path
definitions of your puma.config.

It is not necessary to compile the generated code with the old g++. This
trick is just needed to provide the header files for the weaver.

I hope this helps,

Olaf





More information about the aspectc-user mailing list