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

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Oct 25 16:51:46 EDT 2012


On 2012-10-25 16:13-0400 Brad King wrote:

> 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.

bash.exe-3.1$ pwd
/z/home/wine/newstart/4.5.2_version/ephcom2/bad_build_dir/CMakeFiles/CompilerIdC
bash.exe-3.1$ ls
CMakeCCompilerId.c  CMakeCCompilerId.o  info.cmake  info.cmake~
bash.exe-3.1$ cat info.cmake
file(STRINGS CMakeCCompilerId.o _strings LIMIT_COUNT 4 REGEX "INFO:")
foreach(info ${_strings})
   message(STATUS "[${info}]")
endforeach()
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[]]
bash.exe-3.1$
/z/home/wine/newstart/cmake-2.8.9-win32-x86/bin/cmake.exe -P info.cmake
-- [INFO:compiler[GNU]]
-- [INFO:compiler_version[00000004.00000005.00000002]]
-- [INFO:platform[MinGW]]
-- [INFO:arch[]]

Hope this additional information helps you to figure out what is going
on.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________



More information about the cmake-developers mailing list