Opened 8 years ago

Closed 8 years ago

#139 closed defect (fixed)

Compilation fails on OSX 10.9 with clang

Reported by: dominique Owned by: tkr
Priority: major Component: Cbc
Version: 2.7 Keywords: 2.8.5


The latest version of OSX (10.9, aka Mavericks) ships with clang 500-2.79, part of llvm 5.0.

The compilation of CBC fails with the following error:

In file included from ../../../../Cgl/src/CglLandP/CglLandPSimplex.cpp:11:
In file included from ../../../../Cgl/src/CglLandP/CglLandPSimplex.hpp:14:
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/iost
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/ios:
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/__lo
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/stri
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/algorithm:644:97: error: invalid operands to binary expression ('const LAP::reducedCost' and 'const LAP::reducedCost')
    _LIBCPP_INLINE_VISIBILITY bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;}
                                                                                            ~~~ ^ ~~~

Here are the complete config.log ( and make.log (

The error appears to occur in CGL but strangely, I'm able to compile CGL 0.58.3 by itself with the same compiler.

This error doesn't occur on the previous version of OSX (10.8).

Thanks in advance!

Change History (1)

comment:1 Changed 8 years ago by tkr

  • Resolution set to fixed
  • Status changed from new to closed

This was due to a small "bug" in Cgl, which is fixed in the latest release.

Note: See TracTickets for help on using tickets.