mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ethertap.c compilation problem
@ 2005-02-28 11:04 Donald Duckie
  2005-02-28 20:35 ` Willy Tarreau
  0 siblings, 1 reply; 2+ messages in thread
From: Donald Duckie @ 2005-02-28 11:04 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-28 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-28 11:04 ethertap.c compilation problem Donald Duckie
2005-02-28 20:35 ` Willy Tarreau

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

all inboxes | Powered by JetHome®