* Re: strange compile error in ftape
@ 1998-05-27 12:31 Christian Groessler
0 siblings, 0 replies; 2+ messages in thread
From: Christian Groessler @ 1998-05-27 12:31 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread* strange compile error in ftape
@ 1998-05-27 15:22 Chad Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Chad Campbell @ 1998-05-27 15:22 UTC (permalink / raw)
To: axp-list
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");
Has anyone else encountered this error?
Thanks,
Chad
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-05-27 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-27 12:31 strange compile error in ftape Christian Groessler
-- strict thread matches above, loose matches on Subject: below --
1998-05-27 15:22 Chad Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox