[cmake-developers] [CMake 0012578]: Parenthesis in source or build path causes Cmake-gui to fail the compiler tests

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 14 14:57:13 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12578 
====================================================================== 
Reported By:                Jean-Christophe Houde
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12578
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-14 14:57 EST
Last Modified:              2011-11-14 14:57 EST
====================================================================== 
Summary:                    Parenthesis in source or build path causes Cmake-gui
to fail the compiler tests
Description: 
When using the Cmake gui, specifying a source or build path with an opening
parenthesis included causes the compiler tests to fail. Using the same path
without a parenthesis works.



Steps to Reproduce: 
1. Create a project directory like the following
   /project (space)
      /src
      /build
2. Start Cmake-gui.
3. Use the absolute path of the "src" directory as the "Where is the source
code" variable.
4. Use the absolute path of the "build" directory as the "Where to build the
binaries" variable.
5. Use any basic CMakeList file.
6. Try to configure the project.

It now should fail at the 

Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- broken

step.

Additional Information: 
The error message is

CMake Error at /Applications/CMake
2.8-6.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/houj2901/Documents/Recherche/Fibernavigator/trunk
(test)/build-code/CMakeFiles/CMakeTmp

  
  Run Build Command:/Applications/CMake\ 2.8-6.app/Contents/bin/cmakexbuild
  -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec
  -configuration Debug

  === BUILD NATIVE TARGET cmTryCompileExec OF PROJECT CMAKE_TRY_COMPILE WITH
  CONFIGURATION Debug ===

  Check dependencies

  CompileC
 
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec.build/Objects-normal/x86_64/testCCompiler.o
  testCCompiler.c normal x86_64 c com.apple.compilers.llvmgcc42

      cd "/Users/houj2901/Documents/Recherche/Fibernavigator/trunk
(test)/build-code/CMakeFiles/CMakeTmp"
      /Developer/usr/bin/llvm-gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe
-Wno-trigraphs -fpascal-strings -O0 -mdynamic-no-pic -DCMAKE_INTDIR="Debug"
-isysroot /Developer/SDKs/MacOSX10.6.sdk -fasm-blocks -mmacosx-version-min=10.6
-gdwarf-2 "-I/Users/houj2901/Documents/Recherche/Fibernavigator/trunk
(test)/build-code/CMakeFiles/CMakeTmp/Debug/include"
"-I/Users/houj2901/Documents/Recherche/Fibernavigator/trunk
(test)/build-code/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec.build/DerivedSources/x86_64"
"-I/Users/houj2901/Documents/Recherche/Fibernavigator/trunk
(test)/build-code/CMakeFiles/CMakeTmp/CMAKE_TRY** BUILD FAILED **

  

  

  The following build commands failed:

  	PhaseScriptExecution "CMake PostBuild Rules"
 
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec.build/Script-779D508F174847D09D396C67.sh


  (1 failure)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-14 14:57 Jean-Christophe HoudeNew Issue                                 
  
======================================================================




More information about the cmake-developers mailing list