This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


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 make [Error 255] (cygwin bug?)


On Thu, 25 Sep 2003, Corinna Vinschen wrote:

> On Thu, Sep 25, 2003 at 08:34:25AM -0400, Igor Pechtchanski wrote:
> > On Thu, 25 Sep 2003, Fodor Bertalan wrote:
> >
> > > > $ perl -e 'print "all:;\t\@true && \\\n"; foreach $i
> > > > (0000..9999) { print "\techo -n $i && \\\n"; } print
> > > > "\ttrue\n";' | make -f -
> > > > make: *** [all] Error 255
> > >
> > > Yes, that fails from 1990.
> > >
> > > Is that a good bug report? Where should it be posted?
> >
> > Try it on Linux.  If it works there, post it to the Cygwin list (i.e.,
> > here) with words to that effect.  If it doesn't work on Linux either, post
> > it to some general make bugs list -- I'm sure there is one; look at the
> > homepage for GNU make.
>
> "make bug"?  I'm getting this on Linux:
>
> make: execvp: /bin/sh: Argument list too long
> make: *** [all] Error 127
>
> Doesn't look like a bug at all to me.
>
> Corinna

Urp.  What I meant was "if it fails in the same way on Linux".  The above
looks like a legitimate error message.  FWIW, I just tried it on a RedHat
7.3 machine, and I'm getting the same error as Corinna.  Now that you
mention it, it could be that Cygwin's /bin/sh is exiting with status 255
on an overlong argument list, and this has nothing to do with make per
se...  Although all of

for sh in /bin/sh /bin/ksh /bin/bash /bin/tcsh; do
  perl -e 'print "all:;\t\@true && echo \$\$SHELL && \\\n"; foreach $i (0000..9999) { print "\techo -n $i && \\\n"; } print "\techo && true\n";' | make -f - SHELL=$sh
done

printed "make: *** [all] Error 255", so I doubt it's a specific shell's
behavior...  This is obviously Cygwin-specific, though.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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