This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help understanding compile failure
- To: egcs Mailing List <egcs at cygnus dot com>
- Subject: Help understanding compile failure
- From: "B. James Phillippe" <bryan at terran dot org>
- Date: Fri, 4 Dec 1998 17:52:20 -0800 (PST)
- Organization: terran.org/darkforest.org
Hello,
I am trying to compile ftape-4.02 on Linux-2.1.130/Alpha using
egcs-1.1.1 pre-release, and getting errors which I cannot diagnose.
Apparently, other users have not had this problem (with older kernels or
compilers, I presume). Can anyone help me understand what exactly the
complaint is?
Here is the error message:
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce
-DTHE_FTAPE_MAINTAINER=\"heine@math1.rwth-aachen.de\" -DCONFIG_FT_PROC_FS
-DCONFIG_FT_STD_FDC_0 -DCONFIG_FT_INT_0=1 -DCONFIG_FTAPE_MODULE
-DCONFIG_FT_INTERNAL_MODULE -DCONFIG_FT_TRAKKER_MODULE -DCONFIG_FT_BPCK_MODULE
-DCONFIG_ZFTAPE_MODULE -DCONFIG_ZFT_COMPRESSOR_MODULE -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -include
../../include/linux/modversions.h -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:442,
from ../../include/linux/ftape.h:38,
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
make[2]: *** [ftape_syms.o] Error 1
make[2]: Leaving directory `/usr/src/ftape-4.02/ftape/lowlevel'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/ftape-4.02/ftape'
make: *** [all] Error 2
The file in question, <asm/current.h> (on Linux) looks like this:
#ifndef _ALPHA_CURRENT_H
#define _ALPHA_CURRENT_H
register struct task_struct *current __asm__("$8");
#endif /* !(_ALPHA_CURRENT_H) */
The file is (obviously) included in the Linux kernel, but I do not get any
compilation problem on that. The ftape maintainer has no clue; can anyone
offer some advice?
Greatfully,
-bp
--
B. James Phillippe . bryan@terran.org
Linux Engineer/Admin . http://www.terran.org/~bryan
Member since 1.1.59 . finger:bryan@earth.terran.org