[aur-general] exec and argument list too long
arnaud gaboury
arnaud.gaboury at gmail.com
Wed Mar 20 07:21:34 EDT 2013
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.
I am a little bit confused in getting my current value.
[gabx at magnolia:~]$ egrep ARG_MAX /usr/include/linux/limits.h
#define ARG_MAX 131072 /* # bytes of args + environ for exec() */
[gax at magnolia:~]$ getconf ARG_MAX
16777216
As you can see, these two commands don't return the same number.
I couldn't find any clean and working workaround to bypass this limit when
building. Can I pass any extra argument when invoking make at build time?
The only good workaround would be to build the Linux Kernel and change the
ARG_MAX variable to a larger size, but I do not want to do that.
Thank you for any tips.
Regards.
More information about the aur-general
mailing list