[CMake] Compile cmake on Power5 based computer
Dong Luo
us917 at yahoo.com
Tue Jun 20 17:23:38 EDT 2006
-fPIC and -rdynamic are not flags for xlC. By defining
CXX to gxlc++ (which suppose to translate the flags),
the ./bootstrap finished without problem.
However, the next step of type gmake as suggested
give:
Linking CXX executable
../../bin/testCommandLineArguments
/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[2]: *** [bin/testCommandLineArguments] Error 1
gmake[1]: ***
[Source/kwsys/CMakeFiles/testCommandLineArguments.dir/all]
Error 2
gmake: *** [all] Error 2
Is there a way to let gmake use gxlc++ instead of xlC?
--- "William A. Hoffman" <billlist at nycap.rr.com>
wrote:
> 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
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the CMake
mailing list