This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange `find` syntax error in crosstool-ng


Michael,

On Monday 28 January 2008 10:59:12 Michael Abbott wrote:
> My crosstool build fails with the message

Beware, that this is not crosstool, but crosstool-NG.

> [INFO ]  Installing final compiler: done in 520.97s
> [38:16] / find: missing argument to `-exec'
> [ERROR]  Build failed in step "<none>"
> [ERROR]  Error happened in "/scratch/crosstool-ng-1.0.0/scripts/crosstool.sh" in function "main" (line unknown, sorry)
> 
> and the error is clearly due to lines 400-402 in crosstool.sh which are of 
> the form
>  	find ... -name ... -exec rm -fv {} \+ | CT_DoLog DEBUG

Well, as the rest of the thread clarifies, this is no bug. The '+' was here
on purpose. Because using '+' rather than ';' spawns only one child process
to do the 'rm', I thought of it as a (mciro-)optimisation. It turns out that
it was not that much smart, as you discovered. :-) 

> Eh?  How on earth did \; become transformed into \+?  This is in both the 
> 1.0.0 tar bundle and the svn version (which seem to be identical apart 
> from the .version file).

I haven't had any change since the 1.0.0 release. Your's will be first!

> The attached patch should fix this, but I haven't tested it yet.

I will apply it shortly. Thanks!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]