[CMake] Using cmake on AIX 5.3 with IBM xlc/xlC v7.0
Arindam Mukherjee
arindam.mukerjee at gmail.com
Fri Oct 5 10:01:45 EDT 2012
Hi,
I have been trying to build a project that uses cmake with IBM xlc_r /
xlC_r v7.0. The project gets built using regular Makefiles on this
environment. However, cmake fails to identify the compiler
(/usr/bin/xlc_r and /usr/bin/xlC_r). Here is the error dump:
======
$ cmake src\
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/xlc_r
-- Check for working C compiler: /usr/bin/xlc_r -- broken
CMake Error at /home/amukher1/opt/cmake/aix52/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
The C compiler "/usr/bin/xlc_r" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/amukher1/buildarea/vcs_bzs/cmake/AIX/5.2/powerpc/32/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec3576455604/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3576455604.dir/build.make
CMakeFiles/cmTryCompileExec3576455604.dir/build
gmake[1]: Entering directory
`/home/amukher1/buildarea/vcs_bzs/cmake/AIX/5.2/powerpc/32/CMakeFiles/CMakeTmp'
/home/amukher1/opt/cmake/aix52/bin/cmake -E cmake_progress_report
/home/amukher1/buildarea/vcs_bzs/cmake/AIX/5.2/powerpc/32/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec3576455604.dir/testCCompiler.c.o
/usr/bin/xlc_r -o
CMakeFiles/cmTryCompileExec3576455604.dir/testCCompiler.c.o -c
/home/amukher1/buildarea/vcs_bzs/cmake/AIX/5.2/powerpc/32/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec3576455604
/home/amukher1/opt/cmake/aix52/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec3576455604.dir/link.txt --verbose=1
/usr/bin/xlc_r CMakeFiles/cmTryCompileExec3576455604.dir/testCCompiler.c.o
-o cmTryCompileExec3576455604 /usr/lib /lib
ld: 0711-168 SEVERE ERROR: Input file: /usr/lib
Input files must be regular files.
gmake[1]: *** [cmTryCompileExec3576455604] Error 12
gmake[1]: Leaving directory
`/home/amukher1/buildarea/vcs_bzs/cmake/AIX/5.2/powerpc/32/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec3576455604/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
=======
I have tried looking into
/opt/cmake/share/cmake-2.8/Modules/Platform/AIX but didn't figure out
much. Any help would be really appreciated.
Regards,
Arindam
More information about the CMake
mailing list