public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* "Arg list too long" during bootstrap
@ 2004-08-28 11:29 David Kramer
  2004-08-28 23:51 ` Brian Gough
  0 siblings, 1 reply; 3+ messages in thread
From: David Kramer @ 2004-08-28 11:29 UTC (permalink / raw)
  To: gcc-help

I am bootstrapping gcc 3.4.0 on AIX 5.2 from a binary 3.3.3 I downloaded 
(compiled for 5.1: I could not find a 5.2 one).

The command I used is:
../gcc340src/configure --enable-languages=c,c++ --prefix=/opt/gcc3.4.0 
--with-cpu-rs64a
make -j 12 bootstrap

$CC=/usr/local/bin/gcc -mcpu=rs64a



About an hour and a half into the process, I get this:

generating symbol list for `libstdc++.la'
nm -B -X32_64 -BCpg  .libs/allocator.o .libs/codecvt.o .libs/complex_io.o 
.libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o 
.libs/globals_locale.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o 
.libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o 
.libs/locale.o .libs/locale_init.o .libs/locale_facets.o 
.libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o 
.libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o 
.libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/locale-inst.o 
.libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o 
.libs/sstream-inst.o .libs/streambuf-inst.o .libs/string-inst.o 
.libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o 
.libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o 
.libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o 
.libs/numeric_members.o .libs/time_members.o .libs/basic_file.o 
.libs/c++locale.o  ../libmath/.libs/libmath.a 
../libsupc++/.libs/libsupc++convenience.a | awk '{ if ((($2 == "T") || ($2 
== "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort 
-u > .libs/libstdc++.exp

/dkramer/bldgcc340wa/gcc/xgcc -shared-libgcc -B/dkramer/bldgcc340wa/gcc/ 
-nostdinc++ 
-L/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3/src 
-L/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3/src/.libs 
-B/opt/gcc3.4.0/powerpc-ibm-aix5.2.0.0/bin/ 
-B/opt/gcc3.4.0/powerpc-ibm-aix5.2.0.0/lib/ -isystem 
/opt/gcc3.4.0/powerpc-ibm-aix5.2.0.0/include -isystem 
/opt/gcc3.4.0/powerpc-ibm-aix5.2.0.0/sys-include  -pthread -shared -o 
.libs/libstdc++.so.6  .libs/allocator.o .libs/codecvt.o .libs/complex_io.o 
.libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o 
.libs/globals_locale.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o 
.libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o 
.libs/locale.o .libs/locale_init.o .libs/locale_facets.o 
.libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o 
.libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o 
.libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/locale-inst.o 
.libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o 
.libs/sstream-inst.o .libs/streambuf-inst.o .libs/string-inst.o 
.libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o 
.libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o 
.libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o 
.libs/numeric_members.o .libs/time_members.o .libs/basic_file.o 
.libs/c++locale.o   
-L/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3/src 
-L/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3/src/.libs 
-lm ../libmath/.libs/libmath.a -lm 
../libsupc++/.libs/libsupc++convenience.a -lm 
-L/dkramer/bldgcc340wa/gcc/pthread -L/dkramer/bldgcc340wa/gcc 
-L/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0/pthread 
-L/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0 
-L/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0/../../../pthread 
-L/opt/gcc3.4.0/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.0/../../.. 
-lgcc_s_pthread -lpthreads -lc -lgcc_s_pthread -lm -lgcc_s_pthread 
-lpthreads -lc -lgcc_s_pthread    -Wl,-G -Wl,-bE:.libs/libstdc++.exp 
-Wl,-bnoentry ${wl}-berok
xgcc: installation problem, cannot exec 
`/dkramer/bldgcc340wa/gcc/collect2': Arg list too long
make[7]: *** [libstdc++.la] Error 1
make[7]: Leaving directory 
`/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3/src'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory 
`/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3'
make[5]: *** [all] Error 2
make[5]: Leaving directory 
`/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/pthread/libstdc++-v3'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory 
`/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/libstdc++-v3'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory 
`/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/dkramer/bldgcc340wa/powerpc-ibm-aix5.2.0.0/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/dkramer/bldgcc340wa'
make: *** [bootstrap] Error 2
*** Endinging 'make -j 12 bootstrap' at 0408271707


This is the second time I saw this. After the first time, I STWF and found 
that it could mean the commands were too long (due to paths), so I moved 
everything to my home directory so all the paths are shorter.  Still got 
it, now I'm down three hours.

Is there anything else that can cause this, or a way around it?

Thanks in advance.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "Arg list too long" during bootstrap
  2004-08-28 11:29 "Arg list too long" during bootstrap David Kramer
@ 2004-08-28 23:51 ` Brian Gough
  2004-08-29 15:26   ` Ken Foskey
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Gough @ 2004-08-28 23:51 UTC (permalink / raw)
  To: David Kramer; +Cc: gcc-help

David Kramer <david@thekramers.net> writes:

> I am bootstrapping gcc 3.4.0 on AIX 5.2 from a binary 3.3.3 I downloaded 
> (compiled for 5.1: I could not find a 5.2 one).
> ...
> xgcc: installation problem, cannot exec 
> `/dkramer/bldgcc340wa/gcc/collect2': Arg list too long
> 
> This is the second time I saw this. After the first time, I STWF and found 
> that it could mean the commands were too long (due to paths), so I moved 
> everything to my home directory so all the paths are shorter...
> 
> Is there anything else that can cause this, or a way around it?

Generally it is the number of arguments that is the issue.  There is
usually a way to increase the limit with a kernel parameter (via
smitty chgsys on AIX, I think).

-- 
Brian Gough

Network Theory Ltd,
Publishing "An Introduction to GCC" --- http://www.network-theory.co.uk/gcc/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "Arg list too long" during bootstrap
  2004-08-28 23:51 ` Brian Gough
@ 2004-08-29 15:26   ` Ken Foskey
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Foskey @ 2004-08-29 15:26 UTC (permalink / raw)
  To: gcc help

On Sat, 2004-08-28 at 19:06, Brian Gough wrote:

> Generally it is the number of arguments that is the issue.  There is
> usually a way to increase the limit with a kernel parameter (via
> smitty chgsys on AIX, I think).

arg lists are generally the shell not system.  If you can figure out a
script name you could try switching the #!/bin/sh line to your bash
line.  ksh (sh in aix generally) has a 1k or 2k limit whereas bash has
4k.  You could also tweak the script to use xargs if appropriate.
-- 
Thanks
KenF
OpenOffice.org developer

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-28 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-28 11:29 "Arg list too long" during bootstrap David Kramer
2004-08-28 23:51 ` Brian Gough
2004-08-29 15:26   ` Ken Foskey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).