From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TjRtd-0002Yu-Hk for ptxdist@pengutronix.de; Fri, 14 Dec 2012 10:49:33 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TjRtd-0002XP-DI for ptxdist@pengutronix.de; Fri, 14 Dec 2012 10:49:33 +0100 Date: Fri, 14 Dec 2012 10:49:33 +0100 From: Michael Olbrich Message-ID: <20121214094933.GE32091@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] error when compiling toolchain for arm-cortexa8 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Dec 13, 2012 at 02:27:22PM +0000, Dr. Patrick Langfeld wrote: > Hi, > We have a problem when compiling the arm-cortexa8 toolchain with > ptxdist. > What we did is: download from http://www.pengutronix.de/software/ptxdist/download/ptxdist-2012.10.0.tar.bz2 > unpacking > tar -xf OSELAS.Toolchain-2011.11.3.tar.bz2 > changing into project dir OSELAS.Toolchain-2011.11.3 and creating a > softlink with > ln -s /usr/local/bin/ptxdist-2012.10.0 ptx > configuring and start build with > ./ptx select ptxconfigs/arm-cortexa8-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig > ./ptx go --force Don't do this. Always build the toolchain with the ptxdist version it was configured for. > > > We got the following error: > > new error: make[3]: Leaving directory `/home/delaitre/src/optimeas-ptxdist/toolchains/OSELAS.Toolchain-2011.11.3/platform-arm-cortexa8-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-linaro-4.6-2011.11-first-build/gcc' > make[2]: Leaving directory `/home/delaitre/src/optimeas-ptxdist/toolchains/OSELAS.Toolchain-2011.11.3/platform-arm-cortexa8-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-linaro-4.6-2011.11-first-build' > make[1]: Leaving directory `/home/delaitre/src/optimeas-ptxdist/toolchains/OSELAS.Toolchain-2011.11.3/platform-arm-cortexa8-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-linaro-4.6-2011.11-first-build' > make[3]: execvp: /bin/bash: Argument list too long > make[3]: *** [install-plugin] Error 127 > make[2]: *** [install-gcc] Error 2 > make[1]: *** [install] Error 2 > make: *** [/home/delaitre/src/optimeas-ptxdist/toolchains/OSELAS.Toolchain-2011.11.3/platform-arm-cortexa8-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/state/cross-gcc-first.install] > Error 2 > > Any idea what went wrong? Make calls 'echo' with many absolute paths inside gcc-linaro-4.6-2011.11-first-build. The resulting argument list is too long for bash to handle. This is a known issue. You have two options: 1. Make sure the absolute paths are shorter by building e.g. in /home/delaitre/src/OSELAS.Toolchain-2011.11.3/ (I think this is short enough). 2. Use the new 2012.12.0 Toolchain. I've applied a patch that should fix this. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de