-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Clp -- v1.17.9 #8066
Upgrade Clp -- v1.17.9 #8066
Changes from all commits
29f6e60
9e2497f
e8a2a73
dfbd871
7afd505
dd68c42
76aa26f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,10 +1,13 @@ | ||||||
# In addition to coin-or-common.jl, we need to modify this file to trigger a | ||||||
# rebuild. | ||||||
# | ||||||
# Last updated: 2022-10-26 | ||||||
# Last updated: 2024-07-16 | ||||||
|
||||||
include("../coin-or-common.jl") | ||||||
|
||||||
name = "Clp" | ||||||
version = Clp_version | ||||||
|
||||||
# Collection of sources required to build Clp | ||||||
sources = [ | ||||||
GitSource("https://github.com/coin-or/Clp.git", Clp_gitsha), | ||||||
|
@@ -35,6 +38,13 @@ if [[ ${target} == *aarch64* ]] || [[ ${target} == *arm* ]]; then | |||||
export CPPFLAGS="${CPPFLAGS} -D__arm__" | ||||||
fi | ||||||
|
||||||
# BLAS and LAPACK | ||||||
if [[ "${target}" == *mingw* ]]; then | ||||||
LBT="-lblastrampoline-5" | ||||||
else | ||||||
LBT="-lblastrampoline" | ||||||
fi | ||||||
|
||||||
../configure \ | ||||||
--prefix=$prefix \ | ||||||
--build=${MACHTYPE} \ | ||||||
|
@@ -45,19 +55,27 @@ fi | |||||
--disable-dependency-tracking \ | ||||||
--enable-shared \ | ||||||
lt_cv_deplibs_check_method=pass_all \ | ||||||
--with-blas="-lopenblas" \ | ||||||
--with-lapack="-lopenblas" \ | ||||||
--with-blas \ | ||||||
--with-blas-lib="-L${libdir} ${LBT}" \ | ||||||
--with-lapack \ | ||||||
--with-lapack-lib="-L${libdir} ${LBT}" \ | ||||||
--with-coinutils \ | ||||||
--with-coinutils-lib="-lCoinUtils" \ | ||||||
--with-osi-lib="-lOsi -lCoinUtils" \ | ||||||
--with-mumps-lib="-L${libdir} -ldmumps -lzmumps -lcmumps -lsmumps -lmumps_common -lmpiseq -lpord -lmetis -lopenblas -lgfortran -lpthread" \ | ||||||
--with-mumps-incdir="${includedir}/mumps_seq" \ | ||||||
--with-metis-lib="-L${libdir} -lmetis" \ | ||||||
--with-metis-incdir="${includedir}" | ||||||
--with-osi \ | ||||||
--with-osi-lib="-lOsi" \ | ||||||
--with-metis \ | ||||||
--with-metis-lib="-lmetis" \ | ||||||
--with-mumps \ | ||||||
--with-mumps-lib="-L${libdir} -ldmumps" \ | ||||||
--with-mumps-incdir="${includedir}/mumps_seq" | ||||||
|
||||||
make -j${nproc} | ||||||
make install | ||||||
""" | ||||||
|
||||||
platforms = supported_platforms() | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We don't want to use I suppose that you added these options a long time ago. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Clp is written in C++? I think they got added because at one point the auditor complained. But that was definitely a number of years ago so things might have changed. |
||||||
platforms = expand_gfortran_versions(platforms) | ||||||
|
||||||
# The products that we will ensure are always built | ||||||
products = [ | ||||||
LibraryProduct("libClp", :libClp), | ||||||
|
@@ -68,24 +86,25 @@ products = [ | |||||
|
||||||
# Dependencies that must be installed before this package can be built | ||||||
dependencies = [ | ||||||
Dependency("CoinUtils_jll", compat="$(CoinUtils_version)"), | ||||||
Dependency("Osi_jll", compat="$(Osi_version)"), | ||||||
Dependency("METIS_jll", compat="$(METIS_version)"), | ||||||
Dependency("MUMPS_seq_jll", compat="$(MUMPS_seq_version)"), | ||||||
Dependency("OpenBLAS32_jll", OpenBLAS32_version), | ||||||
Dependency("CompilerSupportLibraries_jll"), | ||||||
Dependency(PackageSpec(name="CoinUtils_jll", uuid="be027038-0da8-5614-b30d-e42594cb92df"), compat="=$(CoinUtils_version)"), | ||||||
Dependency(PackageSpec(name="METIS_jll", uuid="d00139f3-1899-568f-a2f0-47f597d42d70"), compat="=$(METIS_version)"), | ||||||
Dependency(PackageSpec(name="Osi_jll", uuid="7da25872-d9ce-5375-a4d3-7a845f58efdd"), compat="=$(Osi_version)"), | ||||||
Dependency(PackageSpec(name="MUMPS_seq_jll", uuid="d7ed1dd3-d0ae-5e8e-bfb4-87a502085b8d"), compat="=$(MUMPS_seq_version_LBT)"), | ||||||
Dependency(PackageSpec(name="libblastrampoline_jll", uuid="8e850b90-86db-534c-a0d3-1478176c7d93"), compat="5.4.0"), | ||||||
Dependency(PackageSpec(name="CompilerSupportLibraries_jll", uuid="e66e0078-7015-5450-92f7-15fbd957f2ae")) | ||||||
] | ||||||
|
||||||
# Build the tarballs, and possibly a `build.jl` as well. | ||||||
build_tarballs( | ||||||
ARGS, | ||||||
"Clp", | ||||||
Clp_version, | ||||||
name, | ||||||
version, | ||||||
sources, | ||||||
script, | ||||||
expand_gfortran_versions(platforms), | ||||||
platforms, | ||||||
products, | ||||||
dependencies; | ||||||
preferred_gcc_version = gcc_version, | ||||||
julia_compat = Julia_compat_version, | ||||||
preferred_llvm_version = llvm_version, | ||||||
julia_compat = "1.9" | ||||||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we needed to expand on fortran versions because of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so because Clp doesn't contain Fortran code.
It's MUMPS that is linked to
libgfortran
.We need all these options only if we use static libraries.
Because we have a shared library
libdmumps.$dlext
, this library is already linked tolibmetis
,libpord
,libgfortran
etc...