[issue46854] Failed to compile static python3.7.12
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 <https://bugs.python.org/issue46854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46854] Failed to compile static python3.7.12
aprpp <916495...@qq.com> added the comment: I have signed the contributor agreement -- ___ Python tracker <https://bugs.python.org/issue46854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46854] Failed to compile static python3.7.12
Change by aprpp <916495...@qq.com>: -- status: closed -> open ___ Python tracker <https://bugs.python.org/issue46854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46854] Failed to compile static python3.7.12
aprpp <916495...@qq.com> added the comment: The platform i build python3.7.12 on is Ubuntu18.04, I would like to know how the modules I fail to build, like _ctypes, should be added in Modules/Setup. The steps for my build are: 1.tar -zxvf Python-3.7.12.tgz && cd Python-3.7.12 2.edit Modules/Setup, add modules build definitions in the Modules/Setup 3../configure LDFLAGS="-static" --disable-shared --prefix=/home/python3 4.make LDFLAGS="-static" LINKFORSHARED=" " How to build python3.7 statically without relying on editing Modules/Setup? -- ___ Python tracker <https://bugs.python.org/issue46854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46854] Failed to compile static python3.7.12
aprpp <916495...@qq.com> added the comment: As shown in the attachment, how should I add the definition of module _ctypes to Modules/Setup? Modules like _ctypes are not given in Modules/Setup.dist, I really don't know what they depend on -- Added file: https://bugs.python.org/file50644/Setup.PNG ___ Python tracker <https://bugs.python.org/issue46854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46854] Failed to compile static python3.7.12
aprpp <916495...@qq.com> added the comment: I'm really sorry, I would like to know what environment is the official recommendation for static python3.7 compilation? What are the steps and commands for compilation officially required? Because the static python3.7 is very important to me, it has been a week and it has not been compiled successfully.Hope to get official help.Thanks -- status: closed -> open ___ Python tracker <https://bugs.python.org/issue46854> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com