[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Error Compiling Kernel
At Mon, 08 Nov 2004 09:12:41 +1000,
John Williams wrote:
>
> Yasushi SHOJI wrote:
> > John Williams wrote:
> >>Welson Sun wrote:
> >>>OK, I just tried this again, but selected mbvanilla_net. This time the
> >>>error is:
> >>>for i in ; do make -C $i romfs || exit ; done
> >>>/bin/sh: -c: line 1: syntax error near unexpected token `;'
> >>>/bin/sh: -c: line 1: `for i in ; do make -C $i romfs || exit ; done'
> >>
> >>Hmm, haven't seen this in a long time. Are you using an ancient RedHat
> >>distro by any chance? RH 6/7? I seem to recall it was fixed bny
> >>upgrading to RH8.0 or better.
> >
> > that depends on bash version. as john is saying, ancient redhat has
> > old version of bash, which doesn't take empty list.
>
> Indeed - so perhaps building and installing a newer version of bash is
> slightly less drastic than a Linux re-install! ;-)
or just fix the make file not depends on bash version:
dirs=$(DIRS) ; \ # <--- you need this line to avoid empty list
for i in $$dirs; do .....
best,
--
yashi
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/