[#5931] Trying to compile CAN4LINUX for BF537-STAMP board but compilation is failing

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

[#5931] Trying to compile CAN4LINUX for BF537-STAMP board but compilation is failing

Submitted By: Fawad S. Lateef

Open Date

2010-02-25 08:25:43     Close Date

2010-02-25 12:07:40

Priority:

Medium High     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2009R1.1-RC4     Release:

2009R1.1-RC4

Category:

Make Errors     Board:

STAMP

Processor:

BF537     Silicon Revision:

0.2

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

Got through apt-get on Debian

App binary format:

N/A     

Summary: Trying to compile CAN4LINUX for BF537-STAMP board but compilation is failing

Details:

 

Trying to compile CAN4LINUX for BF537-STAMP board but compilation is failing. Error messages are:

 

In file included from drivers/char/can4linux/defs.h:336,

                 from drivers/char/can4linux/core.c:234:

drivers/char/can4linux/sja1000.h:393:4: error: #error Please specify a valid CAN_SYSCLK value (i.e. 8, 10) or define new parameters

drivers/char/can4linux/core.c: In function ‘can_init’:

drivers/char/can4linux/core.c:344: error: expected ‘)’ before ‘__CAN_TYPE__’

drivers/char/can4linux/core.c:467: warning: label ‘out_class’ defined but not used

make[3]: *** [drivers/char/can4linux/core.o] Error 1

make[2]: *** [drivers/char/can4linux] Error 2

make[1]: *** [drivers/char] Error 2

make: *** [drivers] Error 2

 

 

I am attaching my .config file and also looked at drivers/char/can4linux/Makefile and KBuild and both seems fine

 

 

Follow-ups

 

--- Mike Frysinger                                           2010-02-25 12:06:49

you didnt actually enable CONFIG_CAN_BLACKFIN

 

you also have a ton of **** enabled that makes no sense

 

--- Fawad S. Lateef                                          2010-02-25 12:44:59

I just figured out that CONFIG_CAN_BLACKFIN will be avialable in Kernel Config

options only if I disable Xenomai's RT-CAN driver; so technically if someone

enable RT-CAN from Xenomai then CAN4LINUX option should be disabled too like

this one.

 

Regarding the "ton of **** enabled", I haven't did any customization

in configuration yet which I will be doing.

 

Thanks for your quick reply.

 

--- Mike Frysinger                                           2010-02-25 12:56:26

your configuration has things enabled that are not enabled in any default

Blackfin config, so i dont really see how they could have been turned on

otherwise unless you did something weird like allyesconfig.

 

can4linux is dead and 2009R1.1 is the last release with it, so i doubt people

will bother polishing things like dependencies.

 

--- Fawad S. Lateef                                          2010-02-25 13:15:55

Thanks again for letting me know. Can you also tell me how to enable

CAN_BLACKFIN option without CAN4LINUX OR this CAN_BLACKFIN option is now in

latest code independent of can4linux ?

 

--- Mike Frysinger                                           2010-02-25 13:51:39

svn trunk doesnt include can4linux at all

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config    application/octet-stream    50521    Fawad S. Lateef

Attachments

Outcomes