From lida-mail at 163.com Sun Apr 15 04:12:55 2012 From: lida-mail at 163.com (Daniel Li) Date: Sun, 15 Apr 2012 10:12:55 +0800 Subject: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro Message-ID: 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? From timo.lindfors at iki.fi Sun Apr 15 08:14:41 2012 From: timo.lindfors at iki.fi (Timo Juhani Lindfors) Date: Sun, 15 Apr 2012 09:14:41 +0300 Subject: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro In-Reply-To: (Daniel Li's message of "Sun, 15 Apr 2012 10:12:55 +0800") References: Message-ID: <84lilxttbi.fsf@sauna.l.org> "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. From lida_mail at 163.com Sun Apr 15 16:21:29 2012 From: lida_mail at 163.com (Daniel Li) Date: Sun, 15 Apr 2012 22:21:29 +0800 Subject: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro References: <84lilxttbi.fsf@sauna.l.org> Message-ID: 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? From timo.lindfors at iki.fi Sun Apr 15 16:33:57 2012 From: timo.lindfors at iki.fi (Timo Juhani Lindfors) Date: Sun, 15 Apr 2012 17:33:57 +0300 Subject: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro In-Reply-To: (Daniel Li's message of "Sun, 15 Apr 2012 22:21:29 +0800") References: <84lilxttbi.fsf@sauna.l.org> Message-ID: <84hawlt67e.fsf@sauna.l.org> "Daniel Li" 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.