← Back to team overview

openjdk team mailing list archive

Bug#575254: openjdk-6 build fails on at least one i386 build due to long command lines

 

Cc:-ing the wb-team.

Hi, I'm working on a OpenJDK bug: the build fails with:

make[8]: execvp: /bin/sh: Argument list too long

I would like to know the value of ARG_MAX used on the buildd nodes.
Could you also suggest me how to change it on my system? I couldn't find
anything.

Il 01/05/2010 14:34, Matthias Klose ha scritto:
>> I produced a partial patch for this bug. I can build OpenJDK correctly
>> with it. Anyway, there are some problems:
> 
> thanks for working on this.
> 
>>  * There could be other points where the compilation could stop: I
>> couldn't find anything else, but I'm not sure. I don't know what value
>> for ARG_MAX is used on the buildd and how can I set the same value on my
>> computer.
> 
> yes, it would be nice to know how, and why buildds are configured this way.
> 
>>  * The generated Makefile is not really idempotent. I'm investigating on
>> how to make it so.
> 
> didn't check, but would enclosing the foreach in an if/wildcard work?
> 
>   $(if $(wildcard $(AGENT_FILES1)),,$(foreach ...))

There are two problems with my patch: first, if the Makefile is executed
twice, the list of files to compile has doubled entries; second, the
list of files to compile is generated disregarding which target is being
executed. This is due to the fact that the $(shell ...) command is
evaluated before the target get executed. I couldn't find a way to fix
this, so far.

I cannot understand which problem you're trying to fix with this
if/wildcard construction.

Thanks, Giovanni.
-- 
Giovanni Mascellani <mascellani@xxxxxxxxxxxxxxxxxxxx>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascellani@xxxxxxxxxx / giovanni@xxxxxxxxxxxxxxxxxxxx

Attachment: signature.asc
Description: OpenPGP digital signature


References