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

cvxopt fails on arm macos: no LC_RPATH's found #38771

Open
2 tasks done
vbraun opened this issue Oct 5, 2024 · 0 comments
Open
2 tasks done

cvxopt fails on arm macos: no LC_RPATH's found #38771

vbraun opened this issue Oct 5, 2024 · 0 comments
Labels

Comments

@vbraun
Copy link
Member

vbraun commented Oct 5, 2024

Steps To Reproduce

Build sage from source, with as few external depedencies as possible

Expected Behavior

No crash ;-)

Actual Behavior

cvxopt does not set up rpaths, so any attempt at using it fails:

**********************************************************************
File "src/doc/en/thematic_tutorials/numerical_sage/cvxopt.rst", line 35, in doc.en.thematic_tutorials.numerical_sage.cvxopt
Failed example:
    from cvxopt import umfpack
Exception raised:
    Traceback (most recent call last):
      File "/Users/buildbot-sage/worker/sage_git/build/src/sage/doctest/forker.py", line 714, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/Users/buildbot-sage/worker/sage_git/build/src/sage/doctest/forker.py", line 1144, in compile_and_execute
        exec(compiled, globs)
      File "<doctest doc.en.thematic_tutorials.numerical_sage.cvxopt[3]>", line 1, in <module>
        from cvxopt import umfpack
    ImportError: dlopen(/Users/buildbot-sage/worker/sage_git/build/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/cvxopt/umfpack.cpython-312-darwin.so, 0x0002): Library not loaded: @rpath/libumfpack.6.dylib
      Referenced from: <0B34CA55-D3C1-34D6-9066-3F5A609B4A2D> /Users/buildbot-sage/worker/sage_git/build/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/cvxopt/umfpack.cpython-312-darwin.so
      Reason: no LC_RPATH's found
**********************************************************************
**********************************************************************
File "src/doc/en/thematic_tutorials/numerical_sage/cvxopt.rst", line 35, in doc.en.thematic_tutorials.numerical_sage.cvxopt
Failed example:
    from cvxopt import umfpack
Exception raised:
    Traceback (most recent call last):
      File "/Users/buildbot-sage/worker/sage_git/build/src/sage/doctest/forker.py", line 714, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/Users/buildbot-sage/worker/sage_git/build/src/sage/doctest/forker.py", line 1144, in compile_and_execute
        exec(compiled, globs)
      File "<doctest doc.en.thematic_tutorials.numerical_sage.cvxopt[3]>", line 1, in <module>
        from cvxopt import umfpack
    ImportError: dlopen(/Users/buildbot-sage/worker/sage_git/build/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/cvxopt/umfpack.cpython-312-darwin.so, 0x0002): Library not loaded: @rpath/libumfpack.6.dylib
      Referenced from: <0B34CA55-D3C1-34D6-9066-3F5A609B4A2D> /Users/buildbot-sage/worker/sage_git/build/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/cvxopt/umfpack.cpython-312-darwin.so
      Reason: no LC_RPATH's found
**********************************************************************

Additional Information

No response

Environment

Mac mini M2

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
@vbraun vbraun added the t: bug label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant