[Osi] compiling on macOS with gcc 8

Ted Ralphs tkr2 at lehigh.edu
Wed Dec 19 12:52:32 EST 2018


Hi Antonio,

Thanks for the report, I will fix the issues you highlighted. I guess you
are using the stable version of FlopC++ that has the externals pegged to
earlier release versions? Or are you building the latest release?

Cheers,

Ted

On Wed, Dec 19, 2018 at 8:32 AM Antonio Frangioni <frangio at di.unipi.it>
wrote:

> > gcc 8 works for me.
> > That -V is not known might not be the reasons that configure stopped.
>
> That's completely right, my mistake. I stopped when I saw that, but in
> fact the error was
>
> ld: library not found for -lSystem
> collect2: error: ld returned 1 exit status
>
> By this
>
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Homebrew_legacy-2Dhomebrew_issues_45011&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=DZfl0zqCVjZsbLxpn2XGlA&m=F7yX2hWYBjxiR6XkdFnwzkQm6qCv7e1QsgUR8P5gJxQ&s=TqeyTDQbe5itZx5Snl2alXclUJE1yllAIscgPJajhCA&e=
>
> I learnt this was an Homebrew issue, and by
>
> brew reinstall gcc
>
> I was able to configure, and then make, the whole FlopC++ thing (hence,
> OSI) using gcc-8.
>
> Well, almost: one has to use OSI 0.107.9 and Cbc 2.9.9, which is not what
> is fetched by FlopC++. Also, I was still getting an error from FlopC++:
>
> ../.././../src/Coin-OR/coin-FlopCpp/FlopCpp/src/MP_set.hpp:212:9: error:
> no matching conversion for functional-style cast from
>       'const flopc::SUBSETREF' to 'flopc::MP_domain'
>  return MP_domain(s);
>
> Thanks to Enrico Gorgone, I now know that this can be solved by changing
> line 211 of ../FlopCpp/src/MP_set.hpp from
>
>    MP_domain& operator()(const SUBSETREF& s) {
>         return MP_domain(s);
>     }
>
> in
>
>   const MP_domain& operator()(const SUBSETREF& s) {
>         return MP_domain(s);
>     }
>
> Sorry for not spotting my own Homebrew issue. Hope this will still be
> useful to somebody.
>
>         Best
>
>         Antonio
>
>
> _______________________________________________
> Osi mailing list
> Osi at list.coin-or.org
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_osi&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=DZfl0zqCVjZsbLxpn2XGlA&m=F7yX2hWYBjxiR6XkdFnwzkQm6qCv7e1QsgUR8P5gJxQ&s=M2hqmQ-BAyiYUc8GpywKAP0zxug8fw-ZrHaaW-9j840&e=
>


-- 
Dr. Ted Ralphs
Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20181219/8e7e5021/attachment.html>


More information about the Osi mailing list