mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Erwin Rol <mailinglists@erwinrol.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] execvp: /bin/sh: Argument list too long
Date: Fri, 03 Feb 2012 22:41:08 +0100	[thread overview]
Message-ID: <4F2C5474.6060702@erwinrol.com> (raw)
In-Reply-To: <20120203212822.GT32382@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

  reply	other threads:[~2012-02-03 21:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 18:05 Erwin Rol
2012-02-03 21:28 ` Michael Olbrich
2012-02-03 21:41   ` Erwin Rol [this message]
2012-11-21 15:02     ` Andreas Bachmann
2012-12-10  9:10       ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2C5474.6060702@erwinrol.com \
    --to=mailinglists@erwinrol.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox