From 9a6754536165605ab7219f2bb64586bbbbc12fb2 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Fri, 31 May 2019 21:21:03 +0200 Subject: [PATCH] binutils: disable debug build as it fails --- packages/binutils/build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/binutils/build.sh b/packages/binutils/build.sh index 79562088c..a59b7ca0a 100644 --- a/packages/binutils/build.sh +++ b/packages/binutils/build.sh @@ -10,6 +10,17 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gold --enable-plugins --disable-werror TERMUX_PKG_EXTRA_MAKE_ARGS="tooldir=$TERMUX_PREFIX" TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/windmc.1 share/man/man1/windres.1 bin/ld.bfd" TERMUX_PKG_KEEP_STATIC_LIBRARIES=true +TERMUX_PKG_HAS_DEBUG=no +# Debug build fails with: +# ~/termux-build/binutils/src/binutils/readelf.c:19060:81: error: in call to 'fread', size * count is too large for the given buffer +# if (fread (ehdr32.e_type, sizeof (ehdr32) - EI_NIDENT, 1, filedata->handle) != 1) +# ^ +# ~/termux-build/_cache/19b-aarch64-24-v5/bin/../sysroot/usr/include/bits/fortify/stdio.h:107:9: note: from 'diagnose_if' attribute on 'fread': +# __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && size * count > __bos(buf), +# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~/termux-build/_cache/19b-aarch64-24-v5/bin/../sysroot/usr/include/sys/cdefs.h:163:52: note: expanded from macro '__clang_error_if' +# #define __clang_error_if(cond, msg) __attribute__((diagnose_if(cond, msg, "error"))) +# ^ ~~~~ # Avoid linking against libfl.so from flex if available: export LEXLIB=