[Buildroot] [PATCH] RE: diffutils fails to build

Marc Gauthier marc at tensilica.com
Thu May 28 05:41:59 UTC 2009

Hi Ian,

Did you get that question resolved?  I'm hitting the same failure with a tree sync'ed circa April 28th.  Presumably only happens with BR2_STRIP_none=y (but that *is* what I want, for debugging, and I do want diffutils).

So I looked at it a bit, and came up with this tentative fix.  Works on an incremental build (have yet to try a full clean build, takes a while).


Fix diffutils build breakage with BR2_STRIP_none=y

Look at BR2_STRIP_none to decide whether to strip diffutils binaries.
This avoids bad quoting in diffutils Makefile.in (generated by automake 1.6)
when STRIP is set to:   true -Not_stripping

Signed-off-by:  Marc Gauthier <marc at alumni.uwaterloo.ca>

diff --git a/package/diffutils/diffutils.mk b/package/diffutils/diffutils.mk
index 1911f91..b4b4135 100644
--- a/package/diffutils/diffutils.mk
+++ b/package/diffutils/diffutils.mk
@@ -94,7 +94,11 @@ $(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY): $(DIFFUTILS_DIR)/.configured

+ifneq ($(BR2_STRIP_none),y)
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) install-strip
 ifneq ($(BR2_HAVE_INFOPAGES),y)
        rm -rf $(TARGET_DIR)/usr/share/info

From: buildroot-bounces at uclibc.org [mailto:buildroot-bounces at uclibc.org] On Behalf Of Ian Preston
Sent: Friday, November 07, 2008 04:27
To: buildroot at uclibc.org
Subject: [Buildroot] diffutils fails to build

Hi everyone,

I'm trying to use buildroot to build a minimal, non graphical linux which has gcc and gfortran. I got a good way through the build process, and then it crashes during the build of diffutils:

make[1]: Entering directory `/home/ian/jpc/buildroot/build_i386/diffutils-2.8.1'
/usr/bin/make  INSTALL_PROGRAM="/bin/bash /home/ian/jpc/buildroot/build_i386/diffutils-2.8.1/config/install-sh -c -s" \
      `test -z 'true -Not_stripping' || \
        echo "INSTALL_PROGRAM_ENV=STRIPPROG='true -Not_stripping'"` install
/usr/bin/make: invalid option -- N

I've attached my config file.
If anyone has any ideas about how to fix this, or to remove diffutils from the process, then I will be very very grateful. Thanks guys!


Senior Software Engineer
IGD group
Oxford University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090527/ba19b767/attachment.html>

More information about the buildroot mailing list