Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Christian Groessler"<cpg@aladdin.de>
To: axp-list@redhat.com
Subject: Re: strange compile error in ftape
Date: Wed, 27 May 1998 13:31:49 +0100	[thread overview]
Message-ID: <41256611.0044B6FE.00@saturn.aladdin.de> (raw)



On 5/27/98 12:20:14 PM Chad Campbell  wrote:
>
>I'm trying to compile ftape-4.x-beta-4 with egcs 1.03a under kernel
>2.1.88, and I'm getting the following error in ftape_syms.c:
>
>gcc -Wall -Wstrict-prototypes -O2  -fomit-frame-pointer
>-fno-strength-reduce
>-DTHE_FTAPE_MAINTAINER=\"claus@momo.math.rwth-aachen.de\"
>-DBROKEN_FLOPPY_DRIVER -DCONFIG_FT_PROC_FS  -DCONFIG_FT_FULL_DEBUG
-DCONFIG_FTAPE_MODULE -DCONFIG_FT_INTERNAL_MODULE
>-DCONFIG_FT_TRAKKER_MODULE -DCONFIG_FT_OBISPO_MODULE
>-DCONFIG_ZFTAPE_MODULE -DMODULE -D__KERNEL__ -I. -I../../include
>-I/usr/src/linux/include  -
>DEXPORT_SYMTAB -c ftape_syms.c
>In file included from /usr/src/linux/include/linux/sched.h:434,
>from ../../include/linux/ftape.h:37,
>from ftape_syms.c:32:
>/usr/src/linux/include/asm/current.h:4: global register variable follows
>a function definition
>/usr/src/linux/include/asm/current.h:4: warning: call-clobbered register
used for global register variable
>
>What really confuses me is that this error never shows up in compiling
>the kernel and the kernel code also includes linux/sched.h which
>includes asm/current.h, which has the following line:
>
>register struct task_struct *current __asm__("$8");

Just a wild guess: try adding "-ffixed-8" to compiler flags.
Kernel compile flags have this too.

regards,
chris




             reply	other threads:[~1998-05-27 11:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-27 12:31 Christian Groessler [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-05-27 15:22 strange compile error in ftape Chad Campbell
read-only archive

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