[CMake] Compile cmake on Power5 based computer

William A. Hoffman billlist at nycap.rr.com
Tue Jun 20 13:22:11 EDT 2006


At 12:48 PM 6/20/2006, Dong Luo wrote:
>./bootstrap stopped at here:
>
>/opt/ibmcmp/vacpp/7.0/bin/xlC         -fPIC
>"CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o"  
>-o cmTryCompileExec -rdynamic 
>/opt/ibmcmp/vacpp/7.0/bin/xlC: 1501-216 command option
>-fPIC is not recognized - passed to ld
>/opt/ibmcmp/vacpp/7.0/bin/xlC: 1501-216 command option
>-rdynamic is not recognized - passed to ld
>/usr/bin/ld: bad -rpath option
>gmake[1]: *** [cmTryCompileExec] Error 1
>gmake[1]: Leaving directory
>`/projectnb2/apoai/cmake-2.4.2/CMakeFiles/CMakeTmp'
>gmake: *** [cmTryCompileExec/fast] Error 2

You need to create a Linix-xlc.cmake file for the Modules/Platform 
directory.  It needs to change the values found in Modules/Platform/Linux.cmake.
If you get it working, I can put the files into CMake.

Thanks.

-Bill



More information about the CMake mailing list