I am trying to build cmake on a Blue Gene P.
Configuration starts with

login1.surveyor$ ./bootstrap
---------------------------------------------
CMake 2.6-4, Copyright (c) 2007 Kitware, Inc., Insight Consortium
C compiler on this system is: cc
C++ compiler on this system is: xlC
Makefile processor on this system is: gmake
xlC is not GNU compiler
xlC has STL in std:: namespace
xlC has ANSI streams
xlC has streams in std:: namespace
xlC has sstream
xlC has operator!=(string, char*)



It ended with

xlC -I/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/Source -I/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/Bootstrap.cmk cmake.o cmakemain.o cmakewizard.o cmCommandArgumentLexer.o cmCommandArgumentParser.o cmCommandArgumentParserHelper.o cmDepends.o cmDependsC.o cmDocumentationFormatter.o cmDocumentationFormatterText.o cmPolicies.o cmProperty.o cmPropertyMap.o cmPropertyDefinition.o cmPropertyDefinitionMap.o cmMakeDepend.o cmMakefile.o cmExportFileGenerator.o cmExportInstallFileGenerator.o cmInstallDirectoryGenerator.o cmGeneratedFileStream.o cmGlobalGenerator.o cmLocalGenerator.o cmInstallGenerator.o cmInstallExportGenerator.o cmInstallFilesGenerator.o cmInstallScriptGenerator.o cmInstallTargetGenerator.o cmSourceFile.o cmSourceFileLocation.o cmSystemTools.o cmVersion.o cmFileTimeComparison.o cmGlobalUnixMakefileGenerator3.o cmLocalUnixMakefileGenerator3.o cmMakefileExecutableTargetGenerator.o cmMakefileLibraryTargetGenerator.o cmMakefileTargetGenerator.o cmMakefileUtilityTargetGenerator.o cmBootstrapCommands.o cmCommands.o cmTarget.o cmTest.o cmCustomCommand.o cmDocumentVariables.o cmCacheManager.o cmListFileCache.o cmComputeLinkDepends.o cmComputeLinkInformation.o cmOrderDirectories.o cmComputeTargetDepends.o cmComputeComponentGraph.o cmExprLexer.o cmExprParser.o cmExprParserHelper.o cmListFileLexer.o Directory.o Glob.o RegularExpression.o SystemTools.o ProcessUNIX.o String.o System.o -o cmake loading initial cache file /home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/Bootstrap.cmk/InitialCacheFlags.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is VisualAge
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC -- Check for working CXX compiler: /gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC -- broken
CMake Error at Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
 The C++ compiler
"/gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC"
 is not able to compile a simple test program.

 It fails with the following output:

Change Dir: /home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/CMakeFiles/CMakeTmp



 Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

 gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
 CMakeFiles/cmTryCompileExec.dir/build

 gmake[1]: Entering directory
`/gpfs/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/CMakeFiles/CMakeTmp'



/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/Bootstrap.cmk/cmake
 -E cmake_progress_report
/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/CMakeFiles/CMakeTmp/CMakeFiles
 1

 Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o


/gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC
 -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/CMakeFiles/CMakeTmp/testCXXCompiler.cxx


 Linking CXX executable cmTryCompileExec


/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/Bootstrap.cmk/cmake
 -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1


/gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC
 -fPIC CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o
 cmTryCompileExec -rdynamic


/gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC:
 1501-216 (W) command option -fPIC is not recognized - passed to ld


/gpfs/software/linux-sles10-ppc64/apps/ibmcmp-sep2008/opt/vacpp/bg/9.0/bin/xlC:
 1501-216 (W) command option -dynamic is not recognized - passed to ld

 /usr/bin/ld: unrecognized option '-dynamic'

 /usr/bin/ld: use the --help option for usage information

 gmake[1]: *** [cmTryCompileExec] Error 1

 gmake[1]: Leaving directory
`/gpfs/home/cary/projects/facetspkgs-surveyor/builds/cmake-2.6.4/ser/CMakeFiles/CMakeTmp'


 gmake: *** [cmTryCompileExec/fast] Error 2





 CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 CMakeLists.txt:1 (PROJECT)


-- Configuring incomplete, errors occurred!
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake


Googling around I found an exchange that ended with

http://www.cmake.org/pipermail/cmake/2006-January/007917.html

"It should be very easy to add support to CMake.

You would have to create a Linux-xlc.cmake file that will
go in the Platforms directory of cmake.   It would set all
the correct flags for the compiler.  If you want, I can help
you create one, and I will add it to cmake."

Was this ever done?  Can I help with getting it done?

Thx...John Cary







_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to