FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 01-14-2008, 11:43 AM
"Horst H. von Brand"
 
Default xargs generates too long argument lists on i686

For some time now, each time I try to build an RPM it fails with something
like:

+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
xargs: /usr/lib/rpm/check-rpaths-worker: Argument list too long
error: Bad exit status from /var/tmp/rpm-tmp.39544 (%install)

This I have traced back to xargs(1) generating huge argument lists, which
the called command can't handle. Doing a "make clean" in a self-built
kernel gives the same type of grief (I tweaked the Makefile there to call
xargs with "-L 2000" to get it to work).

I wonder how everybody else here is able to get anything done...

findutils-4.2.31-2.fc8 on rawhide, fully up to date.

Reported as BZ 275321 <https://bugzilla.redhat.com/show_bug.cgi?id=275321>
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 2797513

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-14-2008, 05:58 PM
Eric Paris
 
Default xargs generates too long argument lists on i686

On Mon, 2008-01-14 at 09:43 -0300, Horst H. von Brand wrote:
> For some time now, each time I try to build an RPM it fails with something
> like:
>
> + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
> xargs: /usr/lib/rpm/check-rpaths-worker: Argument list too long
> error: Bad exit status from /var/tmp/rpm-tmp.39544 (%install)
>
> This I have traced back to xargs(1) generating huge argument lists, which
> the called command can't handle. Doing a "make clean" in a self-built
> kernel gives the same type of grief (I tweaked the Makefile there to call
> xargs with "-L 2000" to get it to work).
>
> I wonder how everybody else here is able to get anything done...
>
> findutils-4.2.31-2.fc8 on rawhide, fully up to date.

well, if you aren't doing execve syscall argument logging with the audit
system feel free to up /proc/sys/kernel/audit_argv_kb. If that fixes
your troubles wait until 2.6.25 when my patch to finish unlimiting this
stuff goes into kernel....

-Eric

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-15-2008, 01:33 AM
"Horst H. von Brand"
 
Default xargs generates too long argument lists on i686

Eric Paris <eparis@redhat.com> wrote:
> On Mon, 2008-01-14 at 09:43 -0300, Horst H. von Brand wrote:
> > For some time now, each time I try to build an RPM it fails with something
> > like:
> >
> > + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
> > xargs: /usr/lib/rpm/check-rpaths-worker: Argument list too long
> > error: Bad exit status from /var/tmp/rpm-tmp.39544 (%install)
> >
> > This I have traced back to xargs(1) generating huge argument lists, which
> > the called command can't handle. Doing a "make clean" in a self-built
> > kernel gives the same type of grief (I tweaked the Makefile there to call
> > xargs with "-L 2000" to get it to work).
> >
> > I wonder how everybody else here is able to get anything done...
> >
> > findutils-4.2.31-2.fc8 on rawhide, fully up to date.
>
> well, if you aren't doing execve syscall argument logging with the audit
> system feel free to up /proc/sys/kernel/audit_argv_kb. If that fixes
> your troubles wait until 2.6.25 when my patch to finish unlimiting this
> stuff goes into kernel....

Yep, that fixes this. Thanks!

But isn't it supposed that xargs asks the kernel for the maximal size of
ARGV?
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria +56 32 2654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 2797513

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 01-15-2008, 07:40 AM
Panu Matilainen
 
Default xargs generates too long argument lists on i686

On Mon, 14 Jan 2008, Horst H. von Brand wrote:


For some time now, each time I try to build an RPM it fails with something
like:

+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
xargs: /usr/lib/rpm/check-rpaths-worker: Argument list too long
error: Bad exit status from /var/tmp/rpm-tmp.39544 (%install)

This I have traced back to xargs(1) generating huge argument lists, which
the called command can't handle. Doing a "make clean" in a self-built
kernel gives the same type of grief (I tweaked the Makefile there to call
xargs with "-L 2000" to get it to work).

I wonder how everybody else here is able to get anything done...


Easy workaround: just remove the rpath check from ~/.rpmmacros
(rpmdev-setuptree plants it there, it's not part of default rpm build
setup otherwise).


- Panu -

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 07:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org