Skip to content
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

Compile Ipopt with LBT for all platforms #6836

Merged
merged 3 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 15 additions & 10 deletions C/Coin-OR/Ipopt/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ if [[ ${target} == *mingw* ]]; then
fi

if [[ "${target}" == *mingw* ]]; then
BLAS_LAPACK="-L${libdir} -lopenblas"
LBT="-lblastrampoline-5"
else
BLAS_LAPACK="-L${libdir} -lblastrampoline"
LBT="-lblastrampoline"
fi

./configure \
CFLAGS="-O3 -DNDEBUG" \
CXXFLAGS="-O3 -DNDEBUG" \
FFLAGS="-O3" \
FCFLAGS="-O3" \
--prefix=${prefix} \
--build=${MACHTYPE} \
--host=${target} \
Expand All @@ -40,13 +44,14 @@ fi
--with-pic \
--disable-dependency-tracking \
lt_cv_deplibs_check_method=pass_all \
--with-lapack-lflags="${BLAS_LAPACK}" \
--with-lapack-lflags="-L${libdir} ${LBT}" \
--with-mumps-cflags="-I${includedir}" \
--with-mumps-lflags="-ldmumps -lzmumps -lcmumps -lsmumps -lmumps_common -lmpiseq -lpord -lmetis ${BLAS_LAPACK} -lgfortran -lpthread" \
--with-asl-lflags="${LIBASL}"
--with-mumps-lflags="-L${libdir} -ldmumps" \
--with-spral-cflags="-I${includedir}" \
--with-spral-lflags="-L${libdir} -lspral" \
--with-asl-lflags="-L${libdir} ${LIBASL}"

# parallel build fails
make
make -j${nproc}
make install
"""

Expand All @@ -65,8 +70,8 @@ products = [
dependencies = [
Dependency(PackageSpec(name="ASL_jll", uuid="ae81ac8f-d209-56e5-92de-9978fef736f9"), ASL_version),
Dependency(PackageSpec(name="MUMPS_seq_jll", uuid="d7ed1dd3-d0ae-5e8e-bfb4-87a502085b8d"), compat="=$(MUMPS_seq_version_LBT)"),
Dependency(PackageSpec(name="OpenBLAS32_jll", uuid="656ef2d0-ae68-5445-9ca0-591084a874a2"), platforms=filter(Sys.iswindows, platforms)),
Dependency(PackageSpec(name="libblastrampoline_jll", uuid="8e850b90-86db-534c-a0d3-1478176c7d93"), platforms=filter(!Sys.iswindows, platforms)),
Dependency(PackageSpec(name="SPRAL_jll", uuid="319450e9-13b8-58e8-aa9f-8fd1420848ab"), compat="=$(SPRAL_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"))
]

Expand All @@ -81,5 +86,5 @@ build_tarballs(
products,
dependencies;
preferred_gcc_version = gcc_version,
julia_compat = "1.8"
julia_compat = "1.9"
)
5 changes: 3 additions & 2 deletions C/Coin-OR/coin-or-common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CoinUtils_gitsha = "26e9639ed9897e13e89169870dbe910296a9783b"

Ipopt_upstream_version = v"3.14.12"
Ipopt_gitsha = "26e0c6580b83a6e68cd63803b93a1e43092cfb33"
Ipopt_verson_offset = v"0.0.0"
Ipopt_verson_offset = v"0.0.1"
Ipopt_version = offset_version(Ipopt_upstream_version, Ipopt_verson_offset)

ALPS_upstream_version = v"1.5.7"
Expand Down Expand Up @@ -77,7 +77,8 @@ Julia_compat_version = "1.6"
ASL_version = v"0.1.3"
METIS_version = v"5.1.2"
MUMPS_seq_version = v"5.4.1"
MUMPS_seq_version_LBT = v"500.500.101"
MUMPS_seq_version_LBT = v"500.600.000"
SPRAL_version_LBT = v"2023.3.29"
OpenBLAS32_version = v"0.3.21"

# These are the platforms we will build for by default, unless further
Expand Down