[#5620] Build twi_test failed as kernel updated in latest trunk

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

[#5620] Build twi_test failed as kernel updated in latest trunk

Submitted By: Vivi Li

Open Date

2009-10-15 06:53:34     Close Date

2009-10-21 03:15:26

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

Make Errors     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: Build twi_test failed as kernel updated in latest trunk

Details:

 

Build twi_test failed as kernel updated in latest trunk.

 

--

  CC [M]  /home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.o^M

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c: In function ‘ad5280_probe’:^M

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:32: error: implicit declaration of function ‘i2c_attach_client’^M

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:39: error: implicit declaration of function ‘i2c_detach_client’^M

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c: In function ‘ad5280_attach’:^M

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:58: error: implicit declaration of function ‘i2c_probe’^M

make[6]: *** [/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.o] Error 1^M

make[5]: *** [_module_/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test] Error 2^M

--

 

Follow-ups

 

--- Sonic Zhang                                              2009-10-20 00:41:58

Fixed. The i2c device probe interface is changed.

Now the i2ctwi test script should be updated to configure bf537-lq035 driver as

a kernel module before build the test application.

 

--- Vivi Li                                                  2009-10-20 06:30:42

Still fails to build twi_test:

--

make[1]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/user'

touch blkfin-test/twi_test/.sgbuilt_user && make -C

blkfin-test/twi_test -j4

make[2]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test'

CFLAGS="" CPPFLAGS="" LDFLAGS="" make

ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -C

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x SUBDIRS=$PWD modules

make[3]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make[3]: warning: jobserver unavailable: using -j1.  Add `+' to parent make

rule.

  CC [M]

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.o

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:

In function ‘ad5280_probe’:

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:22:

warning: passing argument 1 of ‘i2c_smbus_write_byte_data’ from incompatible

pointer type

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:24:

error: ‘rc’ undeclared (first use in this function)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:24:

error: (Each undeclared identifier is reported only once

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:24:

error: for each function it appears in.)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:28:

warning: passing argument 1 of ‘i2c_smbus_read_byte_data’ from incompatible

pointer type

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:

At top level:

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:39:

warning: missing braces around initializer

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:39:

warning: (near initialization for ‘ad5280_id[0].name’)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:39:

warning: initialization makes integer from pointer without a cast

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:39:

error: initializer element is not computable at load time

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.c:39:

error: (near initialization for ‘ad5280_id[0].name[0]’)

make[4]: ***

[/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test/twi_smbus_test.o]

Error 1

make[3]: ***

[_module_/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/twi_test]

Error 2

--

 

--- Sonic Zhang                                              2009-10-21 01:42:42

Fix typo error.

 

--- Vivi Li                                                  2009-10-21 03:15:26

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes