<div dir="ltr">Hi Antonio,<div><br></div><div>Yeah, I put some effort into trying to figure out the compiler error with clang and FlopC++, but it's really obscure and I ultimately failed. </div><div><br></div><div>The problem you're having with gcc 8 will likely be fixed once we upgrade to a more recent version of the autotools, which is in the works. For now, though, you can override flags, too, when you invoke the configure script. Can you grep in config.status and see what CXXFLAGS is set to? Assuming there is a -V there, you can try stripping it out and set CXXFLAGS manually just as you set CXX. Let me know how it goes. I do have access to a Mac and can try to get it working myself, but not for a few days.</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 18, 2018 at 9:15 AM Antonio Frangioni <<a href="mailto:frangio@di.unipi.it">frangio@di.unipi.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi.<br>
<br>
I was trying to compile OSI on my Mac (running macOS High Sierra 10.13.6), but using GNU g++ rather than Apple's clang++. The rationale has actually to do with the fact that FlopC++ does compile under GNU g++, but it does not under clang++ and it hasn't for years for some obscure reason none has ever fixed.<br>
<br>
I have g++-8 as provided by Homebrew.<br>
<br>
Last year, when I had g++-7, I was able to by configuring it as<br>
<br>
./configure ... \<br>
            CC="/usr/local/bin/gcc-7" \<br>
            CXX="/usr/local/bin/g++-7"<br>
            CPP="/usr/local/bin/g++-7 -E"<br>
<br>
Hence, I was hopeful to be able to do that again now by configuring it as<br>
<br>
./configure ... \<br>
            CC="/usr/local/bin/gcc-8" \<br>
            CXX="/usr/local/bin/g++-8"<br>
            CPP="/usr/local/bin/g++-8 -E"<br>
<br>
Unfortunately, this does not work. I get<br>
<br>
checking for C compiler default output file name... configure: error: C compiler cannot create executables<br>
See `config.log' for more details.<br>
<br>
and config.log says<br>
<br>
configure:2041: /usr/local/bin/gcc-8 -V </dev/null >&5<br>
gcc-8: error: unrecognized command line option '-V'<br>
<br>
I SVN'd the source with<br>
<br>
svn co <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__projects.coin-2Dor.org_svn_Osi_stable_0.107&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=BcpBnEbz6aXQh9UTrwCuwGc19CGGlt639jXb9NtjTjw&s=e46Pp8AVQRvJSFZ5zup7RK-ZS2zUMthr6xNjE2eJp2I&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__projects.coin-2Dor.org_svn_Osi_stable_0.107&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=BcpBnEbz6aXQh9UTrwCuwGc19CGGlt639jXb9NtjTjw&s=e46Pp8AVQRvJSFZ5zup7RK-ZS2zUMthr6xNjE2eJp2I&e=</a><br>
<br>
so I guess this is the latest ./configure available. However, there must be something wrong with the way ./configure handles the "-V" option that g++-8 no longer has.<br>
<br>
Any idea about how to fix this?<br>
<br>
        Thank you in advance<br>
<br>
          Antonio<br>
<br>
----------------------------------------------------------------------<br>
Youth is friendship, LEGO, SF, assembler, love, and mobile suits <br>
<br>
<br>
_______________________________________________<br>
Osi mailing list<br>
<a href="mailto:Osi@list.coin-or.org" target="_blank">Osi@list.coin-or.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_osi&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=BcpBnEbz6aXQh9UTrwCuwGc19CGGlt639jXb9NtjTjw&s=x1qpW93eUczVy-Y3t3MKx-cZIQESkvlLjCIWia3MWiY&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_osi&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=BcpBnEbz6aXQh9UTrwCuwGc19CGGlt639jXb9NtjTjw&s=x1qpW93eUczVy-Y3t3MKx-cZIQESkvlLjCIWia3MWiY&e=</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Industrial and Systems Engineering<br>Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div></div></div></div></div></div></div>