[Developers] Fwd: [CactusMaint] Cactus/2084: Patch: Circumvent argc length restrictions on AIX

Erik Schnetter schnetter at cct.lsu.edu
Mon Feb 19 11:08:48 CST 2007


Begin forwarded message:

> From: schnetter at cct.lsu.edu
> Date: February 19, 2007 11:08:13 AM CST
> To: goodale at cct.lsu.edu, gnats-admin at cactuscode.org,  
> cactusmaint at cactuscode.org
> Cc: elena at cct.lsu.edu
> Subject: [CactusMaint] Cactus/2084: Patch: Circumvent argc length  
> restrictions on AIX
> Reply-To: bugs at cactuscode.org, CactusMaint  
> <cactusmaint at cactuscode.org>
>
>> Number:         2084
>> Notify-List:    elena at cct.lsu.edu
>> Category:       Cactus
>> Synopsis:       Patch: Circumvent argc length restrictions on AIX
>> Confidential:   no
>> Severity:       critical
>> Priority:       high
>> Responsible:    goodale
>> State:          open
>> Class:          sw-bug
>> Submitter-Id:   user
>> Arrival-Date:   Mon Feb 19 11:08:13 -0600 2007
>> Originator:     Erik Schnetter
>> Release:        Cactus 4.0.b16
>> Organization:
>> Environment:
>> Description:
> AIX has restrictions on the length of the arguments that can be  
> passed to a subprocess.  This makes it impossible to build a  
> configuration with a large thorn list, which we want to do for the  
> nightly build tests.  The main problem is the call to ar when  
> creating libCactusBindings.a.
>
> The enclosed patch circumvents this restriction.  Instead of  
> passing the list of object files directly to ar, this list is  
> written to a file "objectlist", and the library is created through  
> xargs.
>
> Writing the list of object files to a file is not straightforward.   
> Make has no facilities to write a variable to a file.  It is,  
> obviously, not possible to write this list via a call to echo.   
> Instead, I create a make rule for each object file which appends  
> this object file's name to the objectlist file.
>
> In order to prevent this rule from causing the library to be  
> rebuilt every time, the objectlist file is created in a recursive  
> call to make.
>
> Thorn Formaline has the same problem when it builds its libraries.   
> For that it needs to call make.configuration recursively.
>
>
>
> The clean target used to remove "lib/*"; this list is also to  
> long.  Instead, it now removes the whole directory "lib" and  
> creates the directory again afterwards.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/developers/attachments/20070219/9f31e52c/attachment.bin 


More information about the Developers mailing list