[Insight-users] build fails to download gccxml (4.2.1)
Bradley Lowekamp
blowekamp at mail.nih.gov
Mon Nov 12 10:10:17 EST 2012
Hello,
I'd recommend trying to build WrapITK from the master branch of ITK's git repository. A lot of work has gone into WrapITK lately.
However, the legacy GCCXML repo should not be causing a build error...
Brad
On Nov 12, 2012, at 3:09 AM, David Froger <david.froger at gmail.com> wrote:
> Dear Itk users,
>
> I've difficulties to install ITK 4.2.1 with Python wrapping on Ubuntu 10.04 64bits,
> the problem being releated to gccxml.
>
> Note that I used '-DITK_USE_SYSTEM_SWIG=ON', because cmake fails to dowload PCRE,
> required to install Swig.
>
> Here is what I've tried.
>
> configure and build logs are attached, compressed because of the 80 KB limit.
>
> ===============================================================================
> First try
> ===============================================================================
>
> The configure step works (see itk_4.2.1_configure_0.log):
>
> cmake \
> -DBUILD_EXAMPLES=OFF \
> -DBUILD_TESTING=OFF \
> -DBUILD_SHARED_LIBS=ON \
> -DITK_WRAP_PYTHON=ON \
> -DITK_USE_SYSTEM_SWIG=ON \
> /the/absolute/path/to/InsightToolkit-4.2.1
>
> but the build step (see itk_4.2.1_build_0.log) :
>
> make -j8
>
> give me the error:
>
> U GCC_XML/GCC_XML/VcInstall/vcInstall.cxx
> U GCC_XML/GCC_XML/VcInstall/vcPatch.exe
> U GCC_XML/GCC_XML/VcInstall/vcPatch.readme.txt
> U GCC_XML/GCC_XML/VcInstall/vc_helper
> [ 12%] No patch step for 'GCC_XML'
> [ 12%] No update step for 'GCC_XML'
> [ 12%] Performing configure step for 'GCC_XML'
> CMake Error at CMakeLists.txt:5 (MESSAGE):
> GCC-XML has moved! See
>
> http://www.gccxml.org/HTML/Download.html
>
> for details. This source tree comes from the legacy CVS repository at
>
> :pserver:anoncvs at www.gccxml.org:/cvsroot/GCC_XML
>
> and exists only to report this message.
>
> The legacy repository is no longer maintained. Old versions are still
> available by date- or tag-based checkout, but the new repository is
> preferred.
>
>
> -- Configuring incomplete, errors occurred!
> make[2]: *** [Wrapping/Generators/GccXML/gccxml/src/GCC_XML-stamp/GCC_XML-configure] Error 1
> make[1]: *** [Wrapping/Generators/GccXML/CMakeFiles/GCC_XML.dir/all] Error 2
>
> ===============================================================================
> Second try
> ===============================================================================
>
> I've tried to used the gccxml installed on my system, instead of letting
> cmake downloading it.
>
> $ gccxml --version
> GCC-XML version 0.9.0
>
> $ gcc --version
> gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
>
>
> The configure step works (see itk_4.2.1_configure_1.log):
>
> cmake \
> -DBUILD_EXAMPLES=OFF \
> -DBUILD_TESTING=OFF \
> -DBUILD_SHARED_LIBS=ON \
> -DITK_WRAP_PYTHON=ON \
> -DITK_USE_SYSTEM_SWIG=ON \
> -DITK_USE_SYSTEM_GCCXML=ON \
> /the/absolute/path/to/InsightToolkit-4.2.1
>
> but the build step (see itk_4.2.1_build_1.log) :
>
> make -j8
>
> give me the error:
>
> In file included from /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/xmmintrin.h:36,
> from /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/emmintrin.h:36,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Core/Common/include/itkMathDetail.h:43,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Core/Common/include/itkMath.h:32,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Core/Common/include/itkIndex.h:23,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h:21,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Filtering/LabelMap/include/itkLabelObject.h:23,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Filtering/LabelMap/include/itkShapeLabelObject.h:21,
> from /local/froger/itk_distrib_workdir/src/InsightToolkit-4.2.1/Modules/Filtering/LabelMap/include/itkStatisticsLabelObject.h:21,
> from /local/froger/itk_distrib_workdir/build/4.2.1.b.1/Wrapping/Modules/ITKCommon/vcl_complex.cxx:2:
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/mmintrin.h: In function 'int __vector__ _mm_add_si64(int __vector__, int __vector__)':
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/include/mmintrin.h:311: error: cannot convert 'long long int __vector__' to 'long long unsigned int' for argument '1' to 'long long unsigned int __builtin_ia32_paddq(long long unsigned int, long long unsigned int)'
>
>
> ===============================================================================
> Third try
> ===============================================================================
>
> I've thought that maybe ITK was not compatible with gccxml 0.9.0, so I've installed
> legacy gccxml 0.6 and tried with it.
>
> $ /local/froger/opt/gccxml/0.6.0/bin/gccxml --version
> GCC-XML version 0.6.0
>
> The configure step works (see itk_4.2.1_configure_2.log):
>
> cmake \
> -DBUILD_EXAMPLES=OFF \
> -DBUILD_TESTING=OFF \
> -DBUILD_SHARED_LIBS=ON \
> -DITK_WRAP_PYTHON=ON \
> -DITK_USE_SYSTEM_SWIG=ON \
> -DITK_USE_SYSTEM_GCCXML=ON \
> -DGCCXML=/local/froger/opt/gccxml/0.6.0/bin/gccxml
> /the/absolute/path/to/InsightToolkit-4.2.1
>
> but the build step (see itk_4.2.1_build_2.log) :
>
> make -j8
>
> give me the error (obviously, 0.6 is not the good version):
>
> gccxml_cc1plus: error: unrecognized option `--gccxml-gcc-options'
>
>
> Thank for any help!
>
> Best regards,
> David
> <itk_4.2.1_gccxml.tar.bz2>_____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list