[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken Build on Mac OS X
From: |
Marco Gerards |
Subject: |
Re: Broken Build on Mac OS X |
Date: |
Sat, 03 Dec 2005 14:00:46 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Andre Smith <address@hidden> 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