autobuild-run: do not build strongswan using an incompatible toolchain
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
@@ -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
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
@@ -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
PATCH 1/2 autobuild-run: do not build strongswan using an incompatible toolchain
In reply to Vicente Olivert RieraDear Vicente Olivert Riera,
Quoted 9 lines · Vicente Olivert Riera
This external MIPS toolchain uses eglibc-2.18 which lacks the definition of the
SYS_getdents64macro 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/
Signed-off-by Vicente Olivert Riera <[email protected]>--- 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