Supporting icc

Brad King brad.king at kitware.com
Sat May 13 00:16:21 CEST 2006


Allen Winter wrote:
> On Friday 12 May 2006 17:37, Brad King wrote:
> 
>>Allen Winter wrote:
>>
>>>I'm trying to put in support for Intel's C/C++ compiler (icc).  I'm getting nowhere fast.
>>>
>>>% export CC=icc
>>>% export CXX=icc
>>>% cmake ..
>>>-- Check for working CXX compiler: /opt/intel/cc/9.0/bin/icc
>>>-- Check for working CXX compiler: /opt/intel/cc/9.0/bin/icc -- broken
>>>The C++ compiler "/opt/intel/cc/9.0/bin/icc" is not able to compile a simple test program.
>>>It fails with the following output:
>>
>>[snip]
>>
>>>CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
>>
>>CMake is telling you exactly what is wrong.  Your intel compiler 
>>installation is broken.  Have you built a hello-world program with this 
>>compiler:
>>
>>   icc hello.cxx
>>
>>?
> 
> I thought of that too.  And I did successfully build a C program.
> Let me try C++.
> 
> Seems to work, i.e.
> % cd kdepim/libkholidays_ng
> % icc lunarphase.cpp  -I /usr/local/KDE-4.0.0/include -I /data/kde/trunk/qt-copy/include -I /data/kde/trunk/qt-copy/include/Qt -I /data/kde/trunk/qt-copy/include/QtCore -I ../libkdepim -c
> produces a lunarphase.o
> % file lunarphase.o
> lunarphase.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped

...but that does not link anything.  The error CMake is reporting from 
the test build is a linker error.

-Brad


More information about the Kde-buildsystem mailing list