coin-or / OS

Optimization Services
Other
1 stars 4 forks source link

Trouble with Compiling OS #54

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: mbakhtvar

Original creation time: 2014-04-16 10:08:54

As Tony suggested I made this ticket to avoid spamming the mailing list. So far I have tried installing OS through the normal procedure:

  1. get Thirdparty
  2. configure
  3. make
  4. error

make log is available in https://gist.github.com/anonymous/10836926 and Mumps config log is available in https://gist.github.com/anonymous/10840197

According to Tony my Mumps config version might be the issue. Latest one is 1.4.13 and mine is 1.4. I am going to update it and see what happens.

svigerske commented 5 years ago

Comment by @tkelman created at 2014-04-16 10:21:01

Thanks.

As I suggested here http://list.coin-or.org/pipermail/couenne/2014-April/000392.html you should be able to work around this by adding ADD_FFLAGS=-static-libgcc to your configure call.

To clarify, you're working from OS/trunk ?

The commit that should fix this in configure is here https://projects.coin-or.org/BuildTools/changeset/3004 - this change is included in BuildTools versions 0.7.10 and later, and any project that has had autotools re-run on it since then.

svigerske commented 5 years ago

Comment by @tkralphs created at 2014-04-16 15:22:33

Building with 64-bit MinGW is a real challenge. Even if you get things to build, the binaries won't always work properly due to some 32-bit/64-bit Windows voodoo I don't really understand too well. If you build 64-bit binaries in 32-bit CYGWIN, for example, they don't seem to work. I've never gotten the TDM-64 compiler to work successfully.

The only real success I've had is with building with 64-bit MinGW under 64-bit CYGWIN. The following incantation worked for building OS 2.8.3 and generated binaries that seem to run (though I have not personally used them except to basic testing).

cd ThirdParty/Mumps ./get.Mumps ../configure --enable-dependency-linking --enable-shared --enable-static --disable-pthread-mumps lt_cv_deplibs_check_method=pass_all --host=x86_64-w64-mingw32 make make install

This will generate DLLs. If you leave off the --enable-shared, it should generate static binaries that might be easier to work with. I can provide the binaries I've managed to build but they are not using HSL.

For Mumps, you should definitely use the script get.Mumps to just download the version that is tested and known to work. Substituting the latest version will probably not work. We convince the Mumps folks to make the older version we work with available for download permanently since things frequently break otherwise.

svigerske commented 5 years ago

Comment by mbakhtvar created at 2014-04-16 17:51:15

So far:

I got latest stable version of all third parties manually from https://projects.coin-or.org/BuildTools/browser/ThirdParty?order=name and using ADD_FFLAGS=-static-libgcc and got it compiled successfully without HSL.

Now I am recompiling it with HSL. I am very positive that this be fine as well.

Note: Compiling with HSL went smoothly as well.

svigerske commented 5 years ago

Comment by @h-i-gassmann created at 2014-04-17 10:08:10

Resolution: fixed