[GCC-XML] Does GCCXML handle #include_next?

Brad King brad.king at kitware.com
Fri May 30 09:07:57 EDT 2008


Steve M. Robbins wrote:
> I'm building ITK on linux using GCC 4.3 and failing.  The trouble seems to
> be gccxml; it's giving errors like
> 
> In file included from /usr/include/c++/4.3/complex:51,
>                  from /build/buildd/insighttoolkit-3.6.0/Utilities/vxl/vcl/iso/vcl_complex.h:6,
>                  from /build/buildd/insighttoolkit-3.6.0/Utilities/vxl/vcl/vcl_complex.h:62,
>                  from /build/buildd/insighttoolkit-3.6.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.cxx:17:
> /usr/include/c++/4.3/cmath:51:23: error: math.h: No such file or directory
> 
> [c.f. http://buildd.debian.org/fetch.cgi?&pkg=insighttoolkit&ver=3.6.0-2&arch=ia64&stamp=1211937639&file=log]
> 
> Now there certainly *is* <math.h> on the system.  Line 51 of cmath reads "#include_next <math.h>".
> Is it the case that gccxml doesn't handle include_next somehow?
> 
> I'm using gccxml pulled from CVS head as of 2008-05-25.

It works fine on my debian 'testing' system.  I can write

  #include <complex>

and run gccxml with g++-4.3 specified as the compiler.  I can confirm
from preprocessing output that it's getting /usr/include/c++/4.3/cmath
and including math.h from line 51.

Please try the same simplified test case.  If it fails, please send me
the output of running with the --debug option.

Thanks,
-Brad


More information about the gccxml mailing list