Supporting icc
Allen Winter
winter at kde.org
Fri May 12 23:58:40 CEST 2006
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
I wonder if something in the cmake files is mucking with PATH or LD_LIBRARY_PATH?
Because both those environment variables need to have /opt/intel/<stuff> for icc to work.
Still stumped.
-Allen
--
Let's Keep the Political Talk Out of KDE PLEASE
More information about the Kde-buildsystem
mailing list