http://bugs.winehq.org/show_bug.cgi?id=22540
Summary: CMake hangs when trying to detect and test MinGW compiler (gcc.exe & g++.exe) Product: Wine Version: 1.1.43 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: nil094@yahoo.com
CMake hangs when trying to detect a usable Compiler, preferable MinGW, assuming `-G "Unix Makefiles"' has been set as commandline argument. CMake is also consuming a significant amount of CPU.
Excpected output when running cmake natively (example): $ cmake . -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/user/somepath
Actual Output: $ wine cmake . -G 'Unix Makefiles' -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: C:/MinGW/bin/gcc.exe (... nothing happens, just consuming CPU)
MinGW is installed into C:\MinGW, CMake (latest version from cmake.org) is Installed into C:\CMake.
The projectfile (CMakeLists.txt) is working properly, and I've tested the project successfully on Windows XP SP2, using exactly the same CMake version, creating projectfiles for MinGW, VisualStudio and SunStudio, so it's most certainly not the CMakeLists.txt who's causing the bug.