[Insight-users] Problem compiling ITK with ICC v 9.0.016
Kevin Wang
kwang.ca at gmail.com
Thu May 5 10:43:11 EDT 2005
Hi Mathieu and Arun,
I met the same problem using icc 8.1.029. As Arun suggested, it can be
solved by using icc's own header files. and this is done by setting
CXXFLAGS to "cxxlib-icc".
-- Kevin
On 4/18/05, Mathieu Malaterre <mathieu.malaterre at kitware.com> wrote:
> Arun,
>
> Did you define: GXX_ROOT or GXX_INCLUDE ? If so just removed them.
> Otherwise there is a forum for icc related question:
>
> http://softwareforums.intel.com/ids/board?board.id=16
>
> Where a similar problem can be found:
>
> http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=2280
>
> HTH
> Mathieu
>
> Hopefully you should
>
> Arun Kulshreshtha wrote:
> > hi,
> >
> > Bar.cxx is compiling correctly on my mechine without
> > any errors/warnings. I am using SGI IRIX plateform.
> >
> > The problem that i can see is that it is using the
> > standerd limits file provided by gcc not by icc. How
> > can i ask the icc compiler to use its own include
> > files rather than standerd files in /usr/include.
> >
> > Thanks
> > Arun
> >
> > --- Mathieu Malaterre <mathieu.malaterre at kitware.com>
> > wrote:
> >
> >
> >>Arun,
> >>
> >> What is your linux distribution ? It looks like you
> >>did not install icc
> >>properly or you changed some settings during/after
> >>cmake first ran. Can
> >>you compile something like:
> >>
> >>
> >>//--------------- bar.cxx--------------
> >>#include <string>
> >>
> >>int main()
> >>{
> >> std::string foo;
> >> return 0;
> >>}
> >>//--------------- end of bar.cxx--------------
> >>
> >>$ icpc bar.cxx
> >>
> >>Thanks
> >>Mathieu
> >>
> >>
> >>Arun Kulshreshtha wrote:
> >>
> >>>hi,
> >>>
> >>>I am trying to compile the ITK with ICC compiler
> >>
> >>but i
> >>
> >>>am getting
> >>>many errors. Can anybody help me ? I configured
> >>
> >>cmake
> >>
> >>>to use icc
> >>>in place of gcc and icpc in place of c++. I am
> >>
> >>using
> >>
> >>>ICC v9.0.016.
> >>>
> >>>Here are the errors
> >>>
> >>>icpc -o metaGaussian.o -i_dynamic -O3 -ipo
> >>
> >>-tpp2
> >>
> >>>-mcpu itanium2 -I/usr/people/arunk/ITK/icc9
> >>>-I/usr/people/arunk/ITK-Source/Code/Algorithms
> >>>-I/usr/people/arunk/ITK-Source/Code/BasicFilters
> >>>-I/usr/people/arunk/ITK-Source/Code/Common
> >>>-I/usr/people/arunk/ITK-Source/Code/Numerics
> >>>-I/usr/people/arunk/ITK-Source/Code/IO
> >>>-I/usr/people/arunk/ITK-Source/Code/Numerics/FEM
> >>>
> >>
> > -I/usr/people/arunk/ITK-Source/Code/Numerics/Statistics
> >
> >>>-I/usr/people/arunk/ITK-Source/Code/SpatialObject
> >>>-I/usr/people/arunk/ITK-Source/Utilities/MetaIO
> >>>-I/usr/people/arunk/ITK-Source/Utilities/NrrdIO
> >>>
> >>
> >>-I/usr/people/arunk/ITK-Source/Utilities/DICOMParser
> >>
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/DICOMParser
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/expat
> >>>-I/usr/people/arunk/ITK-Source/Utilities/expat
> >>>-I/usr/people/arunk/ITK/icc9/Utilities
> >>>-I/usr/people/arunk/ITK-Source/Utilities
> >>>-I/usr/people/arunk/ITK-Source/Utilities/vxl/vcl
> >>>-I/usr/people/arunk/ITK-Source/Utilities/vxl/core
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/vxl/vcl
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/vxl/core
> >>>
> >>
> > -I/usr/people/arunk/ITK-Source/Utilities/vxl/v3p/netlib
> >
> >>>-I/usr/people/arunk/ITK-Source/Utilities/zlib
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/zlib
> >>>-I/usr/people/arunk/ITK-Source/Utilities/png
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/png
> >>>-I/usr/people/arunk/ITK-Source/Utilities/jpeg
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/jpeg
> >>>-I/usr/people/arunk/ITK-Source/Utilities/tiff
> >>>-I/usr/people/arunk/ITK/icc9/Utilities/tiff -c
> >>>
> >>
> > /usr/people/arunk/ITK-Source/Utilities/MetaIO/metaGaussian.cxx
> >
> >>>/usr/include/c++/3.2.3/limits(1736): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1736): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_float_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error: asm
> >>>statements not supported in this environment
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1813): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return __glibcpp_double_signaling_NaN; }
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error: asm
> >>>statements not supported in this environment
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error: asm
> >>>statements not supported in this environment
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>/usr/include/c++/3.2.3/limits(1894): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error: asm
> >>>statements not supported in this environment
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error: asm
> >>>statements not supported in this environment
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>/usr/include/c++/3.2.3/limits(1894): error:
> >>
> >>expected a
> >>
> >>>")"
> >>> { return
> >>
> >>__glibcpp_long_double_signaling_NaN;
> >>
> >>>}
> >>> ^
> >>>
> >>>compilation aborted for
> >>>
> >>
> > /usr/people/arunk/ITK-Source/Utilities/MetaIO/metaGaussian.cxx
> >
> >>>(code 2)
> >>>make[5]: *** [metaGaussian.o] Error 2
> >>>make[5]: *** Waiting for unfinished jobs....
> >>>compilation aborted for
> >>>
> >>
> > /usr/people/arunk/ITK-Source/Utilities/MetaIO/metaBlob.cxx
> >
> >>>(code 2)
> >>>make[5]: *** [metaBlob.o] Error 2
> >>>compilation aborted for
> >>>
> >>
> > /usr/people/arunk/ITK-Source/Utilities/MetaIO/metaGroup.cxx
> >
> >>>(code 2)
> >>>make[5]: *** [metaGroup.o] Error 2
> >>>make[4]: *** [default_target] Error 2
> >>>make[4]: Leaving directory
> >>>`/usr/people/arunk/ITK/icc9/Utilities/MetaIO'
> >>>make[3]: *** [default_target_MetaIO] Error 2
> >>>make[3]: Leaving directory
> >>>`/usr/people/arunk/ITK/icc9/Utilities'
> >>>make[2]: *** [default_target] Error 2
> >>>make[2]: Leaving directory
> >>>`/usr/people/arunk/ITK/icc9/Utilities'
> >>>make[1]: *** [default_target_Utilities] Error 2
> >>>make[1]: Leaving directory
> >>>`/usr/people/arunk/ITK/icc9'
> >>>make: *** [default_target] Error 2
> >>>compilation aborted for
> >>>
> >>
> > /usr/people/arunk/ITK-Source/Utilities/MetaIO/metaEllipse.cxx
> >
> >>>(code 2)
> >>>
> >>>Thanks
> >>>Arun
> >>>
> >>>
> >>>
> >>>
> >>
> > ================================================================================
> >
> >>>THE BEST THING YOU CAN DO TO YOUR FRIEND IS TO
> >>
> >>REMAIN HIS FRIEND FOREVER.......
> >>
> > ================================================================================
> >
> >>>
> >>>
> >>>__________________________________
> >>>Do you Yahoo!?
> >>>Yahoo! Small Business - Try our new resources
> >>
> >>site!
> >>
> >>>http://smallbusiness.yahoo.com/resources/
> >>>_______________________________________________
> >>>Insight-users mailing list
> >>>Insight-users at itk.org
> >>>http://www.itk.org/mailman/listinfo/insight-users
> >>>
> >>
> >>
> >
> >
> > ================================================================================
> > THE BEST THING YOU CAN DO TO YOUR FRIEND IS TO REMAIN HIS FRIEND FOREVER.......
> > ================================================================================
> >
> >
> >
> > __________________________________
> > Yahoo! Mail Mobile
> > Take Yahoo! Mail with you! Check email on your mobile phone.
> > http://mobile.yahoo.com/learn/mail
> >
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list