Messages in this thread | | | Subject | Re: Compile Failure 2.1.98/Alpha | Date | Wed, 29 Apr 1998 11:54:18 -0400 | From | Horst von Brand <> |
| |
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
| |