problem building pyscipopt

63 views
Skip to first unread message

Martin R

unread,
Feb 4, 2023, 5:55:08 AM2/4/23
to sage-devel
I built sage 9.8.rc0 from scratch, and then did ./sage -i pyscipopt, but this failed.  The log is attached.

I get the same result with 9.8.beta7 (but I did not build it from scratch).

The puzzle is that I believe I had SCIP already working.

I do not understand the error message at all:

  error: Command "gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -g -O2 -g -O2 -fPIC -I/home/martin/sage-trac/local/include -I/home/martin/sage-trac/local/var/lib/sage/venv-python3.11.1/include/python3.11 -c src/pyscipopt/scip.c -o build/temp.linux-x86_64-cpython-311/src/pyscipopt/scip.o" failed with exit status 1

This is relatively urgent for me :-(

Martin
pyscipopt-4.2.0.log

Matthias Koeppe

unread,
Feb 4, 2023, 9:45:37 AM2/4/23
to sage-devel
The real error appears farther down in the log.

  src/pyscipopt/scip.c: In function '__Pyx_AddTraceback': src/pyscipopt/scip.c:463:62: error: dereferencing pointer to incomplete type 'PyFrameObject' {aka 'struct _frame'} 463 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) | ^~ src/pyscipopt/scip.c:176759:5: note: in expansion of macro '__Pyx_PyFrame_SetLineNumber' 176759 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

This error may be specific to using Python 3.11; not sure if we have tested that.

Martin R

unread,
Feb 5, 2023, 12:50:31 PM2/5/23
to sage-devel
any idea what I could try?

Matthias Koeppe

unread,
Feb 5, 2023, 3:38:21 PM2/5/23
to sage-devel
Build with python 3.10 from the system?
Reply all
Reply to author
Forward
0 new messages