View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003483CMakeCMakepublic2006-07-05 08:222006-10-04 11:38
ReporterBenjamin Reed 
Assigned ToBill Hoffman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003483: 2.4 branch failure on Mac OS X 10.3
DescriptionThe KDE dashboard system for Mac OS X 10.3 has been failing for a couple of days with this error:

---(snip!)---
CMake Error: Error in cmake code at
:20:
MATH cannot parse the expression: "*10000 + *100 + ": syntax error, unexpected exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (1)
Current CMake stack: /Users/ranger/cvs/kdelibs-nightly-src/CMakeLists.txt;/opt/cmake/share/CMake/Modules/CMakeCInformation.cmake;/opt/cmake/share/CMake/Modules/CMakeCXXInformation.cmake;/Users/ranger/cvs/kdelibs-nightly-src/cmake/modules/FindKDE4Internal.cmake
CMake Error: Error in cmake code at
/Users/ranger/cvs/kdelibs-nightly-src/cmake/modules/FindKDE4Internal.cmake:599:
A command failed during the invocation of macro "MACRO_ENSURE_VERSION".
CMake Error: Error in cmake code at
/Users/ranger/cvs/kdelibs-nightly-src/cmake/modules/FindKDE4Internal.cmake:599:
MACRO_ENSURE_VERSION unknown error.
Current CMake stack: /Users/ranger/cvs/kdelibs-nightly-src/CMakeLists.txt;/opt/cmake/share/CMake/Modules/CMakeCInformation.cmake;/opt/cmake/share/CMake/Modules/CMakeCXXInformation.cmake;/Users/ranger/cvs/kdelibs-nightly-src/cmake/modules/FindKDE4Internal.cmake
-- have_visibility: version>=4.1: bad alloctor: FALSE
---(snip!)---

That bit of the cmake macro looks like this:

---(snip!)---
    596 # get information about gcc
    597 exec_program(${CMAKE_C_COMPILER} ARGS -v OUTPUT_VARIABLE _gcc_info)
    598
    599 string (REGEX MATCH " [34]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_info}")
    600 macro_ensure_version("4.1.0" "${_gcc_version}" GCC_IS_NEWER_THAN_4_1)
    601
    602 if (GCC_IS_NEWER_THAN_4_1)
    603 string(REGEX MATCH "(--enable-libstdcxx-allocator=mt)" _GCC_COMPILED_WITH_BAD_ALLOCATOR "${_gcc_info}")
    604 else (GCC_IS_NEWER_THAN_4_1)
    605 set(_GCC_COMPILED_WITH_BAD_ALLOCATOR FALSE)
    606 endif (GCC_IS_NEWER_THAN_4_1)
---(snip!)---

...and the output of "gcc --version" on my mac looks like this:

---(snip!)---
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
---(snip!)---

It looks like the regex isn't matching (because the version only has major.minor, instead of major.minor.micro) but it shouldn't be crashing on that, I would think. :)

I originally had been using CVS HEAD on this box (for the updated .dylib handling) and it had failed there too. I tried updating to the 2.4 branch, hoping it was just a stability issue in HEAD, but this seems to not be the case.

It works fine on 10.4 (which has gcc 4.0.1, which would match the regex), so it's got to be something specific to my 10.3 machine.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0004435)
Bill Hoffman (manager)
2006-07-11 12:26

Is this a cmake or kde cmake file bug?
(0004436)
Benjamin Reed (reporter)
2006-07-11 12:29

It's a kde cmake error that has since been fixed, but I would say it's a cmake error that the error message it spits out is pretty obtuse... Perhaps there should be a more user-friendly error when trying to do math on an undefined value?

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team