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

Failing to build cvxopt-1.3.2 #37149

Closed
2 tasks done
drago-96 opened this issue Jan 23, 2024 · 4 comments
Closed
2 tasks done

Failing to build cvxopt-1.3.2 #37149

drago-96 opened this issue Jan 23, 2024 · 4 comments

Comments

@drago-96
Copy link
Contributor

Environment

- **OS**: macOS Sonoma 14.2.1
- **Sage Version**: 10.3.beta6

Steps To Reproduce

  1. git clone https://github.com/sagemath/sage.git sage-test && cd sage-test
  2. Install all packages suggested here
  3. export SAGE_ROOT=`pwd`
  4. export MAKE="make -j4"
  5. source ./.homebrew-build-env
  6. make configure
  7. ./configure
  8. make

Config log

config.log

Package logs

cvxopt-1.3.2.log

Additional Information

I think that this is closely related to issue #31905, which has been closed, but it seems not to be fully resolved.

I also tried building with the environment variables CVXOPT_SUITESPARSE_INC_DIR and CVXOPT_SUITESPARSE_LIB_DIR set to homebrew path of suite-sparse, but that didn't solve the issue either.

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@jhpalmieri
Copy link
Member

A workaround is ./configure --with-system-suitesparse=no before building Sage, but it would be nice to be able to use suite-sparse from homebrew.

@drago-96
Copy link
Contributor Author

Actually I was wrong, by setting CVXOPT_SUITESPARSE_INC_DIR=/opt/homebrew/include/suitesparse and CVXOPT_SUITESPARSE_LIB_DIR=/opt/homebrew/lib it seems to build fine!

However, I have no idea if and how I can make the sage build system do this check and eventually set these variables.

@jhpalmieri
Copy link
Member

Perhaps editing (and the rerunning) SAGE_ROOT/.homebrew-build-env?

@dimpase
Copy link
Member

dimpase commented Jan 30, 2024

The route cause of the trouble is an attempt to use pre-installed brand new version of SuiteSparse (7.6.0).

It was released this month (we should upgrade our SuiteSparse, by the way, I'll do a PR on this).

The error comes from
#include "umfpack.h" in CVXOPT code,
but by right on v7.6 it should be #include <suitesparse/umfpack.h>"

CVXOPT doesn't do a great job detecting these things it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants