Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147976 - dev-cpp/gccxml-0.6 broken with gcc-4.1.x
Summary: dev-cpp/gccxml-0.6 broken with gcc-4.1.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Grant Goodyear (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-09-17 12:28 UTC by Tiziano Müller (RETIRED)
Modified: 2006-10-10 14:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2006-09-17 12:28:20 UTC
When I try to generate python-bindings for imagemagick (re-generation the bindings for pythonmagick-0.6), I get the following error:

pyste.py --module=_PythonMagick --multiple --out=./pythonmagick_src -I ['/usr/include'] pyste_src/PathMovetoAbs.pyste
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/string:53,
                 from /usr/include/Magick++/Drawable.h:18:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h: In
   member function `bool std::basic_string<_CharT, _Traits,
   _Alloc>::_M_disjunct(const _CharT*) const':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h:329: error: syntax
   error before `;' token
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h:330: error: syntax
   error before `;' token
Traceback (most recent call last):
  File "/usr/bin/pyste.py", line 4, in ?
    pyste.main()
  File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 418, in main
    status = Begin()
  File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 257, in Begin
    return GenerateCode(parser, module, out, interfaces, multiple)
  File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 376, in GenerateCode
    declarations, parsed_header = parser.Parse(header, interface, tail)
  File "/usr/lib/python2.4/site-packages/Pyste/CppParser.py", line 165, in Parse
    declarations = self.ParseWithGCCXML(header, tail)
  File "/usr/lib/python2.4/site-packages/Pyste/CppParser.py", line 126, in ParseWithGCCXML
    raise CppParserError, 'Error executing gccxml'
Pyste.CppParser.CppParserError: Error executing gccxml

When I pass the option "--gccxml-compiler g++-3.4.6" to gccxml, it works.
I'm not surprised though, version 0.6 of gccxml is from year 2004.
Reading through the mailinglist shows that others had some problems as well: http://public.kitware.com/pipermail/gccxml/2006-June/000800.html
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2006-09-17 12:30:03 UTC
According to this note:
http://hanzubon.jp/gcc4/changes/gccxml_0.7.0+cvs20060311-1_ppc64.changes

GCC-4* support may have been added in the CVS version of gccxml.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2006-09-17 14:08:27 UTC
Jup, CVS version seems to work with gcc-4.x but breaks pyste.
I have upped a snapshot here: http://dev-zero.ch/gentoo/distfiles/gccxml-0.7.0_pre20060916.tbz2
Comment 3 Grant Goodyear (RETIRED) gentoo-dev 2006-10-10 14:04:35 UTC
I've decided to sync w/ Debian, since it seems that upstream is never going
to get around to generating a release.  I suspect that pyste is still broken
(and probably will remain broken forever, since it's no longer maintained).