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

Ryan Pavlik rpavlik at iastate.edu
Fri Apr 2 16:08:37 EDT 2010


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.

Ryan

On 04/02/2010 01:07 PM, Alan W. Irwin wrote:
> Here is how I invoke cmake for the MinGW/MSYS/Wine platform for an 
> extremely
> simple test case (which builds a hello-world library and links a one-line
> app to it)
>
> wine at raven> wine /home/wine/cmake/cmake-2.8.1-win32-x86/bin/cmake cmake \
> -G "MSYS Makefiles" \
> z:\\home\\software\\plplot_svn/HEAD\\test_cmake\\test_c_library_build \
>> & cmake.out
>
> The >& above should capture both stdout and stderr into cmake.out, and
> for this simple project the results are as follows:
>
> wine at raven> cat cmake.out
> -- The C compiler identification is GNU
> -- Check for working C compiler: Z:/home/wine/mingw/MinGW/bin/gcc.exe
> fixme:netapi32:NetWkstaUserGetInfo Level 1 processing is partially 
> implemented
> fixme:advapi:LsaOpenPolicy ((null),0x72f500,0x00000001,0x72f4fc) stub
> fixme:advapi:LsaClose (0xcafe) stub
> fixme:advapi:LsaOpenPolicy ((null),0x72f540,0x000f0fff,0x72f53c) stub
> fixme:netbios:NetServerEnum Stub ((null) 101 0x72efbc -1 0x72efc0 
> 0x72efc4 8
> L"DOMAIN" (nil))
> fixme:advapi:LsaClose (0xcafe) stub
> fixme:netapi32:NetUserGetInfo Level 3 is not implemented
> fixme:netapi32:NetUserGetInfo Level 3 is not implemented
> -- Check for working C compiler: Z:/home/wine/mingw/MinGW/bin/gcc.exe 
> -- works
> -- Detecting C compiler ABI info
> fixme:netapi32:NetWkstaUserGetInfo Level 1 processing is partially 
> implemented
> fixme:advapi:LsaOpenPolicy ((null),0x72f500,0x00000001,0x72f4fc) stub
> fixme:advapi:LsaClose (0xcafe) stub
> fixme:advapi:LsaOpenPolicy ((null),0x72f540,0x000f0fff,0x72f53c) stub
> fixme:netbios:NetServerEnum Stub ((null) 101 0x72efbc -1 0x72efc0 
> 0x72efc4 8
> L"DOMAIN" (nil))
> fixme:advapi:LsaClose (0xcafe) stub
> fixme:netapi32:NetUserGetInfo Level 3 is not implemented
> fixme:netapi32:NetUserGetInfo Level 3 is not implemented
> -- Detecting C compiler ABI info - done
> -- Configuring done
> -- Generating done
> -- Build files have been written to: Z:/home/wine/cmake/build_dir
>
> The above "fixme" warnings are directly from wine to stderr and I presume
> they will eventually disappear as wine matures from the latest 
> development
> version that I am running (1.1.41).  Otherwise, all seems well with the
> cmake.out file for this simple project, and I know from experience 
> that the
> project builds and runs nicely afterward under wine.
>
> Now we get to the seriously noisy part that is the principle focus of
> this post:
>
> The invocation above also dumped the following to the terminal (rather 
> than
> stdout or stderr).  I used cut and paste to capture it and it is 
> subject to
> e-mail line wrapping, but you should get the idea.
>
> ***********
> /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
> /z/home/wine/cmake/build_dir/CMakeFiles/CMakeTmp'/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/CMakeCCompilerABI.c.obj/Z/home/wine/mingw/MinGW/bin/gcc.exe 
>
>    -o CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.obj   -c
> /Z/home/wine/cmake/cmake-2.8.1-win32-x86/share/cmake-2.8/Modules/CMakeCCompilerABI.cLinking 
>
> C executable cmTryCompileExec.exe/Z/home/wine/mingw/MinGW/bin/gcc.exe
> -v "CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.obj"   -o
> cmTryCompileExec.exe -Wl,--out-implib,libcmTryCompileExec.dll.a
> -Wl,--major-image-version,0,--minor-image-version,0   Using built-in 
> specs.
> COLLECT_GCC=z:\home\wine\mingw\MinGW\bin\gcc.exe
> COLLECT_LTO_WRAPPER=z:/home/wine/mingw/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe 
>
> Target: mingw32
> Configured with: ../gcc-4.5.0_20100311/configure
> --enable-languages=c,c++,ada,fortran,objc,obj-c++ 
> --disable-sjlj-exceptions
> --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry
> --enable-libstdcxx-debug --enable-version-specific-runtime-libs
> --disable-werror --build=mingw32 --prefix=/mingw
> Thread model: win32
> gcc version 4.5.0 20100311 (experimental) (GCC) 
> COMPILER_PATH=z:/home/wine/mingw/mingw/bin/../libexec/gcc/mingw32/4.5.0/;z:/home/wine/mingw/mingw/bin/../libexec/gcc/;z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ 
>
> LIBRARY_PATH=z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/;z:/home/wine/mingw/mingw/bin/../lib/gcc/;z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/;z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../ 
>
> COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec.exe' '-mtune=i386'
> '-march=i386'
>  z:/home/wine/mingw/mingw/bin/../libexec/gcc/mingw32/4.5.0/collect2.exe
> -Bdynamic -o cmTryCompileExec.exe
> z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../crt2.o
> z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/crtbegin.o
> -Lz:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0
> -Lz:/home/wine/mingw/mingw/bin/../lib/gcc
> -Lz:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib 
>
> -Lz:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/../../..
> CMakeFiles/cmTryCompileExec.dir/CMakeCCompilerABI.c.obj --out-implib
> libcmTryCompileExec.dll.a --major-image-version 0 --minor-image-version 0
> -lmingw32 -lgcc_eh -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 
> -lkernel32
> -ladvapi32 -lshell32 -lmingw32 -lgcc_eh -lgcc -lmoldname -lmingwex 
> -lmsvcrt
> z:/home/wine/mingw/mingw/bin/../lib/gcc/mingw32/4.5.0/crtend.o
> make[1]: Leaving directory
> /z/home/wine/cmake/build_dir/CMakeFiles/CMakeTmp'wine at raven> ***********
>
> On Linux I don't get such noise from cmake.
>
> The following questions are directed mostly to the CMake developers.
>
> Is such cmake noise typical of MinGW/MSYS?
>
> Is there a way I can suppress it or divert it to a file?
>
> Is this some bug in Windows cmake-2.8.1 (the version of cmake that I am
> running) or the result of some mismatch between cmake and
> the Wine environment?
>
> 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
> __________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake

-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik



More information about the CMake mailing list