Fw: [Insight-users] Insight 1.6 Compilation

Mauricio Inforçati mauricio.inforcati at cenpra.gov.br
Thu, 19 Feb 2004 14:02:26 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C3F6F1.01279B70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Brad,
Here it goes xml.log. It seems gcc is not using the "patch", isn´t it?
 Thanks for instrutions,
    Mauricio

> ----- Original Message ----- 
> From: "Brad King" <brad.king at kitware.com>
> To: "Mauricio Inforçati" <mauricio.inforcati at cenpra.gov.br>
> Sent: Thursday, February 19, 2004 11:40 AM
> Subject: Re: [Insight-users] Insight 1.6 Compilation
>
>
> > Mauricio Inforçati wrote:
> > > I´ve got it on ITK download site, just below
insightToolkit-1.6.0.tar.gz
> > > link.  CableSwig-ITK-1.6.0.tar.gz
> >
> > Okay, that version should have the fix.  We'll have to track down why it
> > didn't work.  The error message you are seeing is coming from GCC-XML
> > within CableSwig.  It uses a patched parser from GCC 3.3 to parse C++
> > code to help generate wrappers.  Part of doing this means that the GCC
> > 3.3 parser must handle the header files from your system's GCC 2.95
> library.
> >
> > GCC-XML comes with a special set of headers written to wrap around GCC
> > 2.95's headers and make them parsable by 3.3.  Look in
> > CableSwig/GCC_XML/Support/GCC/2.95 to see them.  In particular, there
> > should be a pthread.h header present that looks like this:
> >
> > #ifndef GCCXML_PTHREAD_H
> > #define GCCXML_PTHREAD_H
> >
> > /* Some pthread.h files use __thread, which is a keyword for GCC 3.3.
> >     Change the name for the duration of including pthread.h.  */
> > #ifndef __thread
> > # define __thread gccxml__thread
> > # define gccxml__thread gccxml__thread
> > #endif
> > #include_next <pthread.h>
> > #ifdef gccxml__thread
> > # undef gccxml__thread
> > # undef __thread
> > #endif
> >
> > #endif
> >
> > We need to determine whether this file is getting used and whether it is
> > working.  Please go to Wrapping/CSwig/Common in your build tree and run
> >
> > make `pwd`/wrap_ITKCommonBase.xml VERBOSE=1 >xml.log 2>&1
> >
> > Then send me the xml.log file that is produced.
> >
> > Thanks,
> > -Brad
> >
> >
>

------=_NextPart_000_0017_01C3F6F1.01279B70
Content-Type: application/octet-stream;
	name="xml.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="xml.log"

Building wrap_ITKCommonBase.xml from  =
(HOME)/ITK/InsightToolkit-1.6.0-binary/Wrapping/CSwig/Common/wrap_ITKComm=
onBase.xml...
/usr/lib/CableSwig/bin/gccxml -fxml-start=3D_cable_ -DCSWIG =
-DCABLE_CONFIGURATION =
(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common/wrap_ITKCommonBase.=
cxx =
-fxml=3D(HOME)/ITK/InsightToolkit-1.6.0-binary/Wrapping/CSwig/Common/wrap=
_ITKCommonBase.xml -I(HOME)/ITK/InsightToolkit-1.6.0-binary =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/Algorithms =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/BasicFilters =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/Common =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/Numerics =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/IO =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/Numerics/FEM =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/Numerics/Statistics =
-I(HOME)/ITK/InsightToolkit-1.6.0/Code/SpatialObject =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/MetaIO =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/DICOMParser =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/DICOMParser =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/expat =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/expat =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/vxl/vcl =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/vxl/core =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/vxl/vcl =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/vxl/core =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/vxl/v3p/netlib =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/zlib =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/zlib =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/png =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/png =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/jpeg =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/jpeg =
-I(HOME)/ITK/InsightToolkit-1.6.0/Utilities/tiff =
-I(HOME)/ITK/InsightToolkit-1.6.0-binary/Utilities/tiff =
-I/usr/local/include/python2.3 =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/VXLNumerics =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Numerics =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/BasicFilters =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/IO =
-I(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Algorithms =
-I/usr/local/include/python2.3=20
In file included from /usr/include/g++-3/stl_alloc.h:71,
                 from /usr/include/g++-3/alloc.h:21,
                 from /usr/include/g++-3/std/bastring.h:39,
                 from /usr/include/g++-3/string:6,
                 from =
/usr/lib/CableSwig/share/gccxml-0.5/GCC/2.95/string:4,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkMacro.h:36,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkSmartPointer.h:20,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkLightObject.h:27,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkObject.h:23,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkCommand.h:20,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common/wrap_ITKCommonBase.=
cxx:21:
/usr/include/pthread.h:163: error: syntax error before `__thread'
/usr/include/pthread.h:165: error: `pthread_create' declared as function =

   returning a function
/usr/include/pthread.h:166: error: syntax error before `void'
/usr/include/pthread.h:591: error: storage class specifiers invalid in=20
   parameter declarations
/usr/include/pthread.h:591: error: storage class specified for parameter =
`
   parameter'
In file included from /usr/include/pthread.h:655,
                 from /usr/include/g++-3/stl_alloc.h:71,
                 from /usr/include/g++-3/alloc.h:21,
                 from /usr/include/g++-3/std/bastring.h:39,
                 from /usr/include/g++-3/string:6,
                 from =
/usr/lib/CableSwig/share/gccxml-0.5/GCC/2.95/string:4,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkMacro.h:36,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkSmartPointer.h:20,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkLightObject.h:27,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkObject.h:23,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Code/Common/itkCommand.h:20,
                 from =
(HOME)/ITK/InsightToolkit-1.6.0/Wrapping/CSwig/Common/wrap_ITKCommonBase.=
cxx:21:
/usr/include/bits/sigthread.h:36: error: storage class specifiers =
invalid in=20
   parameter declarations
/usr/include/bits/sigthread.h:36: error: storage class specified for =
parameter=20
   `parameter'
make: *** =
[(HOME)/ITK/InsightToolkit-1.6.0-binary/Wrapping/CSwig/Common/wrap_ITKCom=
monBase.xml] Error 1

------=_NextPart_000_0017_01C3F6F1.01279B70--