[CMake] CMake 2.8.4-rc2 ready for testing!

Dongsheng Song dongsheng.song at gmail.com
Tue Feb 1 01:30:03 EST 2011


On 2011-2-1 5:45, David Cole wrote:
> The CMake 2.8.4 release candidate stream continues! You can find the
> source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D
>
> Since we switched to git, and a new workflow, we're expecting to do
> more frequent releases. Because of that, our release candidate phases
> will be shorter than they have been historically. So, if you want to
> test this out and ask for a fix, do it soon, or hold your peace till
> the next release!
>
> Following is the list of changes in this release. Since we switched to
> git, this list is now the 'git log' one line summary written by the
> named CMake developers.
>
> Please try this version of CMake on your projects and report any
> issues to the list or the bug tracker.
>
> Happy building!
> -Dave

When I use cmake 2.8.2 with Debian 6.0:

$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc
-DCMAKE_RC_COMPILER=i686-w64-mingw32-windres
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc
-- Check for working C compiler: /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-c++
-- Check for working CXX compiler: /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/oracle/vcs/git/freetds

But cmake 2.8.4rc2 failed:

$ export PATH=~/tmp/cmake-2.8.4-rc2-Linux-i686/bin:$PATH
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc
-DCMAKE_RC_COMPILER=i686-w64-mingw32-windres
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_RC_COMPILER= i686-w64-mingw32-windres
CMAKE_C_COMPILER= i686-w64-mingw32-gcc

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc
-- Check for working C compiler: /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc -- broken
CMake Error at /home/oracle/tmp/cmake-2.8.4-rc2-Linux-i686/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler
  "/home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: /home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp



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

  /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
  CMakeFiles/cmTryCompileExec.dir/build

  make[1]: Entering directory
  `/home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp'

  /home/oracle/tmp/cmake-2.8.4-rc2-Linux-i686/bin/cmake -E
  cmake_progress_report
  /home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp/CMakeFiles 1

  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj

  /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc -o
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj -c
  /home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTryCompileExec

  /home/oracle/tmp/cmake-2.8.4-rc2-Linux-i686/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /home/oracle/gcc-4.6-windows_i686-linux/bin/i686-w64-mingw32-gcc
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj -o cmTryCompileExec
  -rdynamic

  i686-w64-mingw32-gcc: error: unrecognized option '-rdynamic'

  make[1]: *** [cmTryCompileExec] Error 1

  make[1]: Leaving directory
  `/home/oracle/vcs/git/freetds/CMakeFiles/CMakeTmp'

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





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


-- Configuring incomplete, errors occurred!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110201/e9a0df62/attachment.pgp>


More information about the CMake mailing list