最新源码编译不出来uwsgi
详细叙述
最新源码编译不出来uwsgi,我看了下依赖这个是luci-light,luci-nginx依赖
重复 issue
- [x] 没有类似的 issue
具体型号
Friendly ARM NANOPC T4
详细日志
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 | 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 | (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 | me), PyFrame_GetLineNumber(frame), PyString_AsString(frame->f_code->co_name), frame->f_code->co_argcount); | ^~
*** unable to build python plugin *** make[3]: *** [Makefile:170: /home/yoki/lede/build_dir/target-aarch64_generic_musl/pypi/uwsgi-2.0.20/.built] Error 1 make[3]: Leaving directory '/home/yoki/lede/feeds/packages/net/uwsgi' time: package/feeds/packages/uwsgi/compile#5.70#1.29#6.95 ERROR: package/feeds/packages/uwsgi failed to build. make[2]: *** [package/Makefile:116: package/feeds/packages/uwsgi/compile] Error 1 make[2]: Leaving directory '/home/yoki/lede' make[1]: *** [package/Makefile:110: /home/yoki/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/yoki/lede' make: *** [/home/yoki/lede/include/toplevel.mk:231: world] Error 2
uwsgi需要升级用新版本 补丁不会修改提示找不libpcre2-8-0.so
rm -rf feeds/packages/net/uwsgi
https://github.com/immortalwrt/packages/tree/master/net/uwsgi 目录的文件替换到 feeds/packages/net/uwsgi
rm -rf feeds/packages/net/uwsgi/files-luci-support
https://github.com/coolsnowwolf/packages/tree/master/net/uwsgi/files-luci-support 目录的文件替换到 feeds/packages/net/uwsgi/files-luci-support
rm -rf feeds/packages/net/uwsgihttps://github.com/immortalwrt/packages/tree/master/net/uwsgi 目录的文件替换到feeds/packages/net/uwsgi
rm -rf feeds/packages/net/uwsgi/files-luci-supporthttps://github.com/coolsnowwolf/packages/tree/master/net/uwsgi/files-luci-support 目录的文件替换到feeds/packages/net/uwsgi/files-luci-support
非常感谢!这个问题困扰我很久一直都没空处理,看到你的解决方案,经测试是可行的!
可以通过以下步骤更新到Github Action中以修复问题 https://github.com/xylz0928/Openwrt-Make/commit/dbdd9c46219f14448fe7b981c8de72908773a519
mkdir package/uwsgi
cd package/uwsgi
git init
git remote add origin https://github.com/immortalwrt/packages.git
git config core.sparsecheckout true
echo "net/uwsgi/*" >> .git/info/sparse-checkout
git pull origin master
rm -rf net/uwsgi/files-luci-support
cd ../..
cp -r feeds/packages/net/uwsgi/files-luci-support package/uwsgi/net/uwsgi/
rm -rf feeds/packages/net/uwsgi/*
mv package/uwsgi/net/uwsgi/* feeds/packages/net/uwsgi/
rm -rf package/uwsgi