This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/33781] New: [4.3 Regression] "Arg list too long" building libgcc.a
- From: "roger at eyesopen dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2007 15:37:21 -0000
- Subject: [Bug bootstrap/33781] New: [4.3 Regression] "Arg list too long" building libgcc.a
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The recent addition of a large number of libgcc objects (for fixed point
arithmetic and other things) now breaks bootstrap on IRIX. The problem is
that the command line in libgcc/Makefile.in, approx line 697 reads as:
$(AR_CREATE_FOR_TARGET) $@ $$objects
which doesn't defend against $objects being a huge list. Currently on 32-bit
IRIX this is 1762 files. Indeed, even typing "ls *.o" in the directory
mips-sgi-irix6.5/32/libgcc, returns "-bash: /usr/bin/ls: Arg list too long"!
Alas I'm not a wizard in build machinery, but I suspect that all that's
required is a one or two line change, perhaps to use "libtool" to create the
archive, which contains logic to circumvent these host command line limits.
I believe this is what we currently do for libgcj and other large libraries.
Many thanks in advance to the kind build maintainer or volunteer who looks
into the problem. I'm happy to test patches on my dusty MIPS/IRIX box.
--
Summary: [4.3 Regression] "Arg list too long" building libgcc.a
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: roger at eyesopen dot com
GCC host triplet: mips-sgi-irix6.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33781