[CastXML] gccxml replacement wrapper?

Steve M. Robbins steve at sumost.ca
Thu Jul 23 10:00:04 EDT 2015


Hi Brad,

I got the float128 fix into Debian and all architectures are building.  Thanks 
for the quick response!

Now that that we have the castxml package in Debian, the work begins to update 
packages that currently build using gccxml.  (Debian's immediate issue is that 
GCC 5 is becoming the default compiler next week and gccxml doesn't support 
it.  I'm assuming castxml does ... though to be honest, I didn't test)

Anyway, I took a look at the command line arguments for gccxml and castxml and 
advised the packagers:

> I believe you can make the replacement:
> 
> 	gccxml input_file.cc -fxml=output_file.xml
> to	castxml --castxml-gccxml input_file.cc -o output_file.xml


In response Andreas Tille proposed:

> To my opinion it would be great if castxml could provide a wrapper
> script /usr/bin/gccxml that does the syntax translation above.

On the face of it, this seems like a good idea to keep the current packages 
building without any source modifications.

I've attached Andreas' wrapper for your comments.  Are there any "gotchas" 
with this approach that come to mind?  

To be extra-paranoid, I'd probably also check for any of the GCCXML_* 
environment variables and error out if any are set, since we don't (perhaps 
cannot?) emulate them.  

Bear in mind that we have the limited aim of keeping Debian packages building 
until such time as the upstreams move to castxml.  (So, e.g., we don't care 
about Apple or Microsoft.)  

Any other thoughts?

Thanks,
-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gccxml
Type: application/x-shellscript
Size: 621 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/castxml/attachments/20150723/c5c9016d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/castxml/attachments/20150723/c5c9016d/attachment.sig>


More information about the CastXML mailing list