lkml.org 
[lkml]   [1998]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Compile Failure 2.1.98/Alpha
Date
From
Riley Williams <rhw@bigfoot.com> said:
> Alan: Can you check into this please, and pass my comments on to the
> relevant maintainer...

> >>> when trying to compile 2.1.98 on a DEC Alpha (noname)
> >>> i get the folowing error:
>
> >>> root@alpha:/usr/src/linux# make config
> >>> arch/alpha/Makefile:35: *** missing separator. Stop.
> >>> root@alpha:/usr/src/linux#
>
> >>> if I look at line 35 in arch/alpha/Makefile i see this:
>
> >>> $(shell $(AS) --version >& ./GAS_VER)
>
> >>> If I change it to
>
> >>> $(shell $(AS) --version &> ./GAS_VER)

For bash (and csh and its ilk) this means "Combine stdout and stderr into
the following >", so I guess this is what was wanted all along. It won't
work for sh, and (AFAIKS) shouldn't work with bash is called as sh. The
"right" (Bourne, ksh, bash, ..., i.e., portable) way to do this would be
something along the line:

$(shell $(AS) --version > ./GAS_VER 2>&1 )

Now, if your shell is some descendant of csh, this won't work, but the '&>'
version will ;-). Perhaps you have to say in some of the Makefiles that
you insist in /bin/sh, just to make sure it works everywhere?

BTW, I know Michael Chastain is working on redoing _all_ the Makefile stuff
in the kernel, perhaps it's just not worth it to worry much about the
matter right now.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.031 / U:1.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site