Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

posix_spawn: Argument list too long

88 views
Skip to first unread message

sadhnas...@gmail.com

unread,
Nov 20, 2024, 3:51:08 AM11/20/24
to Android-x86
Hello all,

I have some native code included in the vendor folder and while building with AOSP, I get the error "posix_spawn: Argument list too long".
Does anyone have anyidea how to fix it?

Thanks,
Sadhna

Mauro Rossi

unread,
Dec 21, 2024, 3:52:51 PM12/21/24
to Android-x86
Please check if you have the following commit in build project


then check if you have the following in build/soong project

If that does not suffice, in your vendor folder you know what makefile rules you have in .mk, 
check for any Unix command producing generated files or using paths, try to keep absolute paths and filenames...short.

Also check if you have .mk rules that may produce long arguments and reduce them, as the above that required to segment the build / install logic in muliple steps

Also check this post, in case your are using INCLUDE_PROPRIETARY=true check this thread that mentions the same error:


you may try to install binaries like in this project:


Mauro
Reply all
Reply to author
Forward
0 new messages