[cmake-developers] Incomplete gfortran library link command sometimes mysteriously occurs with MinGW/MSYS on Wine-1.5.15 platform

Brad King brad.king at kitware.com
Thu Oct 25 16:13:10 EDT 2012


On 10/25/2012 04:04 PM, Alan W. Irwin wrote:
> bash.exe-3.1$ /z/home/wine/newstart/cmake-2.8.9-win32-x86/bin/cmake.exe -P info.cmake
> bash.exe-3.1$ /z/home/wine/newstart/bootstrap_cmake/install_4.7.0/bin/cmake.exe -P info.cmake
> -- [INFO:compiler[GNU]]
> -- [INFO:compiler_version[00000004.00000005.00000002]]
> -- [INFO:platform[MinGW]]
> -- [INFO:arch[]]
> 
> So there were quite different results in that case as well which I
> think you didn't expect?

Upon closer inspection of bad_build_dir content I see this file:

 bad_build_dir/CMakeFiles/CompilerIdC/CMakeCCompilerId.o

That means extraction from "a.exe" failed and CMake fell back to
trying the compiler with the "-c" option.  That produced the .o
from which the compiler id was extracted.  Let's verify that by
testing info.cmake in

 bad_build_dir/CMakeFiles/CompilerIdC

and reading "CMakeCCompilerId.o" instead of "a.exe".  Again please
report the output from both builds of CMake.

Thanks,
-Brad



More information about the cmake-developers mailing list