Bug 2766

Summary: coreutils build error with long TMPDIR: Argument list too long
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, jiajun.xu, laurentiu.serban, liang.li2, liezhi.yang, meta.mr.watcher, meta.watcher, richard.purdie, sgw, song.liu
Version: 1.4   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
log.do_configure none

Description Yi Zhao 2012-07-16 03:06:11 UTC
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.
#############
Comment 1 Yi Zhao 2012-07-16 03:07:06 UTC
Created attachment 635 [details]
log.do_configure
Comment 2 Robert Yang 2012-07-16 03:22:03 UTC
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.
Comment 3 Robert Yang 2012-11-06 02:23:28 UTC
Re-assign it to Qi Chen, he will go on working on it.
Comment 5 Robert Yang 2013-09-14 09:10:00 UTC
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.