* "argument list too long"
@ 2006-01-03 14:06 Noé SERRES
2006-01-03 14:17 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Noé SERRES @ 2006-01-03 14:06 UTC (permalink / raw)
To: Linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]
Hi,
I'm trying to compile a kernel for an embedded-powerpc-linux application.
As a first step/training, I followed closely the instructions of the
document "The DENX U-Boot and Linux Guide" for a TQM8XXL board, that is to
say:
bash$ mrproper
bash$ make TQM823L_config
bash$ make oldconfig
bash$ make dep
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?
Does it have something to do with the fact that I work under WinXP + Cygwin?
No need to say that I am a newbie to the Linux world... help me, Wolfgang
:-)
Noe Serres
Midi Ingenierie
Toulouse (FR)
[-- Attachment #2: Type: text/html, Size: 1301 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "argument list too long"
2006-01-03 14:06 "argument list too long" Noé SERRES
@ 2006-01-03 14:17 ` Wolfgang Denk
2006-01-04 13:08 ` Stefan Eletzhofer
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-01-03 14:17 UTC (permalink / raw)
To: Noé SERRES; +Cc: Linuxppc-embedded
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: "argument list too long"
2006-01-03 14:17 ` Wolfgang Denk
@ 2006-01-04 13:08 ` Stefan Eletzhofer
2006-01-04 13:36 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Eletzhofer @ 2006-01-04 13:08 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: Linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2859 bytes --]
Hi,
Am Dienstag, den 03.01.2006, 15:17 +0100 schrieb Wolfgang Denk:
> 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
Would'nt this overwrite .depend if xargs executes mkdep more than once?
I'd suggest (beware, manually hacked diff ;):
--- 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
+ rm -f .depend && 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
>
--
Stefan Eletzhofer
InQuant GmbH
Bahnhofstraße 11
D-88214 Ravensburg
http://www.inquant.de
http://www.eletztrick.de
+49 (0) 751 35 44 112
+49 (0) 171 23 24 529 (Mobil)
+49 (0) 751 35 44 115 (FAX)
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "argument list too long"
2006-01-04 13:08 ` Stefan Eletzhofer
@ 2006-01-04 13:36 ` Wolfgang Denk
2006-01-04 13:53 ` Stefan Eletzhofer
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-01-04 13:36 UTC (permalink / raw)
To: stefan.eletzhofer; +Cc: Linuxppc-embedded
In message <1136380085.15908.15.camel@localhost> you wrote:
>
> > + 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
>
> Would'nt this overwrite .depend if xargs executes mkdep more than once?
No, why should it? The filr eredirection happens just once, in the
shell, even before xargs gets executed. It does not matter how often
mkdep gets called then.
> I'd suggest (beware, manually hacked diff ;):
I have no idea what you're trying to fix or improve with this.
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
For every complex problem, there is a solution that is simple, neat,
and wrong. - Mark Twain
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "argument list too long"
2006-01-04 13:36 ` Wolfgang Denk
@ 2006-01-04 13:53 ` Stefan Eletzhofer
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Eletzhofer @ 2006-01-04 13:53 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: Linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]
Am Mittwoch, den 04.01.2006, 14:36 +0100 schrieb Wolfgang Denk:
> In message <1136380085.15908.15.camel@localhost> you wrote:
> >
> > > + 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
> >
> > Would'nt this overwrite .depend if xargs executes mkdep more than once?
>
> No, why should it? The filr eredirection happens just once, in the
> shell, even before xargs gets executed. It does not matter how often
> mkdep gets called then.
Gah. You're right, of course ;/
>
> > I'd suggest (beware, manually hacked diff ;):
>
> I have no idea what you're trying to fix or improve with this.
"problem is in front of keyboard" Oder so.
>
> Best regards,
>
> Wolfgang Denk
>
--
Stefan Eletzhofer
InQuant GmbH
Bahnhofstraße 11
D-88214 Ravensburg
http://www.inquant.de
http://www.eletztrick.de
+49 (0) 751 35 44 112
+49 (0) 171 23 24 529 (Mobil)
+49 (0) 751 35 44 115 (FAX)
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-01-04 13:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-03 14:06 "argument list too long" Noé SERRES
2006-01-03 14:17 ` Wolfgang Denk
2006-01-04 13:08 ` Stefan Eletzhofer
2006-01-04 13:36 ` Wolfgang Denk
2006-01-04 13:53 ` Stefan Eletzhofer
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).