Opened 6 years ago

Closed 6 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
Cc:

Description

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
ream:38:
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/ios:
216:
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/__lo
cale:15:
In file included from /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/stri
ng:434:
/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 (https://gist.github.com/anonymous/7456094) and make.log (https://gist.github.com/anonymous/7456314).

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 6 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.