[Developers] cannot generate libthorn_CactusBindings.a on IBM SP5 because argument list is too long

Thomas Radke tradke at aei.mpg.de
Wed Dec 5 11:44:39 CST 2007


Erik Schnetter wrote:
> On Dec 4, 2007, at 04:56:08, Thomas Radke wrote:
> 
>> Hi,
>>
>> the Cactus integration tests (for which the results can be found in  the
>> portal https://portal.cactuscode.org) are also run every night on  an IBM
>> SP5 at LSU. There I have the problem that, for a configuration with  very
>> many thorns, the Cactus bindings library cannot be generated:
>>
>>> gmake[2]: execvp: ar: The parameter or environment lists are too  long.
>>> gmake[2]: *** [/scratch/tradke/Cactus/configs/Einstein/lib/ 
>>> libthorn_CactusBindings.a] Error 127
>>
>>
>> Didn't we once had a similar problems with command lines being too  long
>> ? Was there a solution to that problem ?
> 
> 
> 
> I have a work-around using xargs and some additional make goals.  The  
> additional goals build a text file containing all object files, and  
> then ar is called via xargs to create the thorn library piecewise.   See 
> the goal $(NAME), and the additional goals near the end of this  file.

Thanks, Erik ! I tried with your modified version of make.thornlib, 
however it seems I'm missing some other modification of yours:

> gmake[3]: *** No rule to make target `deps'.  Stop.
> gmake[2]: *** [make.checked] Error 2
> gmake[1]: *** [/scratch/tradke/Cactus/configs/Einstein/lib/libthorn_A1JobChaining.a] Error 2

Anyway, to my surprise I got a different error message today:

> ld: 0711-781 ERROR: TOC overflow. TOC size: 81120       Maximum size: 65536
> gmake[1]: *** [/scratch/tradke/Cactus/exe/cactus_Einstein] Error 12

which indicates that I got further than yesterday. Googling the error 
message turned up a workaround solution to the TOC overflow problem:

   http://gcc.gnu.org/ml/gcc/2000-12/msg00509.html

and adding "-Wl,-bbigtoc" to LDFLAGS really worked !

Let's see if the Einstein integration tests will succeed to build this 
night.

-- 
Cheers, Thomas.


More information about the Developers mailing list