om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro

Daniel Li
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 idea or suggestion?
Reply | Threaded
Open this post in threaded view
|

Re: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro

Timo Juhani Lindfors
"Daniel Li"<[hidden email]> writes:
> drivers/block/cciss.c: In function ‘cciss_init’:
> 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.

Reply | Threaded
Open this post in threaded view
|

Re: Re: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro

Daniel.Li
Timo Juhani Lindfors,

>"Daniel Li" writes:
>> drivers/block/cciss.c: In function ‘cciss_init’:
>> 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 use make menuconfig to configure all items by myself?
Reply | Threaded
Open this post in threaded view
|

Re: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro

Timo Juhani Lindfors
"Daniel Li"<[hidden email]> writes:
> 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.