ethertap.c compilation problem

From: Donald Duckie
Date: Mon Feb 28 2005 - 06:06:22 EST


Hi!

I tried cross-compiling ethertap.c with
linux-sh-2.4.18, but can not successfully make it.

TOPDIR was set as /usr/src/linux-sh-2.4.18
CROSS_COMPILE =sh4-linux-
CC = $(CROSS_COMPILE)gcc

the compilation errors are:
--------------------------------------------------
[aphrodite@aphrodite2 net]$ pwd
/usr/src/linux-sh-2.4.18/drivers/net
[aphrodite@aphrodite2 net]$ make
make all_targets
make[1]: Entering directory
`/usr/src/linux-sh-2.4.18/drivers/net'
cc -DKBUILD_BASENAME=auto_irq -c -o auto_irq.o
auto_irq.c
In file included from /usr/include/asm/atomic.h:17,
from /usr/include/linux/module.h:25,
from auto_irq.c:33:
/usr/include/asm/system.h: In function `tas':
/usr/include/asm/system.h:81: unknown register name
`t' in `asm'
In file included from /usr/include/linux/sched.h:14,
from auto_irq.c:34:
/usr/include/linux/timex.h: At top level:
/usr/include/linux/timex.h:173: field `time' has
incomplete type
In file included from /usr/include/linux/sched.h:82,
from auto_irq.c:34:
/usr/include/linux/timer.h:17: field `list' has
incomplete type
auto_irq.c: In function `autoirq_report':
auto_irq.c:51: `jiffies' undeclared (first use in this
function)
auto_irq.c:51: (Each undeclared identifier is reported
only once
auto_irq.c:51: for each function it appears in.)
auto_irq.c: At top level:
auto_irq.c:56: syntax error before
"this_object_must_be_defined_as_export_objs_in_the_Makefile"
auto_irq.c:56: warning: data definition has no type or
storage class
auto_irq.c:57: syntax error before
"this_object_must_be_defined_as_export_objs_in_the_Makefile"
auto_irq.c:57: warning: data definition has no type or
storage class
make[1]: *** [auto_irq.o] Error 1
make[1]: Leaving directory
`/usr/src/linux-sh-2.4.18/drivers/net'
make: *** [first_rule] Error 2
--------------------------------------------------

what could be the possible problem in here?

basing on this compile log, i am expecting that:
(for example)
/usr/include/asm/system.h
to be
/usr/src/linux-sh-2.4.18/include/asm/system.h

I know that there is no need to touch the Makefiles,
Rules.make for this, but I also tried replacing all
$(TOPDIR) to /usr/src/linux-sh-2.4.18.
The result was still the same.

I already ran make dep, make clean, and still got the
same result.

And also to my surprise,
/usr/src/linux -> linux-sh-2.4.18
/usr/src/linux-sh-2.4.18
doing a :
cd linux
would result to:
/usr/src/linux instead of /usr/src/linux-sh-2.4.18
has anyone experienced this?
if so, can this be explained as to why this is the
result?

hoping for some insights on how to proceed with my
compilation problem.


thank you.
donald



__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/