mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] execvp: /bin/sh: Argument list too long
@ 2012-02-03 18:05 Erwin Rol
  2012-02-03 21:28 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Erwin Rol @ 2012-02-03 18:05 UTC (permalink / raw)
  To: ptxdist

Hey all,

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?

- Erwin

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] execvp: /bin/sh: Argument list too long
  2012-02-03 18:05 [ptxdist] execvp: /bin/sh: Argument list too long Erwin Rol
@ 2012-02-03 21:28 ` Michael Olbrich
  2012-02-03 21:41   ` Erwin Rol
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2012-02-03 21:28 UTC (permalink / raw)
  To: ptxdist

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?

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] 5+ messages in thread

* Re: [ptxdist] execvp: /bin/sh: Argument list too long
  2012-02-03 21:28 ` Michael Olbrich
@ 2012-02-03 21:41   ` Erwin Rol
  2012-11-21 15:02     ` Andreas Bachmann
  0 siblings, 1 reply; 5+ messages in thread
From: Erwin Rol @ 2012-02-03 21:41 UTC (permalink / raw)
  To: ptxdist



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

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

* Re: [ptxdist] execvp: /bin/sh: Argument list too long
  2012-02-03 21:41   ` Erwin Rol
@ 2012-11-21 15:02     ` Andreas Bachmann
  2012-12-10  9:10       ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Bachmann @ 2012-11-21 15:02 UTC (permalink / raw)
  To: ptxdist

Erwin Rol <mailinglists@...> writes:
> 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
> 
> 

I have sort of the or related problem in ptxdist-2012.10.0 and
OSELAS.Toolchain-2011.11.3.
In the Makefile [1] [2] at target "install-plugin" there is an inline-script
(setting variables and loop over the headers), who can't be executed:

headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`
"make: execvp: /bin/bash: Argument list too long"

My build system: Ubuntu 12.10 Alpha 3

I found a bugfix [1]. Just replace
headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`
with
headers="$(sort $(PLUGIN_HEADERS))"; \
and the make-process starts again.

[1] Path:
OSELAS.Toolchain-2011.11.3/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-
2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2-first-
build/gcc/Makefile

[2] Path:
OSELAS.Toolchain-2011.11.3/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-
2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2-build/gcc
/Makefile

[3] http://patches.openembedded.org/patch/29825/




-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] execvp: /bin/sh: Argument list too long
  2012-11-21 15:02     ` Andreas Bachmann
@ 2012-12-10  9:10       ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2012-12-10  9:10 UTC (permalink / raw)
  To: ptxdist

On Wed, Nov 21, 2012 at 03:02:08PM +0000, Andreas Bachmann wrote:
> Erwin Rol <mailinglists@...> writes:
> > 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
> > 
> > 
> 
> I have sort of the or related problem in ptxdist-2012.10.0 and
> OSELAS.Toolchain-2011.11.3.
> In the Makefile [1] [2] at target "install-plugin" there is an inline-script
> (setting variables and loop over the headers), who can't be executed:
> 
> headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`
> "make: execvp: /bin/bash: Argument list too long"
> 
> My build system: Ubuntu 12.10 Alpha 3
> 
> I found a bugfix [1]. Just replace
> headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`
> with
> headers="$(sort $(PLUGIN_HEADERS))"; \
> and the make-process starts again.
> 
> [1] Path:
> OSELAS.Toolchain-2011.11.3/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-
> 2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2-first-
> build/gcc/Makefile
> 
> [2] Path:
> OSELAS.Toolchain-2011.11.3/platform-arm-v5te-linux-gnueabi-gcc-4.6.2-glibc-
> 2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2-build/gcc
> /Makefile
> 
> [3] http://patches.openembedded.org/patch/29825/

Thanks for the heads up. There probably won't be a
OSELAS.Toolchain-2011.11.x release, but I've added the patch for the next
big release.

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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-03 18:05 [ptxdist] execvp: /bin/sh: Argument list too long Erwin Rol
2012-02-03 21:28 ` Michael Olbrich
2012-02-03 21:41   ` Erwin Rol
2012-11-21 15:02     ` Andreas Bachmann
2012-12-10  9:10       ` Michael Olbrich

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