Fix lapack linker path + slycot directory case#85
Closed
murrayrm wants to merge 3 commits intopython-control:masterfrom
Closed
Fix lapack linker path + slycot directory case#85murrayrm wants to merge 3 commits intopython-control:masterfrom
murrayrm wants to merge 3 commits intopython-control:masterfrom
Conversation
Collaborator
|
As far as I remember this is only valid when using OpenBLAS, not BLAS/LAPACK. I use the following code in the OpenSUSE package recipe for slycot: I am not sure if the |
This was referenced Jan 26, 2020
Collaborator
|
This one is obsolete with the recent merge of #91 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
python-controlpackage has been having build problems and I traced these back toslycot. The problem traced down to theCMakeinstallation not correctly linking in thelapacklibrary, which resulted in the following error during the build process forslycot:In chasing this down, I found out that
CMakewas not setting the variableLAPACK_LIBRARIESin theCMakeLists.txtfile. Specifically, the following codegenerate the output
It appears that the blank
LAPACK_LIBRARIESvariable meant thatslycotwas not actually being linked againstlapack. To fix this, I removed the commented out lineset(BLA_VENDOR "OpenBLAS"), which changes the output (on linux) to read:This PR uncomments that line and fixes the problem. I am not quite sure what changed that made this problem crop up...
@repagh Do you know/remember why that line was commented out.