Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OwggA-0001By-75 for mharc-grub-devel@gnu.org; Fri, 17 Sep 2010 15:33:02 -0400 Received: from [140.186.70.92] (port=37692 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owgg6-00015f-3t for grub-devel@gnu.org; Fri, 17 Sep 2010 15:32:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwgRE-0007Vd-6g for grub-devel@gnu.org; Fri, 17 Sep 2010 15:17:37 -0400 Received: from e24smtp02.br.ibm.com ([32.104.18.86]:45745) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwgRD-0007Uo-NH for grub-devel@gnu.org; Fri, 17 Sep 2010 15:17:36 -0400 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp02.br.ibm.com (8.14.4/8.13.1) with ESMTP id o8HJKZUb000470 for ; Fri, 17 Sep 2010 16:20:35 -0300 Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8HJNNX42167022 for ; Fri, 17 Sep 2010 16:23:25 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o8HJHGc6018633 for ; Fri, 17 Sep 2010 16:17:16 -0300 Received: from [9.78.138.45] ([9.78.138.45]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o8HJHFUM018628 for ; Fri, 17 Sep 2010 16:17:16 -0300 From: Manoel Rebelo Abraches To: The development of GNU GRUB Content-Type: text/plain; charset="UTF-8" Date: Fri, 17 Sep 2010 16:17:25 -0300 Message-ID: <1284751045.4099.9.camel@abranches-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by e24smtp02.br.ibm.com id o8HJKZUb000470 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Build fails in PowerPC X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 19:33:00 -0000 Mainline grub failed to build in PowerPC with the following error: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I./include -DGRUB_UTIL=3D1 -DGRUB_LIBDIR=3D\"/usr/local/lib/grub\" -DLOCALEDIR=3D \"/usr/local/share/locale\" -DGRUB_MACHINE_IEEE1275=3D1 -DMACHINE=3DPOWERPC_IEEE1275 -DGRUB_FILE=3D\"grub-core/partmap/gpt.c\" -I. -I.. -I. -I.. -I../include -I./include -I../grub-core/gnulib -I../grub-core/lib/libgcrypt_wrap -Wno-undef -Wno-sign-compare -Wno-unused -D_GL_UNUSED=3D"__attribute__ ((unused))" -Wno-error -Wno-missing-field-initializers -MT grub-core/partmap/libgrub_a-gpt.o -MD -MP -MF grub-core/partmap/.deps-util/libgrub_a-gpt.Tpo -c -o grub-core/partmap/libgrub_a-gpt.o `test -f 'grub-core/partmap/gpt.c' || echo '../'`grub-core/partmap/gpt.c ../grub-core/partmap/gpt.c:36: error: initializer element is not constant ../grub-core/partmap/gpt.c:36: error: (near initialization for =E2=80=98grub_gpt_partition_type_bios_boot.data1=E2=80=99) ../grub-core/partmap/gpt.c:36: error: braced-group within expression allowed only inside a function ../grub-core/partmap/gpt.c:36: error: braced-group within expression allowed only inside a function ------------------------------------------------------------------- That is the code that fails in gpt.c=20 static const grub_gpt_part_type_t grub_gpt_partition_type_empty =3D GRUB_GPT_PARTITION_TYPE_EMPTY; GRUB_GPT_PARTITION_TYPE_EMPTY is define in include/grub/gpt_partition.h as #define GRUB_GPT_PARTITION_TYPE_EMPTY \ { 0x0, 0x0, 0x0, \ { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } \ } -------------------------------------------------------------------------= --- This code compiles fine in x86, is that a gcc bug? I'm using gcc 4.4.3 --=20 Best Regards, Manoel Rebelo Abranches Software engineer IBM - Linux Technology Center - Brazil