GNU logs - #20632, boring messages

Message sent to bug-libtool@HIDDEN:

X-Loop: help-debbugs@HIDDEN
Subject: bug#20632: Huge targets lead to E2BIG errors
Resent-From: "Daniel Richard G." <skunk@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Fri, 22 May 2015 20:43:02 +0000
Resent-Message-ID: <handler.20632.B.143232736117577 <at>>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 20632
X-GNU-PR-Package: libtool
To: 20632 <at>
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> id=B.143232736117577
          (code B ref -1); Fri, 22 May 2015 20:43:02 +0000
Received: (at submit) by; 22 May 2015 20:42:41 +0000
Received: from localhost ([]:53247
	by with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1YvtmC-0004ZQ-BT
	for submit <at>; Fri, 22 May 2015 16:42:40 -0400
Received: from ([]:45392)
 by with esmtp (Exim 4.80)
 (envelope-from <skunk@HIDDEN>) id 1Yvtm9-0004Yz-KE
 for submit <at>; Fri, 22 May 2015 16:42:38 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <skunk@HIDDEN>) id 1Yvtm3-0002jo-5E
 for submit <at>; Fri, 22 May 2015 16:42:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from ([2001:4830:134:3::11]:39842)
 by with esmtp (Exim 4.71)
 (envelope-from <skunk@HIDDEN>) id 1Yvtm3-0002jj-26
 for submit <at>; Fri, 22 May 2015 16:42:31 -0400
Received: from ([2001:4830:134:3::10]:58879)
 by with esmtp (Exim 4.71)
 (envelope-from <skunk@HIDDEN>) id 1Yvtm1-00064p-V3
 for bug-libtool@HIDDEN; Fri, 22 May 2015 16:42:31 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <skunk@HIDDEN>) id 1Yvtlz-0002iE-2G
 for bug-libtool@HIDDEN; Fri, 22 May 2015 16:42:29 -0400
Received: from ([]:46326)
 by with esmtp (Exim 4.71)
 (envelope-from <skunk@HIDDEN>) id 1Yvtly-0002hT-Qd
 for bug-libtool@HIDDEN; Fri, 22 May 2015 16:42:26 -0400
Received: from compute5.internal (compute5.nyi.internal [])
 by mailout.nyi.internal (Postfix) with ESMTP id 2B5FA2088E
 for <bug-libtool@HIDDEN>; Fri, 22 May 2015 16:42:25 -0400 (EDT)
Received: from web1 ([])
 by compute5.internal (MEProxy); Fri, 22 May 2015 16:42:25 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=iSKUNK.ORG; h=
 :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=h2t
 1pM7ttKkEj0TU/pF2WqXRO7Y=; b=NbVE0odISceNNtSLNPzj2vgetG1e9xBWxVL
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=; h=content-transfer-encoding:content-type
 :x-sasl-enc; s=smtpout; bh=h2t1pM7ttKkEj0TU/pF2WqXRO7Y=; b=OcDPe
Received: by web1.nyi.internal (Postfix, from userid 99)
 id 0391FAF3010; Fri, 22 May 2015 16:42:24 -0400 (EDT)
Message-Id: <1432327344.3036708.276005969.7AD04EE1@HIDDEN>
X-Sasl-Enc: LNEH/fiUibmqIiQyBYHY50dy2w8i7QwsXCDDjISUU0fG 1432327344
From: "Daniel Richard G." <skunk@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Mailer: Webmail Interface - html
Date: Fri, 22 May 2015 16:42:24 -0400
X-detected-operating-system: by Genre and OS details not
X-detected-operating-system: by Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -4.1 (----)

Hello Libtool peoples,

I am using the current version of Libtool (2.4.6) for a large, Automake-
based project. At one point, it builds a gigantic static archive library
from well over a thousand object files. On an older AIX system, the link
command fails with

    $ gmake
    /opt/freeware/bin/bash ../../libtool  --tag=CC   --mode=link gcc
      -pipe -fno-common -W -Wall -mcpu=powerpc -O3 -ansi -avoid-version
      -Wl,-bbigtoc -o -rpath /path/to/lib foo.lo bar.lo ...
    /tmp/gmake-e2big.2kpTia: /opt/freeware/bin/bash: The parameter or
      environment lists are too long.
    Makefile:16591: recipe for target '' failed
    make: *** [] Error 126

This is using a patched version of GNU Make that works around its own
limitations with very long commands, detailed here:

So the Make program is not at issue here; the "libtool --mode=link"
invocation itself is so long that the shell interpreter can't handle it.

Libtool does have an -objectlist argument that seems useful for cases
like this, and indeed with an appropriate edit to the Automake/Libtool-
generated rule, the link works: $(libfoo_la_OBJECTS) $(libfoo_la_DEPENDENCIES) $(EXTRA_libfoo_la_DEPENDENCIES) 
    -        $(AM_V_CCLD)$(libfoo_la_LINK) -rpath $(libdir) $(libfoo_la_OBJECTS) $(libfoo_la_LIBADD) $(LIBS)
    +        for obj in $(libfoo_la_OBJECTS); do echo $$obj; done >$@.list
    +        $(AM_V_CCLD)$(libfoo_la_LINK) -rpath $(libdir) -objectlist $@.list $(libfoo_la_LIBADD) $(LIBS)

Automake/Libtool itself should generate a rule of this form
automatically if a target's list of dependent objects is large, or else
the rule is completely unusable on a system with command-length


Daniel Richard G. || skunk@HIDDEN
My ASCII-art .sig got a bad case of Times New Roman.

Message sent:

Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: "Daniel Richard G." <skunk@HIDDEN>
Subject: bug#20632: Acknowledgement (Huge targets lead to E2BIG errors)
Message-ID: <handler.20632.B.143232736117577.ack <at>>
References: <1432327344.3036708.276005969.7AD04EE1@HIDDEN>
X-Gnu-PR-Message: ack 20632
X-Gnu-PR-Package: libtool
Reply-To: 20632 <at>
Date: Fri, 22 May 2015 20:43:02 +0000

Thank you for filing a new bug report with

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):

If you wish to submit further information on this problem, please
send it to 20632 <at>

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.