[New-bugs-announce] [issue46854] Failed to compile static python3.7.12

aprpp report at bugs.python.org
Thu Feb 24 22:46:49 EST 2022


New submission from aprpp <916495294 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue46854>
_______________________________________


More information about the New-bugs-announce mailing list