Discussion:
om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro
Daniel Li
2012-04-15 02:12:55 UTC
Permalink
Hi All,

How to fix om-gta02-2.6.39 branch compile error, see below log:

In file included from drivers/block/cciss.c:351:
drivers/block/cciss_scsi.c: In function ‘scsi_cmd_stack_setup’:
drivers/block/cciss_scsi.c:218: error: size of array ‘type name’ is negative
drivers/block/cciss.c: In function ‘cciss_init’:
drivers/block/cciss.c:4932: error: size of array ‘type name’ is negative
make[2]: *** [drivers/block/cciss.o] Error 1
make[1]: *** [drivers/block] Error 2
make: *** [drivers] Error 2

Which is caused by #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))

Any id
Timo Juhani Lindfors
2012-04-15 06:14:41 UTC
Permalink
Post by Daniel Li
drivers/block/cciss.c:4932: error: size of array ‘type name’ is negative
Why are you building cciss.c? If I read Kconfig correctly this needs a
PCI bus.
Daniel Li
2012-04-15 14:21:29 UTC
Permalink
Timo Juhani Lindfors,
Post by Timo Juhani Lindfors
Post by Daniel Li
drivers/block/cciss.c:4932: error: size of array ‘type name’ is negative
Why are you building cciss.c? If I read Kconfig correctly this needs a
PCI bus.
Is there any default config file in the repository?
Or should I
Timo Juhani Lindfors
2012-04-15 14:33:57 UTC
Permalink
Post by Daniel Li
Is there any default config file in the repository?
You probably want to take a look at the config files used by qtmoko, SHR
and debian.

Loading...