[GCC-XML]Still isn't running, but the errors are getting more interesting

Nicodemus nicodemus at globalite.com.br
Fri Oct 10 16:07:35 EDT 2003


Victor, I think the problem is that the headers weren't patched. Have you
tried running the little script that I sent you that patches the headers?

----- Original Message ----- 
From: "Victor A. Wagner, Jr." <vawjr at rudbek.com>
To: "GCC-XML Discussion" <gccxml at gccxml.org>
Cc: <GM at rudbek.com>
Sent: Friday, October 10, 2003 4:56 PM
Subject: Re: [GCC-XML]Still isn't running, but the errors are getting more
interesting


> Thanks for all your help on this... I'm puzzled about:
> > > C:\Projects\K2\Projects\GCC_XML\Release\vcInstall.exe
> > > C:\Projects\K2\Projects\GCC_XML\Release\vcInstallPatch.exe
> > > C:\Projects\K2\Projects\GCC_XML\VcInstall\vcPatch.exe
> am I supposed to ignore those?  the notes don't seem to say.
> (I did finally run    release\vcinstall vcinstall which built a Vc71
> directory with some corrected include files in it.)
> Looking at the output, it seems that the patched include files aren't
being
> used....since the locally corrected copy of <typeinfo> doesn't have a
using
> directive at line 35.
>
> I haven't yet built gccxml_cc1plus, but I tried copying the one which was
> installed by the windows installer and I get results like this:
> C:\Projects\K2\Testing-General>pyste.py --module=hello world.pyste
> In file included from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xmemory:6,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xstring:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/stdexcept:6,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xlocale:7,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xiosbase:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/streambuf:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xlocnum:9,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/ios:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/ostream:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/istream:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/string:5,
>                   from world.h:5:
> C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/Include/new:58:
parse
>     error before `...' token
> C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/Include/new:87:
parse
>     error before `...' token
> In file included from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xlocale:8,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xiosbase:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/streambuf:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xlocnum:9,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/ios:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/ostream:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/istream:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/string:5,
>                   from world.h:5:
> C:/Program Files/Microsoft Visual Studio .NET
2003/Vc7/Include/typeinfo:35:
> using
>     directive `type_info' introduced ambiguous type `std::type_info'
> In file included from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xiosbase:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/streambuf:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/xlocnum:9,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/ios:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/ostream:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/istream:5,
>                   from C:/Program Files/Microsoft Visual Studio .NET
> 2003/Vc7/Include/string:5,
>                   from world.h:5:
> C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/Include/xlocale: In
>     member function `bool std::locale::operator()(const
> std::basic_string<_Elem,
>     _Traits, _Alloc>&, const std::basic_string<_Elem, _Traits, _Alloc>&)
> const':
> C:/Program Files/Microsoft Visual Studio .NET
2003/Vc7/Include/xlocale:182:
> parse
>     error before `;' token
> Traceback (most recent call last):
>    File "c:\Python23\pyste.py", line 4, in ?
>      pyste.main()
>    File "C:\Python23\Lib\site-packages\Pyste\pyste.py", line 393, in main
>      status = Begin()
>    File "C:\Python23\Lib\site-packages\Pyste\pyste.py", line 238, in Begin
>      return GenerateCode(parser, module, out, interfaces, multiple)
>    File "C:\Python23\Lib\site-packages\Pyste\pyste.py", line 351, in
> GenerateCode
>      declarations, parsed_header = parser.Parse(header, interface, tail)
>    File "C:\Python23\Lib\site-packages\Pyste\CppParser.py", line 157, in
Parse
>      declarations = self.ParseWithGCCXML(header, tail)
>    File "C:\Python23\Lib\site-packages\Pyste\CppParser.py", line 119, in
> ParseWithGCCXML
>      raise CppParserError, 'Error executing gccxml'
> Pyste.CppParser.CppParserError: Error executing gccxml
>
> also running
> C:\Projects\K2\Projects\GCC_XML>gccxml --print
> yeilds:
>
> GCC-XML version 0.5.0
> Configuration settings:
>    GCCXML_CONFIG="C:/Projects/K2/Projects/GCC_XML/config"
>    GCCXML_COMPILER="msvc71"
>    GCCXML_CXXFLAGS="  /W3 /Zm1000 /GX /GR"
>    GCCXML_EXECUTABLE="C:/Projects/K2/Projects/GCC_XML/gccxml_cc1plus.exe"
>    GCCXML_FLAGS="-D__stdcall=__attribute__((__stdcall__))
> -D__cdecl=__attribute__((__cdecl__))
> -D__fastcall=__attribute__((__fastcall__))
> -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)
)
> -D_fastcall=__attribute__((__fastcall__))
> -D__declspec(x)=__attribute__((x)) -D__cplusplus -D_inline=inline
> -D__forceinline=__inline -D_MSC_VER=1310 -D_MSC_EXTENSIONS -D_WIN32
> -D_M_IX86 -D_WCHAR_T_DEFINED -DPASCAL= -DRPC_ENTRY= -DSHSTDAPI=HRESULT
> -D_INTEGRAL_MAX_BITS=64 -D__uuidof(x)=IID() -DSHSTDAPI_(x)=x -D__w64=
> "-D__int64=long long" -I"C:/Projects/K2/Projects/GCC_XML/Vc71/Include"
> -I"C:/Projects/K2/Projects/GCC_XML/Vc71/PlatformSDK" -I"C:/Program
> Files/Microsoft Visual Studio .NET 2003/Vc7/Include" -I"C:/Program
> Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Include"
> "
>    GCCXML_USER_FLAGS=""
>    GCCXML_ROOT="C:/Projects/K2/Projects/GCC_XML"
>
> the local Vc71 directory is clearly mentioned before the system
> directories... I'm puzzled how the parser is getting the wrong includes.
> I've managed to get cygwin installed, I'll attempt to build a
> new  gccxml_cc1plus later this afternoon... it's lunchtime now
>
> At Friday 2003-10-10 06:42, Brad King wrote:
> >On Thu, 9 Oct 2003, Victor A. Wagner, Jr. wrote:
> >
> > > Ok, I get the 'binaries' form the website (windows install) and
> > > ....oops, they don't know about 7.1 (even tho it's been out for 6+
> > > months and is the only nearly compatible C++ Microsoft has EVER done)
> >
> >Please note that the last release of GCC-XML was done in 2002, well
before
> >7.1 was released:
> >
> >http://www.gccxml.org/HTML/News.html
> >
> >Since then we've had no funding to do more work or releases.  That which
> >has been done has been occasional tweaks requiring a few minutes apiece.
> >If you'd like to arrange a contract with Kitware for a release to be done
> >and better documentation to be written, please contact
> >kitware at kitware.com.  Otherwise you'll have to wait until we have time to
> >do it.
> >
> > > so I start looking around... I now have FOUR (4) .exe files that I'm
not
> > > sure what to do with
> > >
> > > C:\Projects\K2\Projects\GCC_XML\Release\gccxml.exe
> > > C:\Projects\K2\Projects\GCC_XML\Release\vcInstall.exe
> > > C:\Projects\K2\Projects\GCC_XML\Release\vcInstallPatch.exe
> > > C:\Projects\K2\Projects\GCC_XML\VcInstall\vcPatch.exe
> > >
> > > what do I run?  from where? .... this is staggeringly frustrating
> > >
> > > btw, at this point I can't even tell what the problem is.... here's
the
> > > output from my run (yeah, I'm _really_ trying to get pyste working).
> > >
> > > C:\Projects\K2\Testing-General>pyste.py --module=hello world.pyste
> > > Error executing C:/Program Files/GCC_XML/gccxml_cc1plus.exe
> >
> >The instructions at
> >
> >http://www.gccxml.org/HTML/Install.html
> >
> >have two parts.  One covers "gccxml_cc1plus", the other covers "gccxml".
> >The "Windows" part of the "gccxml_cc1plus" instructions tells you to
build
> >it under cygwin.  The "Windows" part of the "gccxml" instructions tells
> >you to copy gccxml_cc1plus to the top of your build tree.
> >
> >What you need to do is build gccxml_cc1plus.exe under cygwin and copy it
> >to C:\Projects\K2\Projects\GCC_XML.  Then running gccxml.exe from the
> >build tree should work fine.
> >
> >-Brad
> >
> >_______________________________________________
> >gccxml mailing list
> >gccxml at gccxml.org
> >http://www.gccxml.org/mailman/listinfo/gccxml
>
> Victor A. Wagner Jr.      http://rudbek.com
> The five most dangerous words in the English language:
>                "There oughta be a law"
>
> _______________________________________________
> gccxml mailing list
> gccxml at gccxml.org
> http://www.gccxml.org/mailman/listinfo/gccxml
>




More information about the gccxml mailing list