Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Makefile
@ 1998-04-30  2:21 Ian Kinner
  1998-04-30  3:49 ` Makefile Michal Jaegermann
  1998-04-30  4:11 ` Makefile Maurice Hilarius
  0 siblings, 2 replies; 4+ messages in thread
From: Ian Kinner @ 1998-04-30  2:21 UTC (permalink / raw)
  To: axp-list


I am running 2.1.98, and I know it is experimental, but I am reporting a
problem that should be corrected in the next few kernels...

My arch/alpha/Makefile has a problem on line 35. When I try a "make
menuconfig" or any other "make" command, I get an "arch/alpha/Makefile: 35:
Missing Separator" error. The line is this:

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

When the & is removed, it works fine. This problem didn't occur in the
2.1.86 kernel.

Also, when I compile the kernel, towards the end, I get the following error:

>ld -static -T arch/alpha/vmlinux.lds arch/alpha/kernel/head.o init/main.o
>init/version.o \
>        arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o
>mm/mm.o fs/fs.o ipc/ipc.o arch/alpha/math-emu/math-emu.o \
>        fs/filesystems.a \
>        net/network.a \
>        drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
>drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
>drivers/pci/pci.a \
>        /usr/src/linux-2.1.98/arch/alpha/lib/lib.a
>/usr/src/linux-2.1.98/lib/lib.a /usr/src/linux-2.1.98/arch/alpha/lib/lib.a
>\
>        -o vmlinux
>init/main.o: In function `checksetup':
>main.c(.text+0x1e0): undefined reference to `__builtin_memset'
>main.c(.text+0x1e4): undefined reference to `__builtin_memset'
>main.c(.text+0x21c): undefined reference to `__builtin_memset'
>main.c(.text+0x220): undefined reference to `__builtin_memset'
>main.c(.text+0x258): undefined reference to `__builtin_memset'
>init/main.o(.text+0x25c):main.c: more undefined references to
>`__builtin_memset' follow
>make: *** [vmlinux] Error 1

The __builtin_memset function can be located in the
include/asm-alpha/string.h file. There is a version test to determine which
version of gcc you are running. If you are using >2.8, it implements the
__builtin_memset function. I am running 2.8, however, and it still does not
work. When I edit the string.h file to remove the test, so that it does not
use the function, the kernel compiles normally without errors. 

I have figured out how to get around these problems, but the fact that I
must edit these two files everytime I download a new kernel is quite an
annoyance. If anyone can tell me if my compiler is broken or if it is the
kernel, I would greatly appreciate it.

Ian Kinner


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Makefile
  1998-04-30  2:21 Makefile Ian Kinner
@ 1998-04-30  3:49 ` Michal Jaegermann
  1998-04-30  4:01   ` Makefile Ian Kinner
  1998-04-30  4:11 ` Makefile Maurice Hilarius
  1 sibling, 1 reply; 4+ messages in thread
From: Michal Jaegermann @ 1998-04-30  3:49 UTC (permalink / raw)
  To: axp-list

> 
> 
> My arch/alpha/Makefile has a problem on line 35. When I try a "make
> menuconfig" or any other "make" command, I get an "arch/alpha/Makefile: 35:
> Missing Separator" error. The line is this:
> 
> $(shell $(AS) --version >& ./GAS_VER)

This is wrong syntax.  If you call bash under a name /bin/sh, like
Makefile does, you cannot use any bash extensions.  The line should
read:

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

and redirects both stderr and stdout to ./GAS_VER.  Your "fix"
just left stderr alone.

  Michal


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Makefile
  1998-04-30  3:49 ` Makefile Michal Jaegermann
@ 1998-04-30  4:01   ` Ian Kinner
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Kinner @ 1998-04-30  4:01 UTC (permalink / raw)
  To: axp-list

At 09:49 PM 4/29/98 -0600, you wrote:

How do we get this info to the people in charge of the AXP Makefile?

>> 
>> 
>> My arch/alpha/Makefile has a problem on line 35. When I try a "make
>> menuconfig" or any other "make" command, I get an "arch/alpha/Makefile: 35:
>> Missing Separator" error. The line is this:
>> 
>> $(shell $(AS) --version >& ./GAS_VER)
>
>This is wrong syntax.  If you call bash under a name /bin/sh, like
>Makefile does, you cannot use any bash extensions.  The line should
>read:
>
>$(shell $(AS) --version > ./GAS_VER 2>&1)
>
>and redirects both stderr and stdout to ./GAS_VER.  Your "fix"
>just left stderr alone.
>
>  Michal
>
>-- 
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Makefile
  1998-04-30  2:21 Makefile Ian Kinner
  1998-04-30  3:49 ` Makefile Michal Jaegermann
@ 1998-04-30  4:11 ` Maurice Hilarius
  1 sibling, 0 replies; 4+ messages in thread
From: Maurice Hilarius @ 1998-04-30  4:11 UTC (permalink / raw)
  To: axp-list

With regards to your message at 09:21 PM 04-29-98 -0500, Ian Kinner. Where
you stated:
>
>I am running 2.1.98, and I know it is experimental, but I am reporting a
>problem that should be corrected in the next few kernels...
>
>My arch/alpha/Makefile has a problem on line 35. When I try a "make
>menuconfig" or any other "make" command, I get an "arch/alpha/Makefile: 35:
>Missing Separator" error. The line is this:
I think that if you do a simple make config, rather than make menuconfig,
things should work better. menuconfig has some problems..



+--------------------------------------------------------+
| Maurice Hilarius           | The Past is History       |
|                            |  The Future is Mystery    |
|                            |   Today is a Gift         |
| Phone/FAX (403) 414-9319   | That is why they call it  |
| email:maurice@harddata.com |   The Present             |
+--------------------------------------------------------+



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-04-30  4:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-30  2:21 Makefile Ian Kinner
1998-04-30  3:49 ` Makefile Michal Jaegermann
1998-04-30  4:01   ` Makefile Ian Kinner
1998-04-30  4:11 ` Makefile Maurice Hilarius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox