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

uwsgi: build failed on ubuntu 18.04 #21163

Closed
ptpt52 opened this issue May 25, 2023 · 1 comment · Fixed by #21171
Closed

uwsgi: build failed on ubuntu 18.04 #21163

ptpt52 opened this issue May 25, 2023 · 1 comment · Fixed by #21171

Comments

@ptpt52
Copy link
Contributor

ptpt52 commented May 25, 2023

*** uWSGI building and linking plugin plugins/logfile ***
[mipsel-openwrt-linux-musl-gcc] ./logfile_plugin.so
build time: 0 seconds
*** logfile plugin built and available in ./logfile_plugin.so ***
make[3]: Leaving directory '/mnt/Data/Sources/openwrt/x-wrt/tmpfs/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20'
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mips16 -minterlink-mips16  -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include " LDFLAGS="-L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -znow -zrelro " CPP=mipsel-openwrt-linux-musl-cpp PYTHON=/mnt/Data/Sources/openwrt/x-wrt/staging_dir/hostpkg/bin/python3 LINUX_UNAME_VERSION=5.15.112 make -j1 -C /mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" plugin.syslog PROFILE=openwrt;
make[3]: Entering directory '/mnt/Data/Sources/openwrt/x-wrt/tmpfs/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20'
python3 uwsgiconfig.py --plugin plugins/syslog openwrt
using profile: buildconf/openwrt.ini
detected include path: ['/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/sys-include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include']
*** uWSGI building and linking plugin plugins/syslog ***
[mipsel-openwrt-linux-musl-gcc] ./syslog_plugin.so
build time: 0 seconds
*** syslog plugin built and available in ./syslog_plugin.so ***
make[3]: Leaving directory '/mnt/Data/Sources/openwrt/x-wrt/tmpfs/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20'
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mips16 -minterlink-mips16  -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include " LDFLAGS="-L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -znow -zrelro " CPP=mipsel-openwrt-linux-musl-cpp PYTHON=/mnt/Data/Sources/openwrt/x-wrt/staging_dir/hostpkg/bin/python3 LINUX_UNAME_VERSION=5.15.112 make -j1 -C /mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" plugin.cgi PROFILE=openwrt;
make[3]: Entering directory '/mnt/Data/Sources/openwrt/x-wrt/tmpfs/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20'
python3 uwsgiconfig.py --plugin plugins/cgi openwrt
using profile: buildconf/openwrt.ini
detected include path: ['/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/sys-include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include']
*** uWSGI building and linking plugin plugins/cgi ***
[mipsel-openwrt-linux-musl-gcc] ./cgi_plugin.so
build time: 0 seconds
*** cgi plugin built and available in ./cgi_plugin.so ***
make[3]: Leaving directory '/mnt/Data/Sources/openwrt/x-wrt/tmpfs/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20'
cd "/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20" && CC="mipsel-openwrt-linux-musl-gcc" CCSHARED="mipsel-openwrt-linux-musl-gcc -DPIC -fpic" CXX="mipsel-openwrt-linux-musl-g++" LD="mipsel-openwrt-linux-musl-gcc" LDSHARED="mipsel-openwrt-linux-musl-gcc -shared" CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CPPFLAGS="-I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11" LDFLAGS="-L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -znow -zrelro -lpython3.11" _PYTHON_HOST_PLATFORM="linux-mipsel" __PYVENV_LAUNCHER__="/usr/bin/python3.11" PYTHONPATH="/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/lib/python3.11:/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl//usr/lib/python3.11/site-packages:/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20/ipkg-install//usr/lib/python3.11/site-packages" PYTHONDONTWRITEBYTECODE=1 _python_sysroot="/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl" _python_prefix="/usr" _python_exec_prefix="/usr"  CPP="mipsel-openwrt-linux-musl-cpp" LINUX_UNAME_VERSION=5.15.112 CFLAGS="-I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include -I/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11 -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20=uwsgi-2.0.20 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro"  /mnt/Data/Sources/openwrt/x-wrt/staging_dir/hostpkg/bin/python3.11  uwsgiconfig.py --plugin plugins/python openwrt
using profile: buildconf/openwrt.ini
detected include path: ['/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/sys-include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.3.0/include', '/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include']
*** uWSGI building and linking plugin plugins/python ***
[mipsel-openwrt-linux-musl-gcc] ./python_plugin.so
plugins/python/python_plugin.c: In function 'uwsgi_python_init':
plugins/python/python_plugin.c:238:17: warning: 'Py_SetPythonHome' is deprecated [-Wdeprecated-declarations]
  238 |                 Py_SetPythonHome(wpyhome);
      |                 ^~~~~~~~~~~~~~~~
In file included from /mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11/Python.h:94,
                 from plugins/python/uwsgi_python.h:2,
                 from plugins/python/python_plugin.c:1:
/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11/pylifecycle.h:40:38: note: declared here
   40 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~
plugins/python/python_plugin.c:262:9: warning: 'Py_SetProgramName' is deprecated [-Wdeprecated-declarations]
  262 |         Py_SetProgramName(pname);
      |         ^~~~~~~~~~~~~~~~~
/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11/pylifecycle.h:37:38: note: declared here
   37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~~
plugins/python/python_plugin.c: In function 'uwsgi_python_init_apps':
plugins/python/python_plugin.c:1142:56: error: invalid application of 'sizeof' to incomplete type 'struct _frame'
 1142 |                 up.current_frame = uwsgi_malloc(sizeof(struct _frame)*uwsgi.async);
      |                                                        ^~~~~~
plugins/python/python_plugin.c: In function 'uwsgi_python_suspend':
plugins/python/python_plugin.c:1533:74: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'recursion_depth'; did you mean 'recursion_limit'?
 1533 |                 up.current_recursion_depth[wsgi_req->async_id] = tstate->recursion_depth;
      |                                                                          ^~~~~~~~~~~~~~~
      |                                                                          recursion_limit
plugins/python/python_plugin.c:1534:64: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'frame'; did you mean 'cframe'?
 1534 |                 up.current_frame[wsgi_req->async_id] = tstate->frame;
      |                                                                ^~~~~
      |                                                                cframe
plugins/python/python_plugin.c:1537:59: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'recursion_depth'; did you mean 'recursion_limit'?
 1537 |                 up.current_main_recursion_depth = tstate->recursion_depth;
      |                                                           ^~~~~~~~~~~~~~~
      |                                                           recursion_limit
plugins/python/python_plugin.c:1538:49: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'frame'; did you mean 'cframe'?
 1538 |                 up.current_main_frame = tstate->frame;
      |                                                 ^~~~~
      |                                                 cframe
plugins/python/python_plugin.c: In function 'uwsgi_python_resume':
plugins/python/python_plugin.c:1766:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'recursion_depth'; did you mean 'recursion_limit'?
 1766 |                 tstate->recursion_depth = up.current_recursion_depth[wsgi_req->async_id];
      |                         ^~~~~~~~~~~~~~~
      |                         recursion_limit
plugins/python/python_plugin.c:1767:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'frame'; did you mean 'cframe'?
 1767 |                 tstate->frame = up.current_frame[wsgi_req->async_id];
      |                         ^~~~~
      |                         cframe
plugins/python/python_plugin.c:1770:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'recursion_depth'; did you mean 'recursion_limit'?
 1770 |                 tstate->recursion_depth = up.current_main_recursion_depth;
      |                         ^~~~~~~~~~~~~~~
      |                         recursion_limit
plugins/python/python_plugin.c:1771:25: error: 'PyThreadState' {aka 'struct _ts'} has no member named 'frame'; did you mean 'cframe'?
 1771 |                 tstate->frame = up.current_main_frame;
      |                         ^~~~~
      |                         cframe
plugins/python/pyutils.c: In function 'init_pyargv':
plugins/python/pyutils.c:391:9: warning: 'PySys_SetArgv' is deprecated [-Wdeprecated-declarations]
  391 |         PySys_SetArgv(up.argc, up.py_argv);
      |         ^~~~~~~~~~~~~
In file included from /mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11/Python.h:96,
                 from plugins/python/uwsgi_python.h:2,
                 from plugins/python/pyutils.c:1:
/mnt/Data/Sources/openwrt/x-wrt/staging_dir/target-mipsel_24kc_musl/usr/include/python3.11/sysmodule.h:13:38: note: declared here
   13 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
      |                                      ^~~~~~~~~~~~~
plugins/python/profiler.c: In function 'uwsgi_python_profiler_call':
plugins/python/profiler.c:38:56: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   38 |                                 PyString_AsString(frame->f_code->co_filename),
      |                                                        ^~
plugins/python/profiler.c:40:56: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   40 |                                 PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount, frame->f_code->co_stacksize);
      |                                                        ^~
plugins/python/profiler.c:40:81: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   40 |                                 PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount, frame->f_code->co_stacksize);
      |                                                                                 ^~
plugins/python/profiler.c:40:109: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   40 |                                 PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount, frame->f_code->co_stacksize);
      |                                                                                                             ^~
plugins/python/profiler.c:48:56: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   48 |                                 PyString_AsString(frame->f_code->co_filename),
      |                                                        ^~
plugins/python/profiler.c:50:63: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   50 |                                 PyEval_GetFuncName(arg), frame->f_code->co_argcount, frame->f_code->co_stacksize);
      |                                                               ^~
plugins/python/profiler.c:50:91: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   50 |                                 PyEval_GetFuncName(arg), frame->f_code->co_argcount, frame->f_code->co_stacksize);
      |                                                                                           ^~
plugins/python/profiler.c: In function 'uwsgi_python_tracer':
plugins/python/profiler.c:71:140: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   71 |                 uwsgi_log("[uWSGI Python profiler %llu] file %s line %d: %s argc:%d\n", (unsigned long long)delta,  PyString_AsString(frame->f_code->co_filename), PyFrame_GetLineNumber(frame), PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount);
      |                                                                                                                                            ^~
plugins/python/profiler.c:71:217: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   71 | rofiler %llu] file %s line %d: %s argc:%d\n", (unsigned long long)delta,  PyString_AsString(frame->f_code->co_filename), PyFrame_GetLineNumber(frame), PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount);
      |                                                                                                                                                                               ^~

plugins/python/profiler.c:71:242: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
   71 | e %d: %s argc:%d\n", (unsigned long long)delta,  PyString_AsString(frame->f_code->co_filename), PyFrame_GetLineNumber(frame), PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount);
      |                                                                                                                                                                               ^~

*** unable to build python plugin ***
Makefile:163: recipe for target '/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20/.built' failed
make[2]: *** [/mnt/Data/Sources/openwrt/x-wrt/build_dir/target-mipsel_24kc_musl/pypi/uwsgi-2.0.20/.built] Error 1
make[2]: Leaving directory '/mnt/Data/Sources/openwrt/openwrt-feeds/packages/net/uwsgi'
time: package/feeds/packages/uwsgi/compile#3.50#0.43#3.86
    ERROR: package/feeds/packages/uwsgi failed to build.
package/Makefile:118: recipe for target 'package/feeds/packages/uwsgi/compile' failed
make[1]: *** [package/feeds/packages/uwsgi/compile] Error 1
make[1]: Leaving directory '/mnt/Data/Sources/openwrt/x-wrt'
/mnt/Data/Sources/openwrt/x-wrt/include/toplevel.mk:229: recipe for target 'package/feeds/packages/uwsgi/compile' failed
make: *** [package/feeds/packages/uwsgi/compile] Error 2
@ptpt52
Copy link
Contributor Author

ptpt52 commented May 25, 2023

I have to revert this commit to make it build pass

Revert "python3: Update to 3.11.3, refresh/redo patches"
This reverts commit 2445fe9.

ptpt52 referenced this issue May 25, 2023
* Removed patches:

  * 001-enable-zlib.patch: zlib module should be enabled automatically

  * 007-distutils-do-not-adjust-path.patch: Not necessary since we
    process shebang lines for all scripts (in python3-package.mk)

  * 030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch:
    Already merged

* Move configure vars from config.site back into Makefile

  Centralizing all build information into one file makes it easier to
  maintain

* No longer set ac_cv_header_uuid_h=yes as configure should detect
  libuuid

* Order configure args by enable-/disable-/with-/without-, then
  alphabetically

* Set ac_cv_working_openssl_hashlib=yes for host configure to bypass the
  OpenSSL API tests with LibreSSL

* Use the default Host/Compile recipe instead of picking out specific
  targets to make

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
jefferyto added a commit to jefferyto/openwrt-packages that referenced this issue May 25, 2023
This version includes support for Python 3.11.

This also:

* Updates Build/Compile to only build selected subpackages.

* Removes the submenu in menuconfig; there are too few subpackages to
  justify the extra complexity.

Fixes: openwrt#21163
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
neheb pushed a commit that referenced this issue May 26, 2023
This version includes support for Python 3.11.

This also:

* Updates Build/Compile to only build selected subpackages.

* Removes the submenu in menuconfig; there are too few subpackages to
  justify the extra complexity.

Fixes: #21163
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
jefferyto added a commit to jefferyto/openwrt-packages that referenced this issue May 26, 2023
This version includes support for Python 3.11.

This also:

* Updates Build/Compile to only build selected subpackages.

* Removes the submenu in menuconfig; there are too few subpackages to
  justify the extra complexity.

Fixes: openwrt#21163
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 4d8cc44)
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

Successfully merging a pull request may close this issue.

1 participant