FAQ: [#7086] build kernel with mcapi config fails on trunk(2012)

Document created by Aaronwu Employee on Sep 12, 2013
Version 1Show Document
  • View in full screen mode

[#7086] build kernel with mcapi config fails on trunk

Submitted By: Mingquan Pan

Open Date

2012-04-28 03:15:51     Close Date

2012-07-26 22:43:51

Priority:

Medium High     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

ADI-2011R1-RC2

App binary format:

N/A     

Summary: build kernel with mcapi config fails on trunk

Details:

 

build kernel with mcapi config fails on trunk. The failure starts Mar 13.

 

First, it fails like:

 

  CC      drivers/spi/spi-bfin5xx.o^M

  CC [M]  fs/nfs/getroot.o^M

  CC      lib/bitmap.o^M

  CC [M]  fs/nfs/inode.o^M

  LD      drivers/spi/built-in.o^M

  CC      drivers/staging/staging.o^M

  CC      lib/scatterlist.o^M

  CC      drivers/staging/icc/core/protocol.o^M

  CC      lib/string_helpers.o^M

drivers/staging/icc/core/protocol.c: In function ‘sm_send_message_internal’:^M

drivers/staging/icc/core/protocol.c:228: error: ‘IRQ_SUPPLE_0’ undeclared (first use in this function)^M

drivers/staging/icc/core/protocol.c:228: error: (Each undeclared identifier is reported only once^M

drivers/staging/icc/core/protocol.c:228: error: for each function it appears in.)^M

drivers/staging/icc/core/protocol.c: In function ‘icc_release’:^M

drivers/staging/icc/core/protocol.c:816: warning: unused variable ‘used’^M

make[4]: *** [drivers/staging/icc/core/protocol.o] Error 1^M

make[3]: *** [drivers/staging/icc] Error 2^M

make[2]: *** [drivers/staging] Error 2^M

make[1]: *** [drivers] Error 2^M

make[1]: *** Waiting for unfinished jobs....^M

  CC [M]  fs/nfs/super.o^M

  CC      net/core/iovec.o^M

  CC      lib/gcd.o^M

  CC      lib/lcm.o^M

  CC      lib/list_sort.o^M

  CC      net/ethernet/eth.o^M

  CC      net/core/datagram.o^M

 

then it changes to:

make[5]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core'^M

bfin-elf-gcc -g -mcpu=bf561 -mlong-calls -mmulticore -mcoreb -L/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../include -I/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../include -I/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../../../../linux-2.6.x/include -I/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../../../../linux-2.6.x/arch/blackfin/include -I/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../../../../linux-2.6.x/arch/blackfin/mach-bf561/include -I/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../../../../linux-2.6.x/arch/blackfin/include/generated  -I/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core/../../../../linux-2.6.x/drivers/staging/icc/include -DCONFIG_BF561 -D__KERNEL__ -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist  -mcpu=bf561-0.5  -c -o protocol.o protocol.c^M

  Using /home/test/work/cruise/checkouts/uclinux-dist/user/busybox/busybox-1.18.4 as source for busybox^M

make[5]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/libmcapi_coreb'^M

make pre-build^M

protocol.c: In function ‘get_free_buffer’:^M

protocol.c:55: warning: return makes pointer from integer without a cast^M

protocol.c: In function ‘init_sm_session_table’:^M

protocol.c:71: warning: assignment makes pointer from integer without a cast^M

protocol.c: In function ‘sm_index_to_session’:^M

protocol.c:139: warning: passing argument 2 of ‘test_bit’ from incompatible pointer type^M

protocol.c: In function ‘sm_send_message_internal’:^M

protocol.c:162: error: ‘IRQ_SUPPLE_0’ undeclared (first use in this function)^M

protocol.c:162: error: (Each undeclared identifier is reported only once^M

protocol.c:162: error: for each function it appears in.)^M

protocol.c: In function ‘sm_alloc_session’:^M

protocol.c:169: warning: passing argument 1 of ‘find_next_zero_bit’ from incompatible pointer type^M

protocol.c:172: warning: passing argument 1 of ‘bitmap_set’ from incompatible pointer type^M

protocol.c: In function ‘sm_free_session’:^M

protocol.c:181: warning: passing argument 2 of ‘__clear_bit’ from incompatible pointer type^M

protocol.c: In function ‘sm_find_session’:^M

protocol.c:192: warning: passing argument 1 of ‘find_next_bit’ from incompatible pointer type^M

protocol.c:192: warning: passing argument 1 of ‘find_next_bit’ from incompatible pointer type^M

protocol.c: In function ‘sm_register_session_handler’:^M

protocol.c:247: warning: assignment from incompatible pointer type^M

protocol.c: In function ‘sm_handle_control_message’:^M

protocol.c:394: warning: passing argument 2 of ‘memcpy’ makes pointer from integer without a cast^M

protocol.c: In function ‘sm_recv_release’:^M

protocol.c:629: warning: comparison between pointer and integer^M

protocol.c: In function ‘sm_send_packet’:^M

protocol.c:707: warning: passing argument 1 of ‘check_buffer_inpool’ makes integer from pointer without a cast^M

protocol.c:713: warning: assignment makes integer from pointer without a cast^M

protocol.c:714: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast^M

protocol.c:716: warning: assignment makes integer from pointer without a cast^M

protocol.c:734: warning: passing argument 1 of ‘free_buffer’ makes integer from pointer without a cast^M

protocol.c: In function ‘sm_recv_packet’:^M

protocol.c:829: warning: assignment makes pointer from integer without a cast^M

protocol.c: At top level:^M

protocol.c:1033: warning: initialization from incompatible pointer type^M

protocol.c:1040: warning: initialization from incompatible pointer type^M

protocol.c:1047: warning: initialization from incompatible pointer type^M

protocol.c:1054: warning: initialization from incompatible pointer type^M

protocol.c: In function ‘icc_wait’:^M

protocol.c:1154: warning: this decimal constant is unsigned only in ISO C90^M

make[5]: *** [protocol.o] Error 1^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/icc_core'^M

make[4]: *** [icc] Error 2^M

make[4]: *** Waiting for unfinished jobs....^M

make[6]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/icc_utils/libmcapi_coreb'^M

 

Follow-ups

 

--- Mingquan Pan                                             2012-05-21 04:14:00

build mcapi kernel for bf561 board still fails like such.

 

--- Mingquan Pan                                             2012-07-26 23:43:09

mcapi kernel for bf561 can build out now. So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes