I'm trying to test the kdesupport module using the SunStudio Express compiler. I am mainly trying to make sure that the Qt Cryptographic Architecture stuff will build, and that there aren't bugs in the code that sunstudio can identify.
Note that I'm doing the testing on Linux (a Fedora Core 6 box). I'm not sure I'm doing it right. I've got the compiler installed, and it does at least start up. $ /opt/sun/sunstudio12/bin/CC -V CC: Sun C++ 5.9 Linux_i386 Build40_1 2007/02/09 However I'm not able to get it going with cmake: CC="/opt/sun/sunstudio12/bin/c99" CXX="/opt/sun/sunstudio12/bin/CC" $ cmake -DCMAKE_INSTALL_PREFIX=/opt/kdesupport-sun ~/coding/kdesupport/ -- Check for working C compiler: /opt/sun/sunstudio12/bin/c99 -- Check for working C compiler: /opt/sun/sunstudio12/bin/c99 -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /opt/sun/sunstudio12/bin/CC -- Check for working CXX compiler: /opt/sun/sunstudio12/bin/CC -- broken CMake Error: The C++ compiler "/opt/sun/sunstudio12/bin/CC" is not able to compile a simple test program. It fails with the following output: /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build gmake[1]: Entering directory `/home/bradh/build/kdesupport-sun/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/bradh/build/kdesupport-sun/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o /opt/sun/sunstudio12/bin/CC -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c /home/bradh/build/kdesupport-sun/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTryCompileExec /usr/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake /opt/sun/sunstudio12/bin/CC -fPIC "CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o" -o cmTryCompileExec -rdynamic CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -rdynamic passed to ld, if ld is invoked, ignored otherwise /opt/sun/sunstudio12/prod/lib/ld: bad -rpath option gmake[1]: *** [cmTryCompileExec] Error 1 gmake[1]: Leaving directory `/home/bradh/build/kdesupport-sun/CMakeFiles/CMakeTmp' gmake: *** [cmTryCompileExec/fast] Error 2 CMake will not be able to correctly generate this project. -- Configuring done Does anyone have a suggestion? -- This message posted from opensolaris.org
