View Single Post

   
  #5 (permalink)  
Old 01-04-2008, 08:48 PM
Mike
 
Posts: n/a
Default Re: /usr/vacpp/bin/xlC: Arg list too long

In article <3faf6558$0$27586$626a54ce@news.free.fr>, yim wrote:
> Thanks for your reponse.
>
> - I tried the first solution but I run into another problem : cyclic
> dependencies. Seem to be hard to
> resolve this one.
>
> - The solution seems to fit me. Unfortunately, I used AIX 4. 3 and there is
> no command chgsys on it.
>
> Sakun
>
>
>
> "Gary R. Hook" <nospam@nospammers.net> wrote in message
> news:8vTqb.2125$nI6.875597948@newssvr30.news.prodi gy.com...
>> Mike wrote:
>>
>> > In article <3fabd096$0$13292$626a54ce@news.free.fr>, yim wrote:
>> >
>> >>I got the error message "Arg list too long" when linking a very long

> object
>> >>files.
>> >>Does anyone know how to resolve this problem ?
>> >
>> > Create a library of your various *.o files and link to the library?

>>
>> Or perhaps pre-link sets of the object files using ld -r.
>>
>> Or, on AIX 5, change the size of your command line buffer:
>> smitty chgsys
>> and look at the end of the list for "ARG/ENV list size".
>> Default used to be 24K characters, and can now go up to
>> 1/2 MB. It's a system-wide change and affects the footprint
>> of every process, BTW.
>>
>> --
>> Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
>> __________________________________________________ ______________________
>>

>
>


The old way to solve cyclic dependencies(?) is with lorder and tsort.
Seems we would do something like:

ar -c libPROJ.a `lorder *.o | tsort`
Reply With Quote