[aur-general] exec and argument list too long

Jakub Klinkovský kuba.klinkovsky at gmail.com
Wed Mar 20 13:00:56 EDT 2013


On 20.03.13 at 14:04, Martti Kühne wrote:
> On Wed, Mar 20, 2013 at 12:21 PM, arnaud gaboury
> <arnaud.gaboury at gmail.com> wrote:
> > Dear list,
> >
> > I came to this issue when building android:
> >
> > make: execvp: /bin/bash: Argument list too long
> >
> > From what I understand, the reason for this annoyance is that Linux kernel
> > has a limitation of bytes it can process through as arguments in exec()
> > commands.
> > This issue is quite new and arise with Kernel > 3.8.1. I am currently on
> > 3.8.3-2 ARCH from testing.
> >
> 
> 
> What in the world would require you to pass that many arguments to a command?
> I'd like to see that command for future generations here...
> try fixing the Makefile?
> 
> cheers!
> mar77i

It's not the number of arguments, it's number of bytes used for arguments and
environment variables[1]. Full paths are often included in 'argv[0]', and when
not building in clean environment, the limit can be easily reached.

[1]: http://www.in-ulm.de/~mascheck/various/argmax/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/aur-general/attachments/20130320/e542318b/attachment.asc>


More information about the aur-general mailing list