Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3611 closed defect (fixed)

Mac build error: Unsupported version of OS X : 10.11.1

Reported by: cxh@… Owned by: somebody
Priority: normal Milestone: 1.9.4
Component: *unknown* Version:
Keywords: mac, cmake Cc:

Description

While building from the GitHub repo, cmake fails under El Capitan (Mac OS X 10.11.1) while running "make omc":

...
mkdir -p ParadisEO-2.0.1/build
(cd ParadisEO-2.0.1/build && CC="gcc" CXX="g++" CFLAGS="-I/opt/local/include" CPPFLAGS="" CXXFLAGS="-g -O2" c\
make ..)
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /Applications/Doxygen.app/Contents/Resources/doxygen (found version "1.8.9.1")
CMake Error at cmake/Config.cmake:11 (message):
  Unsupported version of OS X : 10.11.1

Call Stack (most recent call first):
  CMakeLists.txt:41 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/cxh/src/OpenModelica/OMOptim/ParadisEO-2.0.1/build/CMakeFiles/CMakeOutput.log".
make[1]: *** [ParadisEO-2.0.1/build/Makefile] Error 1
make: *** [omoptim] Error 2

Solution: In OpenModelica/OMOptim/ParadisEO-2.0.1/cmake/Config.cmake, change:

     string(REGEX REPLACE "10\\.([0-9]).*" "\\1" MACOSX_VERSION "${MACOSX_VERSION_RAW}")

to:

     string(REGEX REPLACE "10\\.([0-9]*).*" "\\1" MACOSX_VERSION "${MACOSX_VERSION_RAW}") 

Change History (3)

comment:1 by Henning Kiel, 9 years ago

Milestone: Future1.9.4
Resolution: fixed
Status: newclosed

Fixed in 10c22ef

I changed the "([0-9]*)" to "([0-9]+)" to have at least one digit there

Version 0, edited 9 years ago by Henning Kiel (next)

comment:2 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.