Supporting icc

Allen Winter winter at kde.org
Fri May 12 20:05:01 CEST 2006


Hi CMake Gurus,

I'm trying to put in support for Intel's C/C++ compiler (icc).  I'm getting nowhere fast.
As seen below.  Help.  
-Allen

% 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:
 /usr/local/bin/cmake -H/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp -B/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/gmake -f CMakeFiles/Makefile2 cmTryCompileExec
gmake[1]: Entering directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -H/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp -B/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/gmake -f CMakeFiles/Makefile2 CMakeFiles/cmTryCompileExec.dir/all
gmake[2]: Entering directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/depend
gmake[3]: Entering directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
Scanning dependencies of target cmTryCompileExec
cd /data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp && /usr/local/bin/cmake -E cmake_depends  "Unix Makefiles" /data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp /data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp /data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/DependInfo.cmake
gmake[3]: Leaving directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[3]: Entering directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o
/opt/intel/cc/9.0/bin/icc    -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c /data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec
/usr/local/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/opt/intel/cc/9.0/bin/icc         -fPIC "CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o"   -o cmTryCompileExec -rdynamic
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
gmake[3]: Leaving directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
gmake[3]: *** [cmTryCompileExec] Error 1
gmake[2]: Leaving directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
gmake[2]: *** [CMakeFiles/cmTryCompileExec.dir/all] Error 2
gmake[1]: Leaving directory `/data/kde/trunk/KDE/kdelibs/build-icc/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/rule] Error 2
gmake: *** [cmTryCompileExec] Error 2


CMake will not be able to correctly generate this project.
-- Configuring done

-- 
Let's Keep the Political Talk Out of KDE PLEASE


More information about the Kde-buildsystem mailing list