Skip to content

mac M1系统 ycm编译错误的问题 #415

Description

@wangzhibobetter

[ 78%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o
[ 80%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o
[ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o
[ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o
[ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o
[ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o
[ 92%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:49:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/attr.h:13:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/cast.h:442:36: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
" " + handle(frame->f_code->co_filename).caststd::string() +
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:49:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/attr.h:13:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/cast.h:444:29: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
handle(frame->f_code->co_name).caststd::string() + "\n";
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:49:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/attr.h:13:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/cast.h:445:26: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame = frame->f_back;
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
[ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o
[ 97%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2032:49: error: no member named 'frame' in '_ts'
PyFrameObject *frame = PyThreadState_Get()->frame;
~~~~~~~~~~~~~~~~~~~ ^
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2033:41: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame && (std::string) str(frame->f_code->co_name) == name &&
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2034:14: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame->f_code->co_argcount > 0) {
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2037:18: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2037:52: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:49:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/attr.h:13:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/cast.h:442:36: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
" " + handle(frame->f_code->co_filename).caststd::string() +
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:49:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/attr.h:13:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/cast.h:444:29: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
handle(frame->f_code->co_name).caststd::string() + "\n";
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:49:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/attr.h:13:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/cast.h:445:26: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame = frame->f_back;
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2032:49: error: no member named 'frame' in '_ts'
PyFrameObject *frame = PyThreadState_Get()->frame;
~~~~~~~~~~~~~~~~~~~ ^
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2033:41: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame && (std::string) str(frame->f_code->co_name) == name &&
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2034:14: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame->f_code->co_argcount > 0) {
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2037:18: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:20:
In file included from /Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21:
/Users/wzb/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/pybind11/pybind11/pybind11.h:2037:52: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
8 errors generated.
make[3]: *** [ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
8 errors generated.
make[3]: *** [ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o] Error 1
make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2
ERROR: the build failed.

NOTE: it is highly unlikely that this is a bug but rather
that this is a problem with the configuration of your system
or a missing dependency. Please carefully read CONTRIBUTING.md
and if you're sure that it is a bug, please raise an issue on the
issue tracker, including the entire output of this script
and the invocation line used to run it.

python :3.11.1
gcc : 14.0.0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions