Cannot build cbc due to outdated Mumps and Metis dependencies
dmerejkowsky opened this issue · comments
When trying to build cbc 2.10.1 with coinbrew, the downloading of Thirdparty/Metis
fails:
##################################################
### Fetching ThirdParty/Metis releases/1.3.7
##################################################
Cloning into 'ThirdParty/Metis'...
...
Note: switching to '06a0668ae3453682729ffda3535648f8c035bac8'.
...
Running script for downloading the source code for the METIS
Downloading the source code from glaros.dtc.umn.edu...
--2023-10-18 10:55:30-- http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/metis-4.0.3.tar.gz
Resolving glaros.dtc.umn.edu (glaros.dtc.umn.edu)... 160.94.40.33
Connecting to glaros.dtc.umn.edu (glaros.dtc.umn.edu)|160.94.40.33|:80..
...
# no output
Ditto for Mumps.
I'm guessing that the problem is that coinbrew
fetches an old version of Metis, which does not use the github url.
I've managed to build a working version of cbc
by patching the dependencies in cbc/Dependencies
so if you want I can try and make a PR somewhere.
Here's the patch:
From 58504c004c75a595119b0c41ac208a53808ce66c Mon Sep 17 00:00:00 2001
From: Dimitri Merejkowsky <dimitri@dmerej.info>
Date: Wed, 18 Oct 2023 11:06:55 +0200
Subject: [PATCH] Dependencies: bump Metis, Mumps
---
Dependencies | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Dependencies b/Dependencies
index 0d225d0e..985796cd 100644
--- a/Dependencies
+++ b/Dependencies
@@ -3,8 +3,8 @@ ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/relea
ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/releases/1.4.7/
ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/releases/1.6.0/
ThirdParty/Glpk https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/releases/1.10.6/
-ThirdParty/Metis https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/releases/1.3.7/
-ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/releases/1.6.1/
+ThirdParty/Metis https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/releases/1.3.8/
+ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/releases/1.6.3/
Data/Sample https://projects.coin-or.org/svn/Data/Sample/releases/1.2.11/
Data/miplib3 https://projects.coin-or.org/svn/Data/miplib3/releases/1.2.7/
CoinUtils https://projects.coin-or.org/svn/CoinUtils/releases/2.11.1/CoinUtils
--
2.42.0
I don't think we'll patch up old releases. I hope it works fine with the latest release (2.10.10).
Yeah sorry - the bug is still there on the latest release - the patch is the same except the file is now in .coin-or/Dependencies
Then I don't understand what goes on.
https://github.com/coin-or/Cbc/blob/releases/2.10.10/.coin-or/Dependencies says
ThirdParty/Metis https://github.com/coin-or-tools/ThirdParty-Metis stable/1.3
ThirdParty/Mumps https://github.com/coin-or-tools/ThirdParty-Mumps stable/1.6
So coinbrew
should either check out the 1.3 and 1.6 branches, respectively, or the latest releases from 1.3 and 1.6, respectively.
Oooh I understand what's going on :) I got confused while copy/pasting the version number in the script - I thought I was building 2.10.10 but was instead building 2.10.1
We can close this - sorry for the noise