<div dir="ltr">Hi Christoph,<div><br></div><div>Thanks for the report. This is a bit strange. I've never actually seen that particular linker error. Seems to be something with the Fortran library itself. I've been building Bonmin on WSL (Ubuntu) and have had no issues myself, but you are using a deprecated build method (sorry for the documentation being out of date, we have 20 projects to update and not enough time!), so any number of things could be going wrong.</div><div><br></div><div>So, first, would you mind opening on an issue on the Bonmin github site (<a href="https://github.com/coin-or/Bonmin">https://github.com/coin-or/Bonmin</a>). We're in the process of moving all project management over to github and it would be helpful to follow up on this there.</div><div><br></div><div>Second, can you try building using the "coinbrew" script, which is now the recommended method of building? (We are in the midst of moving to git and thus can no longer depend on SVN externals for checking out dependencies)</div><div><br></div><div><a href="https://github.com/coin-or/coinbrew">https://github.com/coin-or/coinbrew</a> </div><div><br></div><div>Documentation here:</div><div><br></div><div><a href="https://coin-or.github.io/coinbrew/">https://coin-or.github.io/coinbrew/</a> <br></div><div><br></div><div>You won't need to check anything out first, just get the script, fetch the source, and build. </div><div><br></div><div>If you get the same error, you should try using the system Blas and Lapack rather than the COIN-OR built version. You can do this by either commenting the lines in the Dependencies file or using '--skip "ThirdParty/Blas ThirdParty/Lapack"'</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 27, 2019 at 12:05 PM Neumann, Christoph (IOR) <<a href="mailto:christoph.neumann@kit.edu">christoph.neumann@kit.edu</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 Pierre, Stefan and Ted<br>
<br>
Thanks to all of you for your help! Stefan, your advice actually fixed the problem I described but I got stuck at another point so I figured that I'd try Pierre's approach, getting WSL (ubuntu). <br>
<br>
Using WSL, the configuration script with CPLEX worked - yeah, we're one step further! Yet, the make command still results in an error. I have attached both, the config.log as well as the output of make and hope that you can make some sense out of it... <br>
<br>
Cheers,<br>
Christoph  <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: Stefan Vigerske <<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>> <br>
Gesendet: Donnerstag, 6. Juni 2019 12:53<br>
An: Neumann, Christoph (IOR) <<a href="mailto:christoph.neumann@kit.edu" target="_blank">christoph.neumann@kit.edu</a>>; Ted Ralphs <<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>>; Pierre Bonami <<a href="mailto:pierre.bonami@gmail.com" target="_blank">pierre.bonami@gmail.com</a>><br>
Cc: <a href="mailto:bonmin@list.coin-or.org" target="_blank">bonmin@list.coin-or.org</a><br>
Betreff: Re: [Bonmin] Setting up Bonmin 1.8.7 with CPLEX 12.9<br>
<br>
Hi,<br>
<br>
for this particular one about the build system type, you could try running configure with --build=x86_64-pc-mingw32<br>
<br>
The autotools version used by Bonmin is still a bit old and doesn't know how to handle msys yet.<br>
<br>
Stefan<br>
<br>
On 6/5/19 6:25 PM, Neumann, Christoph (IOR) wrote:<br>
> Thanks for helping me out here! The reason for building in CYGWIN was that the process is layed out specifically for Bonmin here <<a href="https://projects.coin-or.org/Bonmin/wiki/CygwinInstall" rel="noreferrer" target="_blank">https://projects.coin-or.org/Bonmin/wiki/CygwinInstall</a>>  and that my expertise of compilation processes is very limited.<br>
> <br>
>   <br>
> <br>
> So I switched to Msys2 but got stuck a bit earlier in the process with <br>
> the error message<br>
> <br>
>   <br>
> <br>
> checking build system type... Invalid configuration `x86_64-pc-msys': <br>
> system `msys' not recognized<br>
> <br>
> configure: error: /bin/sh ../config.sub x86_64-pc-msys failed<br>
> <br>
>   <br>
> <br>
> I found a similar error in this github issue <<a href="https://github.com/coin-or/COIN-OR-OptimizationSuite/issues/6" rel="noreferrer" target="_blank">https://github.com/coin-or/COIN-OR-OptimizationSuite/issues/6</a>>  but `pacman -Syuu` returns that everything is already up to date. I set the path variables "C:\msys64\usr\bin" and "C:\msys64\usr\local\bin" and ran through things described here <<a href="https://www.devdungeon.com/content/install-gcc-compiler-windows-msys2-cc" rel="noreferrer" target="_blank">https://www.devdungeon.com/content/install-gcc-compiler-windows-msys2-cc</a>> .<br>
> <br>
>   <br>
> <br>
> Again, any help is greatly appreciated!<br>
> <br>
>   <br>
> <br>
> Cheers,<br>
> <br>
> Christoph<br>
> <br>
>   <br>
> <br>
>   <br>
> <br>
>   <br>
> <br>
> Von: Ted Ralphs <<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>><br>
> Gesendet: Mittwoch, 5. Juni 2019 05:27<br>
> An: Pierre Bonami <<a href="mailto:pierre.bonami@gmail.com" target="_blank">pierre.bonami@gmail.com</a>><br>
> Cc: <a href="mailto:bonmin@list.coin-or.org" target="_blank">bonmin@list.coin-or.org</a>; Neumann, Christoph (IOR) <br>
> <<a href="mailto:christoph.neumann@kit.edu" target="_blank">christoph.neumann@kit.edu</a>><br>
> Betreff: Re: [Bonmin] Setting up Bonmin 1.8.7 with CPLEX 12.9<br>
> <br>
>   <br>
> <br>
> Pierre, thanks for replying to this e-mail and reminding me about it. Christoph, I can certainly also help with getting you building. Is there a reason you really want to build in CYGWIN? These days, Msys2 and/or Windows Subsystem for Linux are much better options. We have not really kept up the CYGWIN support, since these better options exist and since it has some "eccentricities."<br>
> <br>
>   <br>
> <br>
> If you really want to build with CYGWIN, then sending your config.log is a good first step. Are you building with the Microsoft compilers or with gcc? I suspect it may have something to do with specifying Windows paths rather than POSIX paths.<br>
> <br>
>   <br>
> <br>
> Cheers,<br>
> <br>
>   <br>
> <br>
> Ted<br>
> <br>
>   <br>
> <br>
> On Mon, Jun 3, 2019 at 8:18 PM Pierre Bonami <<a href="mailto:pierre.bonami@gmail.com" target="_blank">pierre.bonami@gmail.com</a> <mailto:<a href="mailto:pierre.bonami@gmail.com" target="_blank">pierre.bonami@gmail.com</a>> > wrote:<br>
> <br>
> Dera Christoph,<br>
> <br>
>   <br>
> <br>
> I don’t have a windows machine so I am really unsure how to do it.<br>
> <br>
> Can you please send your config.log and the output of make so that I can see what is the error.<br>
> <br>
>   <br>
> <br>
> I have not done it in a long time but compiling from windows was always painful and very long. You might consider using a virtual machine in linux.<br>
> <br>
>   <br>
> <br>
> Best regards,<br>
> <br>
> Pierre<br>
> <br>
> On 21 May 2019, 16:55 +0200, Neumann, Christoph (IOR) <<a href="mailto:christoph.neumann@kit.edu" target="_blank">christoph.neumann@kit.edu</a> <mailto:<a href="mailto:christoph.neumann@kit.edu" target="_blank">christoph.neumann@kit.edu</a>> >, wrote:<br>
> <br>
> <br>
> <br>
> Dear experts,<br>
> <br>
>   <br>
> <br>
> I am trying to set up Bonmin 1.8.7 with CPLEX as MILP-Solver under Windows 10 using Cygwin and could really use some help. The configure script runs through successfully but I get an error message when executing the build command:<br>
> <br>
>   <br>
> <br>
> make[1]:Leaving directory <br>
> „/cygdrive/c/Programme/Bonmin-1.8.7/build/Cbc“<br>
> <br>
> make: *** [Makefile:312: all-recursive] Error 1<br>
> <br>
>   <br>
> <br>
> I had previously installed Bonmin (1.8.6) without CPLEX and it worked fine so I assume that the problem has to do with CPLEX even though the error occurs after leaving the Cbc folder.<br>
> <br>
>   <br>
> <br>
> Below, I provide some details that seem relevant:<br>
> <br>
> I installed an academic version of CPLEX 12.9, obtained the required <br>
> third party code for Bonmin as described in the instructions and used <br>
> the command<br>
> <br>
>   <br>
> <br>
> ./configure --with-cplex-lib="C:\Programme\IBM\ILOG\CPLEX_Studio129\cplex\lib\x64_windows_vs2017\stat_mdd\cplex1290.<br>
> <br>
> lib" \<br>
> <br>
> --with-cplex-incdir="C:\Programme\IBM\ILOG\CPLEX_Studio129\cplex\include\ilcplex"<br>
> <br>
>   <br>
> <br>
> for the configuration. It exits with the message `Main configuration of Bonmin successful`, so at least it seems that this part worked. I was a bit confused when specifying the path to the CPLEX library, as I did not find a libcplex.a file. Instead, the CPLEX-documentation  states:<br>
> <br>
>   <br>
> <br>
>    lib\<compiler>\<libformat>:<br>
> <br>
>                  Library files that contain CPLEX (cplex1290.lib) and<br>
> <br>
>                  CPLEX extensions to the C++ version of Concert Technology (ilocplex.lib).<br>
> <br>
>   <br>
> <br>
> so I assumed that cplex1290.lib is the required file(?).<br>
> <br>
>   <br>
> <br>
> For <compiler> I had the options: <x64_windows_vs2015, x64_windows_vs2017> and for <libformat>: <stat_mda, stat_mdd> and I tried out all four variations.<br>
> <br>
>   <br>
> <br>
> Any help is greatly appreciated!<br>
> <br>
>   <br>
> <br>
> Kind regards<br>
> <br>
> Christoph<br>
> <br>
> _______________________________________________<br>
> Bonmin mailing list<br>
> <a href="mailto:Bonmin@list.coin-or.org" target="_blank">Bonmin@list.coin-or.org</a> <mailto:<a href="mailto:Bonmin@list.coin-or.org" target="_blank">Bonmin@list.coin-or.org</a>> <br>
> <a href="https://list.coin-or.org/mailman/listinfo/bonmin" rel="noreferrer" target="_blank">https://list.coin-or.org/mailman/listinfo/bonmin</a><br>
> <br>
> _______________________________________________<br>
> Bonmin mailing list<br>
> <a href="mailto:Bonmin@list.coin-or.org" target="_blank">Bonmin@list.coin-or.org</a> <mailto:<a href="mailto:Bonmin@list.coin-or.org" target="_blank">Bonmin@list.coin-or.org</a>> <br>
> <a href="https://list.coin-or.org/mailman/listinfo/bonmin" rel="noreferrer" target="_blank">https://list.coin-or.org/mailman/listinfo/bonmin</a><br>
> <br>
> <br>
> <br>
> <br>
>   <br>
> <br>
> <br>
> _______________________________________________<br>
> Bonmin mailing list<br>
> <a href="mailto:Bonmin@list.coin-or.org" target="_blank">Bonmin@list.coin-or.org</a><br>
> <a href="https://list.coin-or.org/mailman/listinfo/bonmin" rel="noreferrer" target="_blank">https://list.coin-or.org/mailman/listinfo/bonmin</a><br>
> <br>
<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>