[GCC-XML] gccxml fedora4 trouble

Neal Becker ndbecker2 at gmail.com
Thu Oct 27 07:26:31 EDT 2005


Hi.  I'm trying out gccxml-0.6 on Fedora 4 (x86_64), and having trouble.  I 
suspect gccxml is based on a version of gcc that is too old.


[nbecker at nbecker2 ~]$ gccxml -v Hello.cc
#include wrapper search starts here:
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.0.1
 /usr/include/c++/4.0.1/x86_64-redhat-linux
 /usr/include/c++/4.0.1/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-redhat-linux/4.0.1/include
 /usr/include
End of search list.
In file included from /usr/include/c++/4.0.1/ext/mt_allocator.h:37,
                 
from /usr/include/c++/4.0.1/x86_64-redhat-linux/bits/c++allocator.h:34,
                 from /usr/include/c++/4.0.1/bits/allocator.h:52,
                 from /usr/include/c++/4.0.1/memory:54,
                 from /usr/include/c++/4.0.1/string:47,
                 from /usr/include/c++/4.0.1/bits/locale_classes.h:47,
                 from /usr/include/c++/4.0.1/bits/ios_base.h:47,
                 from /usr/include/c++/4.0.1/ios:48,
                 from /usr/include/c++/4.0.1/ostream:44,
                 from /usr/include/c++/4.0.1/iostream:44,
                 from Hello.cc:1:
/usr/include/c++/4.0.1/new:84: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/4.0.1/new:85: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/4.0.1/new:88: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/4.0.1/new:89: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/4.0.1/new:94: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/4.0.1/new:95: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
In file included from /usr/include/c++/4.0.1/string:52,
                 from /usr/include/c++/4.0.1/bits/locale_classes.h:47,
                 from /usr/include/c++/4.0.1/bits/ios_base.h:47,
                 from /usr/include/c++/4.0.1/ios:48,
                 from /usr/include/c++/4.0.1/ostream:44,
                 from /usr/include/c++/4.0.1/iostream:44,
                 from Hello.cc:1:
/usr/include/c++/4.0.1/bits/basic_string.h: In member function `bool
   std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*) 
const
   ':
/usr/include/c++/4.0.1/bits/basic_string.h:324: error: syntax error before `;'
   token
/usr/include/c++/4.0.1/bits/basic_string.h:325: error: syntax error before `;'
   token

Let's try again using gcc-3.2.3:

GCCXML_COMPILER=gcc32 gccxml -v Hello.cc
#include wrapper search starts here:
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.2.3
 /usr/include/c++/3.2.3/x86_64-redhat-linux
 /usr/include/c++/3.2.3/backward
 /usr/local/include
 /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/include
 /usr/include
End of search list.
In file included from /usr/include/c++/3.2.3/bits/stl_algobase.h:69,
                 from /usr/include/c++/3.2.3/memory:54,
                 from /usr/include/c++/3.2.3/string:48,
                 from /usr/include/c++/3.2.3/bits/localefwd.h:49,
                 from /usr/include/c++/3.2.3/ios:48,
                 from /usr/include/c++/3.2.3/ostream:45,
                 from /usr/include/c++/3.2.3/iostream:45,
                 from Hello.cc:1:
/usr/include/c++/3.2.3/new:79: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.2.3/new:80: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.2.3/new:83: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.2.3/new:84: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.2.3/new:89: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.2.3/new:90: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20051027/2f22016b/attachment.sig>


More information about the gccxml mailing list