[CMake] Extremely noisy cmake output for the MinGW/MSYS/Wine platform

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Apr 2 16:56:42 EDT 2010


On 2010-04-02 15:08-0500 Ryan Pavlik wrote:

> That noise is all WINE internal messages, nothing really to do with CMake or 
> MinGW.  If you used mingw in cross-compile mode on Linux directly, or on 
> Windows directly, you would not see that.

I think you must be referring to the fixme stuff from wine and didn't read
far enough beyond that.

Just taking the first part of the _additional_ CMake noise here as quoted in
my original post...

>> ***********
>> /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
>> CMakeFiles/cmTryCompileExec.dir/buildmake[1]: Entering directory
>> /z/home/wine/cmake/build_dir/CMakeFiles/CMakeTmp'/Z/home/wine/cmake/cmake-2.8.1-win32-x86/bin/cmake.exe 
>> -E cmake_progress_report
>> /Z/home/wine/cmake/build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1Building C
>> object
>> CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj/Z/home/wine/mingw/MinGW/bin/gcc.exe
>>    -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj   -c
>> /Z/home/wine/cmake/build_dir/CMakeFiles/CMakeTmp/testCCompiler.cLinking C
>> executable cmTryCompileExec.exe/Z/home/wine/mingw/MinGW/bin/gcc.exe
>> "CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj"   -o
>> cmTryCompileExec.exe -Wl,--out-implib,libcmTryCompileExec.dll.a
>> -Wl,--major-image-version,0,--minor-image-version,0  -lkernel32 -luser32
>> -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 
>> -ladvapi32
>> make[1]: Leaving directory

N.B. the above output to the terminal (rather than stdout or stderr) happens
as a result of the _cmake_ command under wine, not some make invocation that
I did.

It appears that as part of the detection of the C compiler using the -G
"MSYS Makefiles" generator, the cmake application trys a test build using
make.  That make sense, but why are those test build messages being diverted
to the console rather some internal file in the build tree (as I assume
happens when CMake detects the C compiler under Linux for the -G "Unix
Makefiles" case).

Another possibility is --trace or some other debug option has been
inadvertently left on for the Windows version of the cmake command for
version 2.8.1 of CMake which is why I would appreciate the cmake developers
commenting on the source of the above output to the terminal (and much more)
from within cmake.  For my original post, I gave the "noise" from the most
simple cmake invocation I could think of.  This noise is much more extensive
when I invoke cmake for the PLplot project since there are a lot more tests,
try_compiles, etc., in that case.

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); PLplot scientific plotting software
package (plplot.org); 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 mailing list