From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from hbe.hbelightingsystems.com ([213.239.196.253]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RtQs7-0000jD-GX for ptxdist@pengutronix.de; Fri, 03 Feb 2012 22:40:44 +0100 Received: from localhost (localhost [127.0.0.1]) by hbe.hbelightingsystems.com (Postfix) with ESMTP id 478D348180C7 for ; Fri, 3 Feb 2012 22:40:42 +0100 (CET) Received: from hbe.hbelightingsystems.com ([127.0.0.1]) by localhost (hbe.hbelightingsystems.com [127.0.0.1]) (amavisd-new, port 10024) with SMTP id s2-ikwTfzF2a for ; Fri, 3 Feb 2012 22:40:41 +0100 (CET) Received: from [192.168.1.4] (ip51ce2bef.speed.planet.nl [81.206.43.239]) (Authenticated sender: erwin@hbelightingsystems.com) by hbe.hbelightingsystems.com (Postfix) with ESMTP id 43462481801C for ; Fri, 3 Feb 2012 22:40:43 +0100 (CET) Message-ID: <4F2C5474.6060702@erwinrol.com> Date: Fri, 03 Feb 2012 22:41:08 +0100 From: Erwin Rol MIME-Version: 1.0 References: <4F2C21DE.6090001@erwinrol.com> <20120203212822.GT32382@pengutronix.de> In-Reply-To: <20120203212822.GT32382@pengutronix.de> Subject: Re: [ptxdist] execvp: /bin/sh: Argument list too long Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 ptxdist@pengutronix.de