mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] error when compiling toolchain for arm-cortexa8
@ 2012-12-13 14:27 Dr. Patrick Langfeld
  2012-12-14  9:49 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Dr. Patrick Langfeld @ 2012-12-13 14:27 UTC (permalink / raw)
  To: ptxdist; +Cc: Jérémie DELAITRE

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


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?

Best regards
  Patrick


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] error when compiling toolchain for arm-cortexa8
  2012-12-13 14:27 [ptxdist] error when compiling toolchain for arm-cortexa8 Dr. Patrick Langfeld
@ 2012-12-14  9:49 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2012-12-14  9:49 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-14  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-13 14:27 [ptxdist] error when compiling toolchain for arm-cortexa8 Dr. Patrick Langfeld
2012-12-14  9:49 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox