MantisBT - CMake
View Issue Details
0015279CMakeCMakepublic2014-12-03 16:412016-06-10 14:31
Alex Lamaison 
Kitware Robot 
normalminoralways
closedmoved 
WindowsAll 64-bit
 
 
0015279: CMake fails with OpenWatcom in default install location
A fix was committed for this issue but I don't think it works: http://www.cmake.org/Bug/view.php?id=12548 [^]

Recap: The OpenWatcom compiler fails to compile any configure checks if CMake is installed in the default location on Windows (C:\Program Files (x86)\CMake) because of the parentheses (or maybe the spaces).

I'm still seeing the problem in CMake 3.1-rc2 on Windows 8 (64-bit). The problem goes away if I install CMake in a path without spaces/parentheses.
Configure a project with Watcom Generator.

Notice 'Detecting C compiler ABI info' fail.
An example log from a failed run:

Detecting C compiler ABI info failed to compile with the following output:
Change Dir: C:/Users/Alexander/Projects/libssh2/bin/watcom/CMakeFiles/CMakeTmp

Run Build Command:"wmake" "cmTryCompileExec3677462268\fast"
Open Watcom Make Version 1.9

Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.

Source code is available under the Sybase Open Watcom Public License.

See http://www.openwatcom.org/ [^] for details.

    C:\WATCOM\BINNT\wmake.exe -f CMakeFiles\cmTryCompileExec3677462268.dir\build.make -h CMakeFiles\cmTryCompileExec3677462268.dir\build

C:\PROGRA~2\CMake\bin\cmake.exe -E cmake_progress_report C:\Users\Alexander\Projects\libssh2\bin\watcom\CMakeFiles\CMakeTmp\CMakeFiles 1

Building C object CMakeFiles/cmTryCompileExec3677462268.dir/CMakeCCompilerABI.c.obj

C:\WATCOM\binnt\wcl386.exe -zq -bt=nt -w3 -dWIN32 -br -bm -d2 -d+ -foCMakeFiles\cmTryCompileExec3677462268.dir\CMakeCCompilerABI.c.obj -c -cc "C:\Program Files (x86)\CMake\share\cmake-3.1\Modules\CMakeCCompilerABI.c"

Open Watcom C32 Optimizing Compiler Version 1.9

Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.

Source code is available under the Sybase Open Watcom Public License.

See http://www.openwatcom.org/ [^] for details.

Error! E1139: Command line contains more than one file to compile

Error! E1139: Command line contains more than one file to compile

Error! Unable to open '(x86)\CMake\share\cmake-3.1\Modules\CMakeCCompilerABI.c'

Error: Compiler returned a bad status compiling "C:\Program Files (x86)\CMake\share\cmake-3.1\Modules\CMakeCCompilerABI.c"

Error(E42): Last command making (CMakeFiles\cmTryCompileExec3677462268.dir\CMakeCCompilerABI.c.obj) returned a bad status

Error(E02): Make execution terminated

Error(E42): Last command making (cmTryCompileExec3677462268\fast) returned a bad status

Error(E02): Make execution terminated
No tags attached.
related to 0012548closed Brad King "Watcom WMake" generator fails if path to CMake contains parentheses 
Issue History
2014-12-03 16:41Alex LamaisonNew Issue
2014-12-04 08:48Brad KingRelationship addedrelated to 0012548
2014-12-04 08:50Brad KingNote Added: 0037375
2014-12-04 09:03Brad KingNote Added: 0037376
2014-12-04 09:31Brad KingNote Added: 0037378
2016-06-10 14:29Kitware RobotNote Added: 0042680
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0037375)
Brad King   
2014-12-04 08:50   
For reference, the fix to 0012548 was here:

 Watcom: Use shortpath to CMake if full path has parens
 http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=23381d83 [^]
(0037376)
Brad King   
2014-12-04 09:03   
Issue 0012548 was about the parentheses in the path to the CMake binary. That was fixed. This is now the path to a source file used for compiler ABI detection.

I cannot reproduce the problem though. I tried CMake 3.0.2 and 3.1.0-rc2 in paths with " (x86)" in them and it works.
(0037378)
Brad King   
2014-12-04 09:31   
Re 0015279:0037376: I had tested with OpenWatcom 1.4. I can now reproduce the problem with OpenWatcom 1.9. It looks like that version made things worse and now does not like spaces either.
(0042680)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.