[Osi] compiling on macOS with gcc 8

Stefan Vigerske stefan at math.hu-berlin.de
Wed Dec 19 03:44:24 EST 2018


Hi,

gcc 8 works for me.
That -V is not known might not be the reasons that configure stopped.
I don't see the rest of the config.log file, though.

Stefan

On 12/18/18 3:15 PM, Antonio Frangioni wrote:
> Hi.
> 
> 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.
> 
> I have g++-8 as provided by Homebrew.
> 
> Last year, when I had g++-7, I was able to by configuring it as
> 
> ./configure ... \
>              CC="/usr/local/bin/gcc-7" \
>              CXX="/usr/local/bin/g++-7"
>              CPP="/usr/local/bin/g++-7 -E"
> 
> Hence, I was hopeful to be able to do that again now by configuring it as
> 
> ./configure ... \
>              CC="/usr/local/bin/gcc-8" \
>              CXX="/usr/local/bin/g++-8"
>              CPP="/usr/local/bin/g++-8 -E"
> 
> Unfortunately, this does not work. I get
> 
> checking for C compiler default output file name... configure: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> and config.log says
> 
> configure:2041: /usr/local/bin/gcc-8 -V </dev/null >&5
> gcc-8: error: unrecognized command line option '-V'
> 
> I SVN'd the source with
> 
> svn co 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=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=OyTmGD4aV-veOGzH8smGZ_F-1zSBbeGWyxgPDf85uIo&s=-QNo8nd-XE3RvQIrlYdCimQZNs4qRdRSkSgfHLQ52bc&e=
> 
> 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.
> 
> Any idea about how to fix this?
> 
> 	Thank you in advance
> 
> 	  Antonio
> 
> ----------------------------------------------------------------------
> Youth is friendship, LEGO, SF, assembler, love, and mobile suits
> 
> 
> _______________________________________________
> 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=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=OyTmGD4aV-veOGzH8smGZ_F-1zSBbeGWyxgPDf85uIo&s=A5Zzzn6DKj8naJhfhbPnBY-ghTb8oY74jZQy1npOUxA&e=
> 



More information about the Osi mailing list