/usr/bin/xargs: rm: Argument list too long during make distclean in cross chroot

Bug #1036645 reported by David Cullen
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro QEMU
Fix Released
Undecided
Unassigned
qemu-linaro (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am building the Linux kernel in a cross chroot environment.
When I run "make distclean", the following messages are emitted:

[user@host:/home/work/linux]: make distclean
/usr/bin/xargs: rm: Argument list too long
make: *** [clean] Error 126

I create the cross chroot environment by making a copy of the root
file system from an ARM system. I copy qemu-arm-static to /usr/bin
and then chroot into the root file system.

If I modify the make file to pass "-s 122880" to xargs, it fixes
the problem.

I have filed a bug report on xargs:

    http://savannah.gnu.org/bugs/index.php?37093

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Revision history for this message
Tom Rini (tom-rini) wrote :

I see this with Ubuntu 12.04 inside of an armhf chroot. Running 'make deb-pkg' also exposes this issue

Changed in qemu-linaro (Ubuntu):
status: New → Confirmed
Tom Rini (tom-rini)
affects: qemu → qemu-linaro (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qemu-linaro (Ubuntu):
status: New → Confirmed
Revision history for this message
Riku Voipio (riku-voipio) wrote :

This was fixed in qemu 2.5 with commit of subject: linux-user: remove MAX_ARG_PAGES limit

Changed in qemu-linaro (Ubuntu):
status: Confirmed → Fix Released
Changed in qemu-linaro:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.