Closed frangio68 closed 3 years ago
Sorry for the "does not seem a functional way to exclude it in coinbrew", I just noticed the "--skip=Data/Sample" from another post. I got the same error from Data/milplib3, so I have to --skip that as well. It seems that
--skip=Data/Sample --skip=Data/milplib3
does not work, but
--skip="Data/Sample Data/miplib3"
does. In fact this can be avoided, because I was using it wrong: the option is
ADD_CFLAGS="--no-warnings"
With this, finally OSI configuration worked and everything else went smoothly ... almost. The unit test of CBC takes forever, and the process seems to stall forever at
All tests completed successfully ** Unit Test succeeded.
after which I get a weird
make[1]: [test_cbc] Error 1 make: [test] Error 2
Build failed, see error output above
But I needed the OSI stuff and that is done. So, the issue is solved, for me, with
./coinbrew build Cbc ... --without-metis --without-mumps ADD_CFLAGS="--no-warnings"
Hope this is useful to someone. I leave to Ted to close it.
Best
A.
Just to summarize, the errors on Metis
and OsiCpx
are issues with those third-party codes, which have implicit function declarations. clang
helpfully offers a remedy, which is to add ADD_CFLAGS=-Werror,-Wimplicit-function-declaration
, but the CPLEX error can also be remedied by skipping the library check with --disable-cplex-libcheck
.
The Mumps error is probably something to do with having conflicting or incompatible versions of MPI installed, but I guess disabling MPI should fix that (not sure of the configure option for that). For Mumps and Metis, the current master
branch will look for pre-installed versions of Metis and Mumps, so it may be easier to install those with homebrew and forget about it.
To make things easy and just skip all the third-party codes, none of which are needed for most use cases, what you probably really want is
coinbrew build Cbc --no-third-party
Hi.
Trying to install CBC on Mac. Even with everything at default, it fails like this:
OS is Catalina (10.15.7), no Big Sur yet. Latest clang
It would seem clang has become pickier on C standards, i.e., it is ran by default with
which crashes things.
I then excluded Metis, which I don't need anyway, and I got
Build failed, see error output above
This I could not fathom, and I excluded Mumps as well. However I need OsiCpx, so I need to run
and I got
I have checked, and it does not seem my Cplex stuff is out of place. It seems to me this is the same error that Metis gave, hence I suspect it being the same picky compiler issue (-Werror,-Wimplicit-function-declaration).
I have tried to change the setting by adding
but then I get
I would happily kill Data (Star Trek fans would hate me ...), but there does not seem a functional way to exclude it in coinbrew.
So, there it is. It may not be a really coinbrew-specific issue, but I guess this is the right place to post it anyway.
Thanks
A.