[ITK] [ITK-users] Problem compiling ITK 4.8 on OpenSUSE with gcc 5.1

Alfonso alfonso.castro at udc.es
Wed Jul 29 15:42:55 EDT 2015


Hi.

GCC 5.1 is the compiler shiped with the system, Tumbleweed is the rolling release version of OpenSuSE, all the system is compiled using it.

I invoked cmake using ccmake pathto/sourceitk from build directory. I also probed with cmake-gui and I obtained the same results.

Best regards.

Alfonso Castro
Faculty of Computer Science
University of A Coruna

Enviado desde TypeMail



En 29 jul 2015 21:22, en 21:22, Matt McCormick <matt.mccormick at kitware.com> escrito:
>Hi Alfonso,
>
>Is this the compiler that ships with the system?  We have some
>dashboard builds that build with GCC 5.1 fine.  How is cmake being
>invoked?
>
>The logic that sets the default value for ITK_USE_GOLD_LINKER can be
>found here:
>
>https://github.com/InsightSoftwareConsortium/ITK/blob/master/CMake/ITKSetStandardCompilerFlags.cmake#L206-L219
>
>HTH,
>Matt
>
>On Wed, Jul 29, 2015 at 7:14 AM, Alfonso Castro <alfonso.castro at udc.es>
>wrote:
>> Hi.
>>
>> I am using OpenSuSE Tumbleweed, it uses gcc 5.1 like system compiler:
>>
>> Using built-in specs.
>> COLLECT_GCC=gcc
>> COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/5/lto-wrapper
>> Target: x86_64-suse-linux
>> Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
>--
>> mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
>--enable-
>> languages=c,c++,objc,fortran,obj-c++,java,ada,go
>--enable-checking=release --
>> with-gxx-include-dir=/usr/include/c++/5 --enable-ssp --disable-libssp
>--
>> disable-libvtv --enable-libmpx --disable-plugin --with-
>> bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
>--disable-
>> libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
>--
>> enable-libstdcxx-allocator=new --disable-libstdcxx-pch
>--enable-version-
>> specific-runtime-libs --enable-linker-build-id --enable-linux-futex
>--program-
>> suffix=-5 --without-system-libunwind --enable-multilib
>--with-arch-32=i586 --
>> with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
>> Thread model: posix
>> gcc version 5.1.1 20150713 [gcc-5-branch revision 225736] (SUSE
>Linux)
>>
>> When I try to compile ITK 4.8, gcc gives an error:
>>
>> [  1%] Building CXX object
>>
>Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/Directory.cxx.o
>> In file included from
>>
>/opt/mia/build/itk/Modules/ThirdParty/KWSys/src/itksys/stl/string.hxx:29:0,
>>                  from
>> /opt/mia/build/itk/Modules/ThirdParty/KWSys/src/itksys/stl/string:49,
>>                  from
>>
>/opt/mia/build/itk/Modules/ThirdParty/KWSys/src/itksys/Directory.hxx:16,
>>                  from
>>
>/opt/mia/fuentes/InsightToolkit-4.8.0/Modules/ThirdParty/KWSys/src/KWSys/Directory.cxx:13:
>>
>/opt/mia/build/itk/Modules/ThirdParty/KWSys/src/itksys/ios/iostream:26:23:
>> fatal error: iostream.h: Non hai tal ficheiro ou directorio
>> compilation terminated.
>>
>Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/build.make:169:
>fallo
>> en las instrucciones para el objetivo
>>
>'Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/Directory.cxx.o'
>> make[2]: ***
>>
>[Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/Directory.cxx.o]
>> Error 1
>> CMakeFiles/Makefile2:340: fallo en las instrucciones para el objetivo
>> 'Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/all'
>> make[1]: ***
>[Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/all]
>> Error 2
>> Makefile:136: fallo en las instrucciones para el objetivo 'all'
>> make: *** [all] Error 2
>>
>> I think is provoked for the next message in configuration:
>>
>> Warning: turning off implicit template instantiation
>>
>> The curious thing is I use clang (3.6.1), ITK 4.8 compile without a
>problem
>> with the same configuration, the information of the version of clang
>is:
>>
>> clang version 3.6.1 (tags/RELEASE_361/final 238133)
>> Target: x86_64-suse-linux
>> Thread model: posix
>> Found candidate GCC installation:
>/usr/bin/../lib64/gcc/x86_64-suse-linux/4.8
>> Found candidate GCC installation:
>/usr/bin/../lib64/gcc/x86_64-suse-linux/5
>> Found candidate GCC installation:
>/usr/lib64/gcc/x86_64-suse-linux/4.8
>> Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5
>> Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/5
>> Candidate multilib: .;@m64
>> Selected multilib: .;@m64
>>
>> I am using a directory to build ITK and other for the installation of
>the
>> files. The build directory is empty before the configuration using
>ccmake
>> (3.2.3).
>>
>> Am I making something wrong? Can I change something to compile ITK
>4.8 with
>> gcc 5.1?
>>
>> Also, I'll be very gratefull is someone can explain what makes the
>option
>> ITK_USE_GOLD_LINKER.
>>
>> Thanks in advance.
>>
>> Alfonso Castro
>> Faculty of Computer Science
>> University of A Coruna
>>
>> _____________________________________
>> 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://public.kitware.com/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150729/fe62a947/attachment.html>
-------------- next part --------------
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list