Skip to contentSkip to conversation

autobuild-run: do not build python statically with non-working toolchain

PATCH New Vicente Olivert Riera 2 participants 2 messages Jan 15, 2015 – Feb 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 autobuild-run: do not build python statically with non-working toolchain

Python package can't be built using this uClibc toolchain due to a problem with redefinitions:

setregid.c:(.text+0x0): multiple definition of setregid'setregid.c:(.text+0x0): multiple definition of setregid'

Reported upstream:
http://lists.busybox.net/pipermail/uclibc/2014-October/048699.html

Fixes:
http://autobuild.buildroot.net/results/74d/74deae1f7c81e319d1e7d00177f7c8e2c97b8ce8/

---
Changes v1 -> v2: disable only when BR2_STATIC_LIBS=y

 scripts/autobuild-run |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
scripts/autobuild-run +5 -0
index b27b2fc..eb3be36 100755
@@ -306,6 +306,11 @@ def fixup_config(instance, sysinfo):
     if 'BR2_PACKAGE_PYTHON3=y\n' in configlines and \
        'BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/mips64el-ctng_n64-linux-gnu.tar.xz"\n' in configlines:
         return False
+    # This MIPS uClibc toolchain fails to build the python package
+    if 'BR2_PACKAGE_PYTHON=y\n' in configlines and \
+       'BR2_STATIC_LIBS=y\n' in configlines and \
+       'BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-mipsel-o32-full-2014.11.tar.bz2"\n' in configlines:
+        return False
 
     with open(os.path.join(outputdir, ".config"), "w+") as configf:
         configf.writelines(configlines)
Signature · 1 line
1.7.1
#1 lore raw

PATCH v2 1/1 autobuild-run: do not build python statically with non-working toolchain

Dear Vicente Olivert Riera,

Quoted 6 lines · Vicente Olivert Riera

Python package can't be built using this uClibc toolchain due to a problem with redefinitions:

setregid.c:(.text+0x0): multiple definition of setregid'setregid.c:(.text+0x0): multiple definition of setregid'

Quoted 7 lines

Reported upstream:
http://lists.busybox.net/pipermail/uclibc/2014-October/048699.html

Fixes:
http://autobuild.buildroot.net/results/74d/74deae1f7c81e319d1e7d00177f7c8e2c97b8ce8/

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com