make[3]: execvp: /bin/sh: Argument list too long --Compilation Error
by allen_yuan from LinuxQuestions.org on (#51FVP)
Hi,I meet a issue when I build the project of the Qcom linux software in Ubuntu 16.04 with the following message:
| make[3]: execvp: /bin/sh: Argument list too long
| make[3]: *** [/home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/wlan/qcacld-3.0/wlan_debug.o] Error 127
| make[2]: *** [_module_/home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/wlan/qcacld-3.0] Error 2
| make[2]: Leaving directory `/home/feng/q/apps_proc/poky/build/tmp-glibc/work-shared/vt-64/kernel-build-artifacts'
| make[1]: *** [sub-make] Error 2
| make[1]: Leaving directory `/home/feng/q/apps_proc/poky/build/tmp-glibc/work-shared/vt-64/kernel-source'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/temp/run.do_compile.442911:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/temp/log.do_compile.442911)
ERROR: Task (/home/feng/q/apps_proc/poky/meta-qti-wlan/recipes/wlan/qcacld32-ll-nf-debug_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 612 tasks of which 605 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
I changed the limits.h and binfmts.h below /usr,both them didnot work.
Anyone helps or suggestions? 3Q so much.


| make[3]: execvp: /bin/sh: Argument list too long
| make[3]: *** [/home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/wlan/qcacld-3.0/wlan_debug.o] Error 127
| make[2]: *** [_module_/home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/wlan/qcacld-3.0] Error 2
| make[2]: Leaving directory `/home/feng/q/apps_proc/poky/build/tmp-glibc/work-shared/vt-64/kernel-build-artifacts'
| make[1]: *** [sub-make] Error 2
| make[1]: Leaving directory `/home/feng/q/apps_proc/poky/build/tmp-glibc/work-shared/vt-64/kernel-source'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/temp/run.do_compile.442911:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/feng/q/apps_proc/poky/build/tmp-glibc/work/vt_64-oe-linux/qcacld32-ll-nf-debug/git-r8_qsap_perf_perf/temp/log.do_compile.442911)
ERROR: Task (/home/feng/q/apps_proc/poky/meta-qti-wlan/recipes/wlan/qcacld32-ll-nf-debug_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 612 tasks of which 605 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
I changed the limits.h and binfmts.h below /usr,both them didnot work.
Anyone helps or suggestions? 3Q so much.