[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

STINNER Victor report at bugs.python.org
Mon Oct 26 20:28:09 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

With LTO, compile.o requires an undefined _Py_Mangle symbol:

$ gcc -pthread -c -DNDEBUG -fwrapv -O3 -std=c99 -fvisibility=hidden -flto -I./Include/internal  -I. -I./Include -DPy_BUILD_CORE -o Python/compile.o Python/compile.c; nm Python/compile.o | grep _Py_Mangle

         U _Py_Mangle


Without LTO, compile.o defines _Py_Mangle symbol:

$ gcc -pthread -c -DNDEBUG -fwrapv -O3 -std=c99 -fvisibility=hidden -I./Include/internal  -I. -I./Include -DPy_BUILD_CORE -o Python/compile.o Python/compile.c; nm Python/compile.o | grep _Py_Mangle

0000000000003c20 T _Py_Mangle

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42164>
_______________________________________


More information about the Python-bugs-list mailing list