[CMake] Simple_Mingw_Linux2Win fails

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Aug 8 09:20:08 EDT 2007


Looks like Simple_Mingw_Linux2Win is trying the host C++ compiler
instead of the target c++ compiler for some reason.

 84/ 89 Testing Simple_Mingw_Linux2Win
Test command: /home/mmalaterre/Dashboards/MyTests/CMake-gcc42/bin/ctest
--build-and-test
/home/mmalaterre/Dashboards/MyTests/CMake/Tests/Simple
/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Win
--build-generator Unix\ Makefiles --build-project Simple
--build-makeprogram /usr/bin/make --build-options
-DCMAKE_SYSTEM_NAME=Windows
-DCMAKE_C_COMPILER=/usr/bin/i586-mingw32msvc-gcc
Internal cmake changing into directory:
/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Win
Error: cmake execution failed
CMake Error: The C++ compiler "/usr/bin/g++-4.2" is not able to
compile a simple test program.
It fails with the following output:
 /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Win/CMakeFiles/CMakeTmp'
/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/bin/cmake -E
cmake_progress_report
/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Win/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o
/usr/bin/g++-4.2   -g -Wall -W -Woverloaded-virtual -Wunused      -o
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c
/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Win/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec.exe
/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/bin/cmake -P
CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/usr/bin/g++-4.2    -g -Wall -W -Woverloaded-virtual -Wunused
"CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o"   -o
cmTryCompileExec.exe -Wl,--out-implib,libcmTryCompileExec.dll.a
-Wl,--major-image-version,0,--minor-image-version,0
/usr/bin/ld: unrecognized option '--out-implib'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec.exe] Error 1
make[1]: Leaving directory
`/home/mmalaterre/Dashboards/MyTests/CMake-gcc42/Tests/Simple_Mingw_Linux2Win/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.



-- 
Mathieu


More information about the CMake mailing list