-
Notifications
You must be signed in to change notification settings - Fork 93
Add explicit check for Blas and Lapack #311
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
Conversation
…with-lapack-lib work correctly
|
Clp doesn't depend on blas/lapack, so one shouldn't have to specify where to get it from. |
Yeah, I understand that, but there is no mechanism on Windows to automatically get the right linker flags, since we don't have |
|
Maybe the old addlibs is still there on the these old stable branches. Using If you specify linker flags manually, then just make sure to specify them completely. |
Does it work for building with
Yup, I think in this case, it's pretty simple because we are linking to C Blas and there is no asl or glpk. |
|
I use the old or new Intel compiler, but
So Some of this logic was introduced when updating BuildTools in 2021 and also the build systems also of CoinUtils, Clp, Cbc, etc were updated for that. If you have time to spend, then it would be best spend on the blockers for making releases from master. |
Yes, you are right. Some conda experts were willing to help push things forward and I thought I should capitalize on having that help to just get these conda packages going quickly. But it's always a bit of a rabbit hole. |
|
@svigerske OK, I got it working now in the way you suggested. In the end, it turned out I needed to switch to the MKL static libraries, which worked like a charm. As far as which has a mix of Windows paths and |
|
The What do you think? |
|
It's the Using the content from addlibs may work, but the backslashes in the But if you have something that works now, then better don't touch it again. |
|
pkg-config is still automatically disabled in the stable branches, which is what I'm working on. Anyway, you are right, I'll just leave well enough alone now and move on to focusing on getting new stables out. I'll just close this PR. |
This is needed to make
--with-blas-liband--with-lapack-libwork correctly. These arguments are generally not needed or used, which is why this has never been realized before. However, on Windows when using theclcompiler and linking to a Blas/Lapack library whose path is provided by specifying it with--with-blas-liband--with-lapack-lib, the linking fails. Blas and Lapack are not direct dependencies and so there is typically no reason to check for them when configuring Clp. But when there is no pkg-config support and the libraries are not either built from source or auto-discovered, it seems we need to fall back to also providing the library location when building Clp. This comes up when building conda packages on Windows, see here. @svigerske , does this look OK to you?