[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel troubles



On Wed 03 Jun 1998, Lonnie Sauter wrote:

> pippin# make
> arch/alpha/Makefile:35: *** missing separator.  Stop.

Try the patch below.

Paul Slootman
-- 
home: paul@wurtel.demon.nl | work: paul@murphy.nl
http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands

From: Dominik Kubla <kubla@sundiver.zdv.uni-mainz.de>
Subject: Re: [2.1.99] Small buglet in arch/alpha/Makefile
Date: Wed, 6 May 1998 14:28:16 +0200
Message-ID: <19980506142816.05946@uni-mainz.de>

On Tue, May 05, 1998 at 07:30:27PM -0500, Michael Elizabeth Chastain wrote:
> The original lines use the '>&' construct to capture stderr from as.
> Your new lines do not capture the stderr.  So I think you are going to
> have a problem here.
> 
> I tried a similar construct in make 3.74 on my Linux-i386 system,
> and it didn't work because stderr didn't get captured.
> 
> I think you have to do something like '($(AS) --version 2>&1)'

Yes. I forgot that one. Thanks for pointing this out.

So here is the (hopefully) final version of the patch.  

Dominik

diff -Nur linux-2.1.100-1/arch/alpha/Makefile linux/arch/alpha/Makefile
--- linux-2.1.100-1/arch/alpha/Makefile	Tue May  5 01:01:26 1998
+++ linux/arch/alpha/Makefile	Tue May  5 21:28:09 1998
@@ -31,12 +31,12 @@
 CFLAGS := $(CFLAGS) -mno-fp-regs -ffixed-8 -Wno-uninitialized
 
 # determine if we can use the BWX instructions with GAS
-$(shell rm -f ./GAS_VER)
-$(shell $(AS) --version >& ./GAS_VER)
-OLD_GAS := $(shell if cat ./GAS_VER | grep 'version 2.7' > /dev/null; then echo yes; else echo no; fi)
-$(shell rm -f ./GAS_VER)
+GAS_VER := $(shell $(AS) --version 2>&1 | head -1 | sed "s/.* //g")
+GAS_MAJOR := $(shell echo $(GAS_VER) | cut -d. -f1)
+GAS_MINOR := $(shell echo $(GAS_VER) | cut -d. -f2)
+OLD_GAS := $(shell expr $(GAS_MAJOR) \< 1 \| \( $(GAS_MAJOR) = 2 \& $(GAS_MINOR) \<= 7 \) )
 
-ifneq ($(OLD_GAS),yes)
+ifneq ($(OLD_GAS),1)
 # if PYXIS, then enable use of BWIO space
  ifeq ($(CONFIG_ALPHA_PYXIS),y)
   CFLAGS := $(CFLAGS) -Wa,-m21164a -DBWX_USABLE -DBWIO_ENABLED


--
To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: