Skip to contentSkip to conversation

autobuild-run: do not build strongswan using an incompatible toolchain

PATCH New Vicente Olivert Riera 2 participants 3 messages Sep 11, 2015 – Oct 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 autobuild-run: do not build strongswan using an incompatible toolchain

This external MIPS toolchain uses eglibc-2.18 which lacks the definition of the SYS_getdents64 macro for MIPS64 n64. Because of that, strongswan package fails to build and shows this error message:

utils/utils.c: In function 'closefrom':
utils/utils.c:151:25: error: 'SYS_getdents64' undeclared (first use in this function)
while ((len = syscall(SYS_getdents64, dir_fd, buffer,

Fixes:

http://autobuild.buildroot.net/results/ea2/ea2be188b88ceb1cad4314bdaf00184cb74b9e26/

---
 scripts/autobuild-run |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
scripts/autobuild-run +4 -0
index ae28165..6e98b2c 100755
@@ -389,6 +389,10 @@ def fixup_config(**kwargs):
     if 'BR2_PACKAGE_LIBMPEG2=y\n' in configlines and \
        'BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/powerpc-ctng-linux-uclibc.tar.xz"\n' in configlines:
         return False
+    # This MIPS toolchain uses eglibc-2.18 which lacks SYS_getdents64
+    if 'BR2_PACKAGE_STRONGSWAN=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
     # The ctng toolchain has a too old glibc version, which lacks SYS_getdents64
     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:
Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/2 autobuild-run: amend a comment to be more precise

Saying "The ctng toolchain has a too old glibc version" is not very accurate. Is better to say "This MIPS toolchain uses eglibc-2.18".

---
 scripts/autobuild-run |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/autobuild-run +1 -1
index 6e98b2c..2b309fa 100755
@@ -393,7 +393,7 @@ def fixup_config(**kwargs):
     if 'BR2_PACKAGE_STRONGSWAN=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
-    # The ctng toolchain has a too old glibc version, which lacks SYS_getdents64
+    # This MIPS toolchain uses eglibc-2.18 which lacks SYS_getdents64
     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
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/2 autobuild-run: do not build strongswan using an incompatible toolchain

In reply to Vicente Olivert Riera

Dear Vicente Olivert Riera,

Quoted 9 lines · Vicente Olivert Riera

This external MIPS toolchain uses eglibc-2.18 which lacks the definition of the SYS_getdents64 macro for MIPS64 n64. Because of that, strongswan package fails to build and shows this error message:

utils/utils.c: In function 'closefrom':
utils/utils.c:151:25: error: 'SYS_getdents64' undeclared (first use in this function)
while ((len = syscall(SYS_getdents64, dir_fd, buffer,

Quoted 8 lines

Fixes:

http://autobuild.buildroot.net/results/ea2/ea2be188b88ceb1cad4314bdaf00184cb74b9e26/

---
 scripts/autobuild-run |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Both patches applied to buildroot-test, thanks!

Thomas

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