ethertap.c compilation problem

From: Donald Duckie (schipperke2000_at_yahoo.com)
Date: 02/28/05

  • Next message: Arjan van de Ven: "Re: kernel BUG at mm/rmap.c:483!"
    Date:	Mon, 28 Feb 2005 03:04:39 -0800 (PST)
    To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
    
    

    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Arjan van de Ven: "Re: kernel BUG at mm/rmap.c:483!"

    Relevant Pages

    • Re: compilation issues on 64bit HPUX11 with aCC compiler
      ... > following error message comes: ... > to have an incomplete type. ... > Do I need to add some compiler flags for 64bit compilation? ... You need to use the "+DA2.0W" flag in order to perform 64bit compilation. ...
      (comp.sys.hp.hpux)
    • Re: Kernel panic during SysRq-b on Alpha
      ... Ivan Kokshaysky wrote: ... For keyboard, ... was doing exactly - generating out-of-line copies in various compilation ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: ATARAID/FakeRAID/HPTRAID/PDCRAID as dm targets?
      ... as I ported the compilation to klibc. ... I know it works for partitioned multipath devmaps, partitioned loops, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6] RTL8169 Suspend and Resume Stuff
      ... > Here's a short patch for the new Realtek RTL8169 PCI Gigabit Driver ... > compilation with 2.4.23. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Oops] i386 mm/slab.c (cache_flusharray)
      ... >(compilation of firebird) ... slab.c, a bad bit in the L1/L2 cache, or random pointer scribbling. ... And please pay attention to the objnr: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)