From: Wolfgang Denk <wd@denx.de>
To: "Noé SERRES" <noe.serres@gmail.com>
Cc: Linuxppc-embedded@ozlabs.org
Subject: Re: "argument list too long"
Date: Tue, 03 Jan 2006 15:17:24 +0100 [thread overview]
Message-ID: <20060103141725.08E8D3540BC@atlas.denx.de> (raw)
In-Reply-To: Your message of "Tue, 03 Jan 2006 15:06:40 +0100." <f8bc181b0601030606x3b29ee28q@mail.gmail.com>
In message <f8bc181b0601030606x3b29ee28q@mail.gmail.com> you wrote:
>
> After a few minutes of dependency creation, I get the following error
> "argument list too long":
>
> scripts/mkdep -- `find
> /usr/src/linuxppc_2_4_devel-2005-10-25-1440/include/asm
> /usr/src/linuxppc_2_4
> _devel-2005-10-25-1440/include/linux
> /usr/src/linuxppc_2_4_devel-2005-10-25-1440/include/scsi /usr/s
> rc/linuxppc_2_4_devel-2005-10-25-1440/include/net
> /usr/src/linuxppc_2_4_devel-2005-10-25-1440/includ
> e/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h !
> -name modversions.h -print`
> > .hdepend
> scripts/mkdep: argument list too long
> make: *** [dep-files] Error 2
>
> Can someone help me understand where that comes from?
The error comes from the fact that the find command (the part in
`...` above) generates a long list of file names which exceeds some
buffer in your shell.
> Does it have something to do with the fact that I work under WinXP + Cygwin?
Yes.
> No need to say that I am a newbie to the Linux world... help me, Wolfgang
> :-)
I try. Find the statement in the Makefile and use xargs to avoid a
long argument list. Something like this might help:
--- Makefile.ORIG 2006-01-03 15:15:48.000000000 +0100
+++ Makefile 2006-01-03 15:16:55.000000000 +0100
@@ -503,7 +503,7 @@
ifdef CONFIG_MODVERSIONS
$(MAKE) update-modverfile
endif
- scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
+ find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep -- > .hdepend
scripts/mkdep -- init/*.c > .depend
ifdef CONFIG_MODVERSIONS
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The optimum committee has no members.
- Norman Augustine
next prev parent reply other threads:[~2006-01-03 14:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-03 14:06 "argument list too long" Noé SERRES
2006-01-03 14:17 ` Wolfgang Denk [this message]
2006-01-04 13:08 ` Stefan Eletzhofer
2006-01-04 13:36 ` Wolfgang Denk
2006-01-04 13:53 ` Stefan Eletzhofer
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=20060103141725.08E8D3540BC@atlas.denx.de \
--to=wd@denx.de \
--cc=Linuxppc-embedded@ozlabs.org \
--cc=noe.serres@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).