[CMake] cmake on the BGP

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Sep 1 04:56:55 EDT 2009


On Thu, Aug 20, 2009 at 4:00 PM, Brad King<brad.king at kitware.com> wrote:
> John R. Cary wrote:
>> env CC=xlc_r CXX=xlC_r
> [snip]
>> -- The C compiler identification is GNU
>
> Be sure to create a fresh build tree when changing compilers.
> CMake cached the 'cc' (gnu) compiler it found the first time
> and did not pay attention to the environment later.
>
>> /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'
>
> It looks like support for the C compiler was added but not
> C++, and also that this combination is not well tested.  I
> can help you finish adding support.  Look in Modules/Platform
> at the files
>
>  Linux.cmake
>  Linux-XL-C.cmake
>
> The first contains default flags for Linux, which are for GCC.
> The second contains compiler-specific flags for the XL C compiler
> on Linux.  Copy it to the file
>
>  Linux-XL-CXX.cmake
>
> and change the ..._C_FLAGS variable names to ..._CXX_FLAGS.
> Also, please read through Linux.cmake and check for the options
> in the XL compiler documentation to see if other flags need to
> be changed.
>
>
> BTW, a platform/compiler combination is officially supported
> only if someone is contributing nightly testing to the dashboard:
>
>  http://www.cdash.org/CDash/index.php?project=CMake
>
> After we get this working, do you have about an hour of
> spare computing time on a machine at night?  If you can
> submit testing results then we can support this platform
> permanently.

I am trying here also and I cannot get it to work. I do not understand
where the -fPIC is coming from.

...
> cat Modules/Platform/Linux-XL-CXX.cmake
message("coucou CXX")
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
...


> ../CMake/bootstrap --verbose --parallel=4
---------------------------------------------
Source directory: /home/mmalater/Projects/Dashboards/CMake
Binary directory: /home/mmalater/Projects/Dashboards/CMake-gcc
Prefix directory: /usr/local
System:           Linux
Doing parallel make: 4

---------------------------------------------
CMake 2.7.20090901, Copyright (c) 2000-2009 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*)
xlC has stl iterator_traits
xlC has standard template allocator
xlC has allocator<>::rebind<>
xlC does not have non-standard allocator<>::max_size argument
xlC has stl containers supporting allocator objects
xlC has header cstddef
xlC requires template friends to use <>
xlC supports member templates
xlC has standard template specialization syntax
xlC has argument dependent lookup
xlC has struct stat with st_mtim member
xlC has ios::binary openmode
xlC has ANSI for scoping
---------------------------------------------
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmake.cxx -o cmake.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmakemain.cxx -o
cmakemain.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmakewizard.cxx -o
cmakewizard.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmCommandArgumentLexer.cxx
-o cmCommandArgumentLexer.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmCommandArgumentParser.cxx
-o cmCommandArgumentParser.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmCommandArgumentParserHelper.cxx
-o cmCommandArgumentParserHelper.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmDefinitions.cxx -o
cmDefinitions.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmDepends.cxx -o
cmDepends.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmDependsC.cxx -o
cmDependsC.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmDocumentationFormatter.cxx
-o cmDocumentationFormatter.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmDocumentationFormatterText.cxx
-o cmDocumentationFormatterText.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmPolicies.cxx -o
cmPolicies.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmProperty.cxx -o
cmProperty.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmPropertyMap.cxx -o
cmPropertyMap.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmPropertyDefinition.cxx
-o cmPropertyDefinition.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmPropertyDefinitionMap.cxx
-o cmPropertyDefinitionMap.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmMakeDepend.cxx -o
cmMakeDepend.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmMakefile.cxx -o
cmMakefile.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmExportFileGenerator.cxx
-o cmExportFileGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmExportInstallFileGenerator.cxx
-o cmExportInstallFileGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmInstallDirectoryGenerator.cxx
-o cmInstallDirectoryGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmGeneratedFileStream.cxx
-o cmGeneratedFileStream.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmGeneratorExpression.cxx
-o cmGeneratorExpression.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmGlobalGenerator.cxx
-o cmGlobalGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmLocalGenerator.cxx
-o cmLocalGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmInstallGenerator.cxx
-o cmInstallGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmInstallExportGenerator.cxx
-o cmInstallExportGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmInstallFilesGenerator.cxx
-o cmInstallFilesGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmInstallScriptGenerator.cxx
-o cmInstallScriptGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmInstallTargetGenerator.cxx
-o cmInstallTargetGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmScriptGenerator.cxx
-o cmScriptGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmSourceFile.cxx -o
cmSourceFile.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmSourceFileLocation.cxx
-o cmSourceFileLocation.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmSystemTools.cxx -o
cmSystemTools.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmTestGenerator.cxx -o
cmTestGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmVersion.cxx -o
cmVersion.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmFileTimeComparison.cxx
-o cmFileTimeComparison.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmGlobalUnixMakefileGenerator3.cxx
-o cmGlobalUnixMakefileGenerator3.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmLocalUnixMakefileGenerator3.cxx
-o cmLocalUnixMakefileGenerator3.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmMakefileExecutableTargetGenerator.cxx
-o cmMakefileExecutableTargetGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmMakefileLibraryTargetGenerator.cxx
-o cmMakefileLibraryTargetGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmMakefileTargetGenerator.cxx
-o cmMakefileTargetGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmMakefileUtilityTargetGenerator.cxx
-o cmMakefileUtilityTargetGenerator.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmBootstrapCommands.cxx
-o cmBootstrapCommands.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmCommands.cxx -o
cmCommands.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmTarget.cxx -o
cmTarget.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmTest.cxx -o cmTest.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmCustomCommand.cxx -o
cmCustomCommand.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmDocumentVariables.cxx
-o cmDocumentVariables.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmCacheManager.cxx -o
cmCacheManager.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmListFileCache.cxx -o
cmListFileCache.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmComputeLinkDepends.cxx
-o cmComputeLinkDepends.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmComputeLinkInformation.cxx
-o cmComputeLinkInformation.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmOrderDirectories.cxx
-o cmOrderDirectories.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmComputeTargetDepends.cxx
-o cmComputeTargetDepends.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmComputeComponentGraph.cxx
-o cmComputeComponentGraph.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmExprLexer.cxx -o
cmExprLexer.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmExprParser.cxx -o
cmExprParser.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmExprParserHelper.cxx
-o cmExprParserHelper.o
cc -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk -c
/home/mmalater/Projects/Dashboards/CMake/Source/cmListFileLexer.c -o
cmListFileLexer.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/Directory.cxx -o
Directory.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/Glob.cxx -o
Glob.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/RegularExpression.cxx
-o RegularExpression.o
xlC -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/SystemTools.cxx
-o SystemTools.o
cc -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys  -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/ProcessUNIX.c -o
ProcessUNIX.o
cc -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys -DKWSYS_STRING_C -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/String.c -o
String.o
cc -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk
-DKWSYS_NAMESPACE=cmsys  -c
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys/System.c -o
System.o
xlC  -I/home/mmalater/Projects/Dashboards/CMake/Source
-I/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk  cmake.o
cmakemain.o cmakewizard.o cmCommandArgumentLexer.o
cmCommandArgumentParser.o cmCommandArgumentParserHelper.o
cmDefinitions.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 cmGeneratorExpression.o cmGlobalGenerator.o
cmLocalGenerator.o cmInstallGenerator.o cmInstallExportGenerator.o
cmInstallFilesGenerator.o cmInstallScriptGenerator.o
cmInstallTargetGenerator.o cmScriptGenerator.o cmSourceFile.o
cmSourceFileLocation.o cmSystemTools.o cmTestGenerator.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/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/InitialCacheFlags.cmake
-- The C compiler identification is XL
-- The CXX compiler identification is XL
coucou
-- Check for working C compiler: /opt/ibmcmp/vacpp/9.0/bin/cc
coucou
-- Check for working C compiler: /opt/ibmcmp/vacpp/9.0/bin/cc -- works
-- Detecting C compiler ABI info
coucou
-- Detecting C compiler ABI info - done
coucou CXX
-- Check for working CXX compiler: /opt/ibmcmp/vacpp/9.0/bin/xlC
coucou CXX
-- Check for working CXX compiler: /opt/ibmcmp/vacpp/9.0/bin/xlC -- broken
CMake Error at Modules/CMakeTestCXXCompiler.cmake:30 (MESSAGE):
  The C++ compiler "/opt/ibmcmp/vacpp/9.0/bin/xlC" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: /home/mmalater/Projects/Dashboards/CMake-gcc/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
  `/home/mmalater/Projects/Dashboards/CMake-gcc/CMakeFiles/CMakeTmp'

  /home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
  cmake_progress_report
  /home/mmalater/Projects/Dashboards/CMake-gcc/CMakeFiles/CMakeTmp/CMakeFiles
  1

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

  /opt/ibmcmp/vacpp/9.0/bin/xlC -o
  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
  /home/mmalater/Projects/Dashboards/CMake-gcc/CMakeFiles/CMakeTmp/testCXXCompiler.cxx


  Linking CXX executable cmTryCompileExec

  /home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
  cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /opt/ibmcmp/vacpp/9.0/bin/xlC -fPIC
  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec

  /opt/ibmcmp/vacpp/9.0/bin/xlC: 1501-216 (W) command option -fPIC is not
  recognized - passed to ld

  /usr/bin/ld: -f may not be used without -shared

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

  gmake[1]: Leaving directory
  `/home/mmalater/Projects/Dashboards/CMake-gcc/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:2 (PROJECT)


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


With:

> uname -a
Linux doublejack 2.6.18.8-0.13-ppc64 #1 SMP Thu Nov 6 13:35:13 UTC
2008 ppc64 ppc64 ppc64 GNU/Linux



See also:
http://cmake.org/Bug/view.php?id=9469

Thanks,
-- 
Mathieu


More information about the CMake mailing list