MantisBT - CMake
View Issue Details
0014154CMake(No Category)public2013-05-17 07:532013-10-07 10:09
Stephen Kelly 
Brad King 
normalminorhave not tried
closedfixed 
CMake 2.8.11 
CMake 2.8.12CMake 2.8.12 
0014154: CMAKE_LINKER in toolchain file containing a + breaks regex
With a toolchain file like this:

 set(CMAKE_SYSTEM_NAME Linux)

 set(CMAKE_C_COMPILER "/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-gcc")
 SET(CMAKE_LINKER "/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++" CACHE PATH "Linker Program")

CMake fails with any project:

  RegularExpression::compile(): Nested *?+.
 RegularExpression::compile(): Error in compile.
 CMake Error at /home/stephen/dev/prefix/qt48/kde/share/cmake-2.8/Modules/CMakeParseImplicitLinkInfo.cmake:38 (if):
   if given arguments:

     "Change Dir: /home/stephen/dev/src/playground/cmake/build/CMakeFiles/CMakeTmp" "MATCHES" "^( *|.*[/\\])(arm-linux-gnueabihf-g++|ld|collect2)[^/\\]*( |\$)" "AND" "NOT" "Change Dir: /home/stephen/dev/src/playground/cmake/build/CMakeFiles/CMakeTmp" "MATCHES" "collect2 version "

   Regular expression "^(
   *|.*[/\])(arm-linux-gnueabihf-g++|ld|collect2)[^/\]*( |$)" cannot compile
 Call Stack (most recent call first):
   /home/stephen/dev/prefix/qt48/kde/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:77 (CMAKE_PARSE_IMPLICIT_LINK_INFO)
   /home/stephen/dev/prefix/qt48/kde/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
   CMakeLists.txt:2 (project)


 -- Configuring incomplete, errors occurred!

No tags attached.
Issue History
2013-05-17 07:53Stephen KellyNew Issue
2013-05-17 09:07Brad KingNote Added: 0033087
2013-05-17 09:07Brad KingAssigned To => Brad King
2013-05-17 09:07Brad KingStatusnew => resolved
2013-05-17 09:07Brad KingResolutionopen => fixed
2013-05-17 09:07Brad KingFixed in Version => CMake 2.8.12
2013-05-17 09:07Brad KingTarget Version => CMake 2.8.12
2013-05-17 09:07Brad KingDescription Updatedbug_revision_view_page.php?rev_id=1164#r1164
2013-10-07 10:09Robert MaynardNote Added: 0034051
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0033087)
Brad King   
2013-05-17 09:07   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ffda082e [^]
(0034051)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.