New submission from aprpp <916495...@qq.com>: I compile static version of python3.7.12, I added the static standard library that I want to compile in Modules/Setup, reference Modules/Setup.dist in python source, like this:
static Modules that should always be present (non UNIX dependent): array arraymodule.c # array objects cmath cmathmodule.c _math.c # -lm # complex math library functions math mathmodule.c _math.c # -lm # math library functions, e.g. sin() _contextvars _contextvarsmodule.c # Context Variables _struct _struct.c # binary structure packing/unpacking But there are still many modules that fail to compile, these modules with no commented out build definitions in the Modules/Setup.dist file. How do I add these modules build definitions to the Modules/Setup, yes they compile successfully ? Failed to build these modules: _bz2 _ctypes _ctypes_test _decimal _hashlib _json _lsprof _lzma _multiprocessing _opcode _ssl _testbuffer _testimportmultiple _testmultiphase _uuid _xxtestfuzz ossaudiodev xxlimited ---------- components: Build files: 截图.PNG messages: 413958 nosy: aprpp priority: normal severity: normal status: open title: Failed to compile static python3.7.12 type: compile error versions: Python 3.7 Added file: https://bugs.python.org/file50643/截图.PNG _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46854> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com