From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15449 invoked from network); 27 May 1998 11:35:38 -0000 Received: from saturn.aladdin.de (194.123.19.3) by mail2.redhat.com with SMTP; 27 May 1998 11:35:37 -0000 Received: by saturn.aladdin.de(Lotus SMTP MTA v1.06 (346.4 3-18-1997)) id 41256611.0040996B ; Wed, 27 May 1998 12:45:35 +0100 X-Lotus-FromDomain: AKS From: "Christian Groessler" To: axp-list@redhat.com Message-ID: <41256611.0044B6FE.00@saturn.aladdin.de> Date: Wed, 27 May 1998 13:31:49 +0100 Subject: Re: strange compile error in ftape Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii 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