[CastXML] Output castxml

Michka Popoff michkapopoff at gmail.com
Sun Nov 29 16:05:49 EST 2015


pygccxml just tries to make a wild guess what to use.
If you have a mix of castxml/gccxml installed, or the wrapper version,
it may not be the one you want to use.

You need to set the path yourself by passing the xml_generator_path
argument to the configuration.

config = parser.xml_generator_configuration_t(
	xml_generator_path=generator_path,
	xml_generator=generator_name)

Note: RuntimeError: Error occured while running GCCXML just means
that gccxml (or castxml) crashed and did not write any xml file. This
is just the initial error you have mentioned.

Could you please provide a small c++ code example that makes
castxml fail ?

Michka

> On 29 Nov 2015, at 21:41, Uğur Büyükdurak <ugurbd at gmail.com> wrote:
> 
> It may be the case, because pygccxml 1.7.1 finds the path to castxml or gccxml automatically. When they were both installed, pygccxml probably chose gccxml over castxml. But now the problem is 
> 
> RuntimeError: Error occured while running GCCXML: ['/usr/bin/castxml', '-I.', 'example.h', '--castxml-gccxml', '-o', '/tmp/tmpKsaXwW.xml']
> 
> see the path, it points to '/usr/bin/castxml' so it doesn't seem like it is gccxml which is to be run. It doesn't make sense to me. 
> 
> On Sun, Nov 29, 2015 at 3:34 PM, Steve Robbins <steve at sumost.ca> wrote:
> I wrote that wrapper so send bug reports my way. There should be nothing wrong with installing both packages.
> 
> It looks to me like you were invoking gccxml. If you want to use castxml then be sure to invoke castxml.
> 
> On November 29, 2015 2:23:58 PM CST, "Uğur Büyükdurak" <ugurbd at gmail.com> wrote:
> Just to let you know, I had installed gccxml from Ubuntu repository after installing castxml. It wasn't normal gccxml but something more like wrapper gccxml around castxml. I have deleted it and castxml seems to work fine now. 
> 
> Do you know what's wrong with installing gccxml and castxml on the same machine? I am using Ubuntu 15.10
> 
> On Sun, Nov 29, 2015 at 6:28 AM, Uğur Büyükdurak <ugurbd at gmail.com> wrote:
> I am also getting following error when I try to use castxml through pygccxml
> 
> RuntimeError: Error occured while running GCCXML: ['/usr/bin/castxml', '-I.', 'example.h', '--castxml-gccxml', '-o', '/tmp/tmpKsaXwW.xml']
> 
> Any ideas?
> 
> On Sun, Nov 29, 2015 at 6:17 AM, Uğur Büyükdurak <ugurbd at gmail.com> wrote:
> Hello everybody,
> 
> I am finally able to install castxml on my machine. But when I try to use it, I am getting errors that doesn't make sense to me at all. Kind of errors I wasn't having with gccxml actually. 
> 
> For example when I try to run a simple header file on castxml I am getting the following error,
> 
> error: '--castxml-gccxml' does not work with c11, although I use no C++11 syntax whatsoever.
> Without --cast-gccxml option, I am having errors that have no meaning at all. For example
> 
> ./deneme.h:3:1: error: unknown type name 'using'
> using std::cout;
> ^
> ./deneme.h:3:10: error: expected ';' after top level declarator
> using std::cout;
>          ^
>          ;
> ./deneme.h:3:11: error: expected identifier or '('
> using std::cout;
>           ^
> ./deneme.h:4:1: error: unknown type name 'using'
> using std::endl;
> ^
> ./deneme.h:4:10: error: expected ';' after top level declarator
> using std::endl;
> 
> There is nothing wrong with the source file syntax.
> 
> One more thing is when castxml comes across an #include statement it simply gives an error like this
> 
> #include <iostream>
>          ^
> 1 error generated.
> 
> Which is something I had never had problem with gccxml. 
> 
> Am I missing something?
> I installed castxml from Ubuntu repository with .deb that is compatible with Ubuntu 15.10
> I have clang 3.7.0 installed on my machine. Both are 64 bit. 
> 
> this is the output from castxml --version
> 
> castxml version 0.1-g8a08a44
> 
> CastXML project maintained and supported by Kitware (kitware.com).
> 
> Ubuntu clang version 3.6.2-+rc1-1~exp1ubuntu2 (tags/RELEASE_362/rc1) (based on LLVM 3.6.2)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> 
> Regards,
> 
> 
> 
> 
> 
> CastXML mailing list
> CastXML at public.kitware.com
> http://public.kitware.com/mailman/listinfo/castxml
> 
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> 
> _______________________________________________
> CastXML mailing list
> CastXML at public.kitware.com
> http://public.kitware.com/mailman/listinfo/castxml



More information about the CastXML mailing list