Open mkoeppe opened 3 years ago
Can you print the values of, https://github.com/sagemath/sage-prod/blob/master/build/pkgs/cvxopt/spkg-install.in#L20-L33
Issue is that somewhere, some code is adding /usr/include
to include directories and that conflicts with conda's sysroot.
We can try if upgrading cvxopt (#31467) helps
Moving to 9.4, as 9.3 has been released.
bump to 9.6
Same after upgrade to cvxopt 1.3.0 in #34150 (https://github.com/mkoeppe/sage/runs/7646124113)
The lines at https://github.com/sagemath/sage-prod/blob/master/build/pkgs/cvxopt/spkg-install.in#L68-L71 should be changed to
export CVXOPT_SUITESPARSE_LIB_DIR="${SAGE_LOCAL}/lib"
export CVXOPT_SUITESPARSE_INC_DIR="${SAGE_LOCAL}/include"
even when suitesparse is coming from the system, so that setup.py
doesn't add its default /usr/include
.
Yes, good idea.
In #31584 comment:10, I wrote:
We do not need to do this when we use system suitesparse, as we do not want to claim authority that our configure script's suitesparse-finding technique is better than the one in cvxopt's install script.
But as it turns out, our technique (= just relying on standard compiler/linker paths) is better.
Author: Matthias Koeppe
New commits:
5d3902e | build/pkgs/cvxopt/spkg-install.in: Unconditionally set CVXOPT_SUITESPARSE_LIB_DIR, CVXOPT_SUITESPARSE_INC_DIR |
Why export CVXOPT_SUITESPARSE_LIB_DIR="${SAGE_LOCAL}"
instead of export CVXOPT_SUITESPARSE_LIB_DIR="${SAGE_LOCAL}/lib"
?
Branch pushed to git repo; I updated commit sha1. New commits:
b2a8d0a | build/pkgs/cvxopt/spkg-install.in: Fixup |
Thanks. This made no sense. I've fixed the line below for GLPK, which made the same error. In the end it does not matter what we put there -- this directory is in the library search path anyway.
Looks good to me. Can you run the github actions for this?
This fixed it but it looks like it broke other platforms, including ubuntu-jammy
gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-rpath-link,/sage/local/lib -L/sage/local/lib -Wl,-rpath,/sage/local/lib -Wl,-rpath-link,/sage/local/lib -L/sage/local/lib -Wl,-rpath,/sage/local/lib -g -O2 build/temp.linux-x86_64-cpython-310/src/C/lapack.o -L/usr/lib/x86_64-linux-gnu/openblas-pthread/ -L/usr/lib/x86_64-linux-gnu -lopenblas -lopenblas -o build/lib.linux-x86_64-cpython-310/cvxopt/lapack.cpython-310-x86_64-linux-gnu.so
building 'umfpack' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -fPIC -I/sage/local/include -I/sage/local/var/lib/sage/venv-python3.10/include -I/usr/include/python3.10 -c src/C/umfpack.c -o build/temp.linux-x86_64-cpython-310/src/C/umfpack.o
src/C/umfpack.c:23:10: fatal error: umfpack.h: No such file or directory
23 | #include "umfpack.h"
| ^~~~~~~~~~~
compilation terminated.
https://github.com/mkoeppe/sage/runs/7682737008?check_suite_focus=true
Description changed:
---
+++
@@ -16,4 +16,4 @@
Running setup.py clean for cvxopt
- +We adjust cvxopt's install script, last changed in #31584
Related: #31905
https://github.com/mkoeppe/sage/runs/1201631449
We adjust cvxopt's install script, last changed in #31584
CC: @dimpase @isuruf
Component: packages: standard
Author: Matthias Koeppe
Branch/Commit: u/mkoeppe/local_conda_forge_ubuntu_standard__cvxopt_build_fails @
b2a8d0a
Reviewer: https://github.com/mkoeppe/sage/runs/7666787900
Issue created by migration from https://trac.sagemath.org/ticket/30710