On 3-2-2012 22:28, Michael Olbrich wrote:
On Fri, Feb 03, 2012 at 07:05:18PM +0100, Erwin Rol wrote:
when building a ARM compiler with the OSELAS.Toolchain project i ran
into the problem that the argument list grows to long.
execvp: /bin/sh: Argument list too long
This is on Centos 6.2
Linux centos62vm.erwinrol.com 2.6.32-220.4.1.el6.centos.plus.x86_64
#1 SMP Fri Jan 27 04:56:11 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
Anybody else ran into this problem?
Hmmm, what shell is your /bin/sh? We try to use bash in most places. Where
exactly does this occur?
[ABE] [erwin@centos62vm os]$ ls -l /bin/sh
lrwxrwxrwx. 1 root root 4 Jan 25 13:43 /bin/sh -> bash
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
It occurred during building a ARM toolchain. At some point it does some
magic with a whole load of include files, and those files are passed
with their absolute path name.
I fixed it by shortening the path in the following way;
-PTXCONF_PLATFORM="${PTXCONF_GNU_TARGET}-${PTXCONF_PREFIX_TCID}"
+PTXCONF_PLATFORM="${PTXCONF_GNU_TARGET}"
The path was;
/home/erwin/ABE/projects/arm-tegra2_hardfloat-linux-gnueabi/master/Toolchain/platform-arm-tegra2_hardfloat-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/
And now is;
/home/erwin/ABE/projects/arm-tegra2_hardfloat-linux-gnueabi/master/Toolchain/platform-arm-tegra2_hardfloat-linux-gnueabi/
and that seems to make the difference. On a other machine where the
/home/erwin/ part is longer it fails in the same way with a
arm-tegra2-linux-gnueabi (without _hardfloat part).
It seems the setup is really stretching the limits of the system. It
might be an idea to shortening the PTXCONF_PLATFORM part in the
Toolchain project by default.
- Erwin
--
ptxdist mailing list
[email protected]