-
Notifications
You must be signed in to change notification settings - Fork 572
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
[SLICOT] Another attempt to work around mingw/BB/LBT problems #5909
Conversation
You need to link with OpenBLAS_jll and not OpenBLAS32_jll on Windows here. |
# The following was derived from #4770 (Pfapack) | ||
# https://github.com/JuliaPackaging/Yggdrasil/pull/4770 | ||
# Since we need to link to libblastrampoline which has seen multiple | ||
# ABI-incompatible versions, we need to expand the julia versions we target | ||
julia_versions = [v"1.7", v"1.8", v"1.9", v"1.10"] | ||
function set_julia_version(platforms::Vector{Platform}, julia_version::VersionNumber) | ||
_platforms = deepcopy(platforms) | ||
for p in _platforms | ||
p["julia_version"] = string(julia_version) | ||
end | ||
return _platforms | ||
end | ||
expand_julia_versions(platforms::Vector{Platform}, julia_versions::Vector{VersionNumber}) = | ||
vcat(set_julia_version.(Ref(platforms), julia_versions)...) | ||
platforms = expand_julia_versions(platforms, julia_versions) |
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.
Why was this removed?
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.
Oh, you're changing the required version of Julia. But you can't do that without changing the version number of the package, otherwise you're breaking the previous build
# The following was derived from #4770 (Pfapack) | ||
# https://github.com/JuliaPackaging/Yggdrasil/pull/4770 | ||
# Since we need to link to libblastrampoline which has seen multiple | ||
# ABI-incompatible versions, we need to expand the julia versions we target | ||
julia_versions = [v"1.7", v"1.8", v"1.9", v"1.10"] | ||
function set_julia_version(platforms::Vector{Platform}, julia_version::VersionNumber) | ||
_platforms = deepcopy(platforms) | ||
for p in _platforms | ||
p["julia_version"] = string(julia_version) | ||
end | ||
return _platforms | ||
end | ||
expand_julia_versions(platforms::Vector{Platform}, julia_versions::Vector{VersionNumber}) = | ||
vcat(set_julia_version.(Ref(platforms), julia_versions)...) | ||
platforms = expand_julia_versions(platforms, julia_versions) |
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.
Oh, you're changing the required version of Julia. But you can't do that without changing the version number of the package, otherwise you're breaking the previous build
@andreasvarga would be ok with requiring Julia v1.8 for this? It'd simplify a few things. |
You mean Julia 1.8 and higher? Then I see no problem. |
The MWE of #47638 works now with Julia 1.8.1 and SLICOT_jll v5.8.1. Thanks everybody for your efforts. |
I successfuly performed the complete tests with the PeriodicSystems (see here). With Julia 1.7 under both Linux and Windows the v5.8.0+2 of SLICOT_jll was loaded, while for Julia 1.8 under both Linux and Windows the v5.8.1+0 of SLICOT_jll was loaded. Perfect! |
Following in the footsteps of Ipopt, we give up on LBT under Windows for the time being.
Since LBT on Julia v1.7 is a minefield (no versioning) we require v1.8+.
We'll hope that the BB/Pkg guys do some magic before LBT jumps a major version. But if we're in the same boat with a more prominent package, we may have a better chance at rescue otherwise.
This PR is intended to address #4969