[GCC-XML] GCCXML chokes on <complex>

Steve M. Robbins steve at sumost.ca
Fri May 7 22:37:48 EDT 2010


Hi,

I'm building ITK for linux using the CVS head of gccxml as of May 1.

It builds on x86 and amd64 but fails on several others including alpha
and sparc.  Full status here:
  https://buildd.debian.org/status/package.php?p=insighttoolkit

The first error encountered is 

[ 37%] wrap_VXLNumericsJava.idx from 
cd /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/Wrapping/CSwig/VXLNumerics && /usr/bin/cableidx /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/Wrapping/CSwig/VXLNumerics/wrap_VXLNumericsJava.xml /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/Wrapping/CSwig/VXLNumerics/wrap_VXLNumericsJava.idx
/usr/bin/cmake -E cmake_progress_report /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/CMakeFiles 
[ 37%] wrap_vnl_matrix.xml from 
cd /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/Wrapping/CSwig/VXLNumerics && /usr/bin/gccxml -fxml-start=_cable_ -fxml=/build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.xml --gccxml-gcc-options /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Build/Wrapping/CSwig/VXLNumerics/SwigInc.txt -DCSWIG -DCABLE_CONFIGURATION /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.cxx
In file included from /usr/include/c++/4.4/complex:43,
                 from /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Utilities/vxl/vcl/iso/vcl_complex.h:6,
                 from /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Utilities/vxl/vcl/vcl_complex.h:62,
                 from /build/buildd-insighttoolkit_3.18.0-2-alpha-LID6Y4/insighttoolkit-3.18.0/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.cxx:17:
/usr/include/c++/4.4/alpha-linux-gnu/bits/c++config.h:214: error: expected unqualified-id before 'namespace'

The c++config.h file contents are:

   206  // XXX GLIBCXX_ABI Deprecated
   207  // Define if compatibility should be provided for -mlong-double-64
   208  #define _GLIBCXX_LONG_DOUBLE_COMPAT 1
   209
   210  // Namespace associations for long double 128 mode.
   211  #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__ 
   212  namespace std
   213  {
   214    inline namespace __gnu_cxx_ldbl128 { }
   215  }

I tried compiling a simple program:

#include <complex>

int main(int ac, char* av[])
{
    return 0;
}

With gcc, it compiles on alpha.  Using gccxml, I get the same error as shown above.  Does gccxml
need a tweak to handle this?


(The hppa issue is different and likely can be addressed by reverting
http://vxl.svn.sourceforge.net/viewvc/vxl?view=rev&revision=11383)

Thanks,
-Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://www.gccxml.org/pipermail/gccxml/attachments/20100507/3f08513a/attachment.pgp>


More information about the gccxml mailing list