sem has incomplete type error in building the filesystem image

From: sudheervemana (sudheervemana_at_hotmail.com)
Date: 11/26/04


Date: 25 Nov 2004 21:32:46 -0800

Hi all,

      I am using snapgear3.1.1v for porting 2.6.2 on to my target
board with
ELANSc520 processor.i have build the kernel image and when building
hte filesystem
jffs2.img image i am encountouring the below error.

  ****************************************************************************
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/bitmap.h: In
function `bitmap_clear':
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/bitmap.h:21:
warning: implicit declaration of function `CLEAR_BITMAP'
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/bitmap.h: In
function `bitmap_fill':
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/bitmap.h:26:
warning: implicit declaration of function `BITS_TO_LONGS'

In file included from
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/sched.h:21,
                 from
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/mm.h:4,
                 from
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/linux/mman.h:5,
                 from mem.c:36:
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/asm/mmu.h: At top
level:
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/asm/mmu.h:13: field
`sem' has incomplete type
/home/sudheer/snapgear3.1.1/linux-2.6.x/include/asm/mmu.h:15: confused
by earlier errors, bailing out
make[2]: *** [mem.o] Error 1
make[1]: *** [all] Error 2
make: *** [subdirs] Error 1

******************************************************************************

               What could be the problem ,i came to see that the sem
has
incomplete type in mmu.h file in asm directory.It was declared as
struct
semaphore.Does it was an incomplete data type for the sem
variable.Please help
me to resolve this problem.Do i require any packages,i have downloaded
the snapgear 3.1.1 and tool chain i386-linux -tools for i386 based
arch.

With best Regards,
Sudheervemana.



Relevant Pages

  • 2.6.0-test2 build failed
    ... drivers/block/ps2esdi.c:186: warning: initialization from incompatible pointer ... drivers/block/ps2esdi.c:189: dereferencing pointer to incomplete type ... drivers/block/ps2esdi.c:204: warning: implicit declaration of function ...
    (Linux-Kernel)
  • bug from snapgear3.1.1
    ... ELANSc520 processor.i have build the kernel image and when building ... warning: implicit declaration of function `BITS_TO_LONGS' ... incomplete type in mmu.h file in asm directory.It was declared as ...
    (comp.os.linux.development.apps)
  • Kernel 2.6 test4 compile error
    ... drivers/block/ps2esdi.c:190: warning: initialization from incompatible ... drivers/block/ps2esdi.c:193: dereferencing pointer to incomplete type ... drivers/block/ps2esdi.c:208: warning: implicit declaration of function ...
    (comp.os.linux.setup)
  • Problem compiling Kernel 2.6 test4
    ... drivers/block/ps2esdi.c:190: warning: initialization from incompatible ... drivers/block/ps2esdi.c:193: dereferencing pointer to incomplete type ... drivers/block/ps2esdi.c:208: warning: implicit declaration of function ...
    (alt.os.linux)
  • Error when porting OpenSSH
    ... canohost.c:98: warning: implicit declaration of function `getaddrinfo' ... canohost.c:104: dereferencing pointer to incomplete type ...
    (comp.os.linux.security)