You are not logged in.

#1 2013-03-29 11:31:37

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 90
Website

[SOLVED]make / execvp error : argument list is too long

I have an issue since 5-10 days when building android from source,  when I have been able to  build it for months.

At one point in the building process, make will stop with this error:

make: execvp: /bin/bash: Argument list too long

After some search, I found this error is thrown by execvp(), following the errors specified in man execve(2) : http://linux.die.net/man/2/execve/

The execvpe() function appears in glibc. My glibc is the one from core, 2.17-3, and has been reinstalled. Building AUR packages in general don't throw any error.

The android ROM I am building is very closed to the android open source, and build fine on another machine (Linux Mint). So I suspect the problem comes from my box.

The following line from android envsetup output puzzles me:

HOST_OS_EXTRA=Linux-3.8.4-1-ARCH-x86_64-with-glibc2.2.5

What is this glibc2.2.5 ??

I wonder if my issue comes from the toolchain I use or from my system. I tried several toolchains, so I would bet it is on my system.
I couldn't find any good and clean solution to this issue, even after long readings.

Thank you for any help.

Regards.

Last edited by gabx (2013-04-14 19:51:52)

Offline

#2 2013-03-29 15:12:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,426

Re: [SOLVED]make / execvp error : argument list is too long

I'm just guessing here, I know nothing about Android.

http://mirror.yongbok.net/linux/android … dumpvar.mk says

HOST_OS_EXTRA:=$(shell python -c "import platform; print(platform.platform())")

I'm using the stock Arch packages and I get

$ python -c "import platform; print(platform.platform())"
Linux-3.8.4-1-ARCH-i686-with-arch

You said you built the kernel, so maybe that's why: https://mailman.archlinux.org/pipermail … 33186.html

Offline

#3 2013-03-29 15:56:45

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 90
Website

Re: [SOLVED]make / execvp error : argument list is too long

Thank you for the link. I know now where the glibc comes from.

I still hang with this error and no idea how to solve it. Android Kernel build fine, but then the ROM failed due to this issue.

Offline

#4 2013-04-14 19:54:33

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 90
Website

Re: [SOLVED]make / execvp error : argument list is too long

a small tweak in the Makefile solved this issue.
A foreach macro was needed.

Last edited by gabx (2013-04-14 19:54:51)

Offline

#5 2013-07-24 07:32:14

xzzz9097
Member
Registered: 2013-07-24
Posts: 1

Re: [SOLVED]make / execvp error : argument list is too long

gabx wrote:

a small tweak in the Makefile solved this issue.
A foreach macro was needed.

I'm having the same error: can you post the file you exactly modified and how?

Offline

Board footer

Powered by FluxBB