[issue33374] generate-posix-vars failed when building Python 2.7.14 on Linux

Peter Senna Tschudin report at bugs.python.org
Wed Jul 4 10:18:34 EDT 2018


Peter Senna Tschudin <peter.senna at gmail.com> added the comment:

I got here when trying to build Yocto Sumo on Fedora 28. python_native build was failing with a segfault. Here is how I fixed it with no elegance intended:

$ git clone https://github.com/python/cpython.git
$ cd cpython/
$ git show 0b91f8a668201fc58fa732b8acc496caedfdbae0 > /tmp/gcc8-fix.patch

$ cd $HOME/poky-sumo/meta/recipes-devtools/python
$ cp /tmp/gcc8-fix.patch python-native/

$ git diff python-native_2.7.14.bb
diff --git a/meta/recipes-devtools/python/python-native_2.7.14.bb b/meta/recipes-devtools/python/python-native_2.7.14.bb
index 7c491fa3e0..e9a8c14e9c 100644
--- a/meta/recipes-devtools/python/python-native_2.7.14.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.14.bb
@@ -16,6 +16,7 @@ SRC_URI += "\
             file://builddir.patch \
             file://parallel-makeinst-create-bindir.patch \
             file://revert_use_of_sysconfigdata.patch \
+            file://gcc8-fix.patch \
            "
 
 S = "${WORKDIR}/Python-${PV}"

----------
nosy: +Peter Senna Tschudin

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


More information about the Python-bugs-list mailing list