From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: xen build error on gcc v4.5.0 Date: Wed, 18 Aug 2010 11:12:51 -0700 Message-ID: <4C6C22A3.2030709@goop.org> References: <78C9135A3D2ECE4B8162EBDCE82CAD7706ACAB3B@nekter> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <78C9135A3D2ECE4B8162EBDCE82CAD7706ACAB3B@nekter> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masroor Vettuparambil Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 08/18/2010 03:24 AM, Masroor Vettuparambil wrote: > I got the below error when I do a 'make world' in xen-testing.hg . The = kernel is 2.6.31.14. gcc version is 4.5.0.=20 > It is working with gcc v4.3.0 > Btw I thought the default kernel in xen-testing.hg is 2.6.32.x, but it= is still 2.6.31.x. > > ............. > > LD drivers/xen/blktap/blktap.o > LD drivers/xen/blktap/built-in.o > CC drivers/xen/netback/netback.o > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c: In function =E2net_rx_action=E2: > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:495:32: error: storage size of =E2rx_mcl=E2 isn=E2t constant Looks like a gcc bug. Older gccs can compute __RING_SIZE() as a compile-time constant, but gcc 4.5.0 apparently isn't doing that. It is, admittedly, a very complex expression, but gcc shouldn't regress like this. I'm not sure how to work around it. J > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:496:27: error: storage size of =E2rx_mmu=E2 isn=E2t constant > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:497:32: error: storage size of =E2grant_trans_op=E2 isn=E2t const= ant > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:498:28: error: storage size of =E2grant_copy_op=E2 isn=E2t consta= nt > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:500:13: error: storage size of =E2notify_list=E2 isn=E2t constant > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:501:30: error: storage size of =E2meta=E2 isn=E2t constant > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:529:2: warning:type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:529:2: warning:type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:529:2: error: size of unnamed array is negative > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:534:3: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:534:3: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:534:3: error: size of unnamed array is negative > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:548:3: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:548:3: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:548:3: error: size of unnamed array is negative > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:557:3: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:557:3: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:557:3: error: size of unnamed array is negative > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:569:2: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:569:2: warning: type defaults to =E2int=E2 in type name > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:569:2: error: size of unnamed array is negative > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:501:30: warning: unused variable =E2meta=E2 > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:500:13: warning: unused variable =E2notify_list=E2 > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:498:28: warning: unused variable =E2grant_copy_op=E2 > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:497:32: warning: unused variable =E2grant_trans_op=E2 > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:496:27: warning: unused variable =E2rx_mmu=E2 > /home/xen/xen-4.0-testing.hg/linux-2.6-pvops.git/drivers/xen/netback/ne= tback.c:495:32: warning: unused variable =E2rx_mcl=E2 > make[9]: *** [drivers/xen/netback/netback.o] Error 1 > make[8]: *** [drivers/xen/netback] Error 2 > make[7]: *** [drivers/xen] Error 2 > make[6]: *** [drivers] Error 2 > make[5]: *** [sub-make] Error 2 > make[4]: *** [all] Error 2 > > > Thanks, > Masroor > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >