[Bug lto/93384] [10 Regression] Python 3.9.0a3 fails to build on ppc64le with GCC 10.0.1: redefined symbol cannot be used on reloc
vstinner at redhat dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 28 23:46:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93384
--- Comment #12 from Victor Stinner <vstinner at redhat dot com> ---
Created attachment 47726
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47726&action=edit
preprocessed object.c (gcc -E), bzip2 compressed
Here is the gcc -E output of Objects/object.c.
Truncated extract (function body replaced with "..."):
# 446 "../Include/cpython/object.h"
__attribute__ ((visibility ("default"))) void _PyObject_AssertFailed(
PyObject *obj,
const char *expr,
const char *msg,
const char *file,
int line,
const char *function);
void
_PyObject_AssertFailed(PyObject *obj, const char *expr, const char *msg,
const char *file, int line, const char *function)
{
...
Py_FatalError("_PyObject_AssertFailed");
}
I modified the command which creates Objects/object.o to get the preprocessor
output, but it's not directly related to the libpython3.9.so linking command
(which uses object.o and not object.c).
More information about the Gcc-bugs
mailing list