From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EiX0b-0002fC-Hl for mharc-grub-devel@gnu.org; Sat, 03 Dec 2005 08:00:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EiX0Z-0002d4-EH for grub-devel@gnu.org; Sat, 03 Dec 2005 08:00:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EiX0X-0002b7-Fj for grub-devel@gnu.org; Sat, 03 Dec 2005 08:00:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EiX0X-0002av-8b for grub-devel@gnu.org; Sat, 03 Dec 2005 08:00:53 -0500 Received: from [194.109.24.33] (helo=smtp-vbr13.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EiX0g-0005eR-9s for grub-devel@gnu.org; Sat, 03 Dec 2005 08:01:02 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr13.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB3D0k1U092969 for ; Sat, 3 Dec 2005 14:00:47 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <7AD654D7-3FC1-452B-99EA-6B43B67C85FF@speakeasy.net> <4d84612795ff256ef07442b799a03518@penguinppc.org> From: Marco Gerards Date: Sat, 03 Dec 2005 14:00:46 +0100 In-Reply-To: (Andre Smith's message of "Fri, 2 Dec 2005 23:56:21 -0500") Message-ID: <8764q6pc75.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Broken Build on Mac OS X X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 13:00:55 -0000 Andre Smith writes: > gcc -Icommands -Igrub2/commands -I. -Iinclude -Igrub2/include -Wall - > W -DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-ieee1275\" -g -O2 - > DGRUB_UTIL=1 -c -o grub_emu-commands_help.o grub2/commands/help.c > grub2/commands/help.c: In function 'grub_cmd_help': > grub2/commands/help.c:42: error: nested functions are not supported > on MacOSX > grub2/commands/help.c:65: error: nested functions are not supported > on MacOSX > make: *** [grub_emu-commands_help.o] Error 1 After searching a bit with google, I found this thread: http://lists.apple.com/archives/Xcode-users/2005/Nov/msg00267.html It seems that the apple version of gcc (?) had nested functions disabled because of the executable stack. It seems to me that this was done by the apple developers and not by the gcc developers. The reason they did this was because they was to disable executable stacks. And the way they did seems quite awkward to me. Instead of disabling it by default they just disabled it completely. You might have to consider building gcc yourself or using an older version. -- Marco