[#5174] app horch in Blackfin app programs fails to build

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

[#5174] app horch in Blackfin app programs fails to build

Submitted By: Vivi Li

Open Date

2009-05-31 04:30:21     Close Date

2009-06-03 00:30:54

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     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_rc6

App binary format:

N/A     

Summary: app horch in Blackfin app programs fails to build

Details:

 

using default config and enable USER_CAN_HORCH in Blackfin app programs, it fails to build for both flat and fdpic formats. Tt is not a regression result.

 

Bellow is the log:

--

bfin-uclinux-gcc -pipe -Wall -g -O2      -mcpu=bf537-0.2 -I. -I ../../linux-2.4.x/drivers/char/can4linux -Wall -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist  -mcpu=bf537-0.2  -c -o horch.o horch.c

In file included from horch.c:662:

./horch.h:259: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘server_fd’

./horch.h:272: error: expected ‘)’ before ‘*’ token

horch.c:667:27: error: filter/filter.h: No such file or directory

horch.c:725: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘triggermessage’

horch.c:726: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘server_fd’

horch.c:742: error: expected declaration specifiers or ‘...’ before ‘canmsg_t’

horch.c:742: error: expected declaration specifiers or ‘...’ before ‘canmsg_t’

horch.c: In function ‘main’:

horch.c:783: error: ‘STDDEV’ undeclared (first use in this function)

horch.c:783: error: (Each undeclared identifier is reported only once

horch.c:783: error: for each function it appears in.)

horch.c:847: warning: implicit declaration of function ‘strtol’

horch.c:851: warning: implicit declaration of function ‘read_fp_string’

horch.c:867: warning: implicit declaration of function ‘atoi’

horch.c:881: warning: implicit declaration of function ‘exit’

horch.c:881: warning: incompatible implicit declaration of built-in function ‘exit’

horch.c:891: warning: incompatible implicit declaration of built-in function ‘exit’

horch.c:771: warning: unused variable ‘optopt’

horch.c:771: warning: unused variable ‘opterr’

horch.c:771: warning: unused variable ‘optind’

horch.c:768: warning: unused variable ‘which’

horch.c:767: warning: unused variable ‘id’

horch.c: At top level:

horch.c:1040: error: expected declaration specifiers or ‘...’ before ‘canmsg_t’

horch.c: In function ‘add_time’:

horch.c:1052: error: ‘m’ undeclared (first use in this function)

horch.c: At top level:

horch.c:1073: error: expected ‘)’ before ‘*’ token

horch.c: In function ‘change_format’:

horch.c:1284: warning: pointer targets in passing argument 2 of ‘write_message’ differ in signedness

horch.c:1290: warning: pointer targets in passing argument 2 of ‘write_message’ differ in signedness

horch.c:1299: warning: implicit declaration of function ‘set_bitrate’

horch.c:1302: warning: pointer targets in passing argument 1 of ‘set_acceptance’ differ in signedness

horch.c:1306: warning: pointer targets in passing argument 1 of ‘settrigger’ differ in signedness

horch.c:1309: warning: pointer targets in passing argument 1 of ‘quit’ differ in signedness

horch.c:1366: error: ‘errno’ undeclared (first use in this function)

horch.c:1376: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness

horch.c:1404: warning: implicit declaration of function ‘strlen’

horch.c:1404: warning: incompatible implicit declaration of built-in function ‘strlen’

horch.c: In function ‘usage’:

horch.c:1460: warning: unused variable ‘usage_text’

horch.c: In function ‘quit’:

horch.c:1577: warning: implicit declaration of function ‘strcmp’

horch.c: In function ‘display_line’:

horch.c:1602: warning: incompatible implicit declaration of built-in function ‘strlen’

horch.c:1614: warning: implicit declaration of function ‘sendto’

horch.c:1614: error: ‘server_fd’ undeclared (first use in this function)

horch.c:1615: warning: type-punning to incomplete type might break strict-aliasing rules

horch.c:1615: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_in’

horch.c:1621: warning: implicit declaration of function ‘send’

horch.c:1621: error: ‘MSG_NOSIGNAL’ undeclared (first use in this function)

horch.c: At top level:

horch.c:1643: error: expected declaration specifiers or ‘...’ before ‘canmsg_t’

horch.c:1644: error: expected declaration specifiers or ‘...’ before ‘canmsg_t’

horch.c: In function ‘compare_msg’:

horch.c:1650: error: ‘eins’ undeclared (first use in this function)

horch.c:1650: error: ‘zwei’ undeclared (first use in this function)

horch.c:1655: error: ‘MSG_RTR’ undeclared (first use in this function)

horch.c: In function ‘settrigger’:

horch.c:1699: warning: pointer targets in assignment differ in signedness

horch.c:1701: warning: implicit declaration of function ‘strtoul’

horch.c:1715: error: ‘triggermessage’ undeclared (first use in this function)

horch.c:1715: error: ‘MSG_RTR’ undeclared (first use in this function)

horch.c: In function ‘add_bits’:

horch.c:1744: error: ‘MSG_EXT’ undeclared (first use in this function)

horch.c:1750: error: ‘MSG_RTR’ undeclared (first use in this function)

make[3]: *** [horch.o] Error 1

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/horch'

make[2]: *** [horch] Error 2

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

--

 

Follow-ups

 

--- Sonic Zhang                                              2009-05-31 04:38:32

Maybe we can remove it from blkfin-app and use that from busybox instead?

 

--- Mike Frysinger                                           2009-05-31 04:46:09

or just not bother fixing since can4linux is dead anyways ?

 

--- Sonic Zhang                                              2009-05-31 04:51:00

But, we still need to test can4linux for 2009R1 release. Will move to new CAN

driver in next release.

 

--- Sonic Zhang                                              2009-05-31 23:01:49

The can4linux testing doesn't depend on horch. I may drop it if I can't find a

easy way to fix.

 

--- Sonic Zhang                                              2009-06-02 05:06:36

The Kconfig options are removed.

 

--- Vivi Li                                                  2009-06-03 00:30:53

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