Tree/Branch: poky/master Commit: eb0cb7e8234f5d2e5623406e9660be91cf52f65e Test Env: Ubuntu 11.10 x86_64 Kernel 3.0.0-22-generic #36-Ubuntu SMP Tue Jun 12 17:37:42 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux This issue is related with bug 2434. Robert's patches set the maximum length of TMPDIR to 410. But when I create a build directory and make the length of TPMPDIR to 410. Coreutils build failed: ############## Can't exec "/bin/sh": Argument list too long at /usr/lib/perl/5.12/IO/File.pm line 66. aclocal: cannot open /buildarea1/yzhao1/poky-build/build/0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/111/112/113/114/115/116/117/118/119/tmp/sysroots/x86_64-linux/usr/bin/autom4te --language Autoconf-without-aclocal-m4 '/buildarea1/yzhao1/poky-build/build/0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/111/112/113/114/115/116/117/118/119/tmp/work/armv5te-poky-linux-gnueabi/coreutils-8.14-r4/coreutils-8.14/aclocal-copy/glibc2.m4' '/buildarea1/yzhao1/poky-build ... ... ... ... $f::$n' --trace='gl_FUNC_STRTOUMAX:$f::$n' --trace='gl_HUMAN:$f::$n' --trace='gl_FILE_SYSTEM_USAGE:$f::$n' --trace='gl_PRINTF_INFINITE:$f::$n' --trace='gl_PREREQ_INET_NTOP:$f::$n' --trace='gl_STDARG_H:$f::$n' configure.ac |: Argument list too long autoreconf: aclocal failed with exit status: 1 ERROR: autoreconf execution failed. #############
Created attachment 635 [details] log.do_configure
I had built the coreutils before, didn't find this error, seems like the host contamination issue, it should not use the host's perl when build target coreutils.
Re-assign it to Qi Chen, he will go on working on it.
Fixed in master with http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master-next&id=d93a5e190cb4b72bf9346e0d959ff3154b93a1bd
This error still exists, since the patch has been merged then reverted (it is reverted because this patch doesn't work when there is a sub-configure, for example, the bdwgc-native, as RP said). I think that we can fix the coreutils itsefl rather than the autools.bbclass based on the following 3 aspects: 1) If we fix the autool.bbclass, it may impact a lot. 2) Our aim is make the build work when len(TMPDIR) < 410 3) Other recipes may don't have such a problem, I didn't see any other recipes which have the same problem (aclocal issue) by now.
Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=238e9b54e228b850434f7d503870e86cfb12b775