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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugpy 1.8.1 build failure #1571

Closed
chenrui333 opened this issue Apr 27, 2024 · 2 comments
Closed

debugpy 1.8.1 build failure #1571

chenrui333 opened this issue Apr 27, 2024 · 2 comments

Comments

@chenrui333
Copy link

馃憢 while trying to upgrade jupyterlab to the latest 4.1.7 release, I ran into some build failure:

    clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DPy_BUILD_CORE_MODULE=1 -I/opt/homebrew/Cellar/jupyterlab/4.1.7/libexec/include -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c _pydevd_bundle/pydevd_cython.c -o build/temp.macosx-13.0-arm64-cpython-312/_pydevd_bundle/pydevd_cython.o
    _pydevd_bundle/pydevd_cython.c:40177:36: error: no member named 'curexc_traceback' in 'struct _ts'
            PyObject* tmp_tb = tstate->curexc_traceback;
                               ~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:40180:21: error: no member named 'curexc_traceback' in 'struct _ts'
                tstate->curexc_traceback = tb;
                ~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:40700:22: error: call to undeclared function '_PyUnicode_Ready'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
                         ^
    _pydevd_bundle/pydevd_cython.c:575:51: note: expanded from macro '__Pyx_PyUnicode_READY'
                                                  0 : _PyUnicode_Ready((PyObject *)(op)))
                                                      ^
    _pydevd_bundle/pydevd_cython.c:40700:22: note: did you mean '_PyUnicode_Copy'?
    _pydevd_bundle/pydevd_cython.c:575:51: note: expanded from macro '__Pyx_PyUnicode_READY'
                                                  0 : _PyUnicode_Ready((PyObject *)(op)))
                                                      ^
    /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/unicodeobject.h:402:23: note: '_PyUnicode_Copy' declared here
    PyAPI_FUNC(PyObject*) _PyUnicode_Copy(
                          ^
    _pydevd_bundle/pydevd_cython.c:41076:53: error: no member named 'ob_digit' in 'struct _longobject'
            const digit* digits = ((PyLongObject*)op1)->ob_digit;
                                  ~~~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:41627:53: error: no member named 'ob_digit' in 'struct _longobject'
            const digit* digits = ((PyLongObject*)op1)->ob_digit;
                                  ~~~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:41834:53: error: no member named 'ob_digit' in 'struct _longobject'
            const digit* digits = ((PyLongObject*)op1)->ob_digit;
                                  ~~~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:42563:55: error: no member named 'ob_digit' in 'struct _longobject'
                const digit* digits = ((PyLongObject*)x)->ob_digit;
                                      ~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:42618:55: error: no member named 'ob_digit' in 'struct _longobject'
                const digit* digits = ((PyLongObject*)x)->ob_digit;
                                      ~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:42759:55: error: no member named 'ob_digit' in 'struct _longobject'
                const digit* digits = ((PyLongObject*)x)->ob_digit;
                                      ~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:42814:55: error: no member named 'ob_digit' in 'struct _longobject'
                const digit* digits = ((PyLongObject*)x)->ob_digit;
                                      ~~~~~~~~~~~~~~~~~~  ^
    _pydevd_bundle/pydevd_cython.c:43303:47: error: no member named 'ob_digit' in 'struct _longobject'
        const digit* digits = ((PyLongObject*)b)->ob_digit;
                              ~~~~~~~~~~~~~~~~~~  ^
    11 errors generated.
    error: command '/opt/homebrew/Library/Homebrew/shims/mac/super/clang' failed with exit code 1
    warning: cmd_build_py: Failed to compile pydevd Cython extension modules (set SKIP_CYTHON_BUILD=1 to omit); proceeding without them.

relates to Homebrew/homebrew-core#170149

@antonio-rojas
Copy link

You can just remove the .c file and recythonize

@chenrui333
Copy link
Author

yeah, not build blocker, close via Homebrew/homebrew-core#172087

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

No branches or pull requests

2 participants