* Broken Build on Mac OS X
@ 2005-12-02 5:00 Andre Smith
2005-12-02 14:34 ` Hollis Blanchard
0 siblings, 1 reply; 9+ messages in thread
From: Andre Smith @ 2005-12-02 5:00 UTC (permalink / raw)
To: grub-devel
I would like to report a broken build on Mac OS X using cross
compiler powerpc-elf version 4.0.2 using binutils 2.16.1 and newlib
1.13.0. I get the following error message after running configure --
host=powerpc-elf followed by a make:
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
console:~/opensource/bootcode/source asmith$
Fair warning, I am new to the list and GRUB2 source code. I wanted to
report this to the list first, to see if anyone was aware and/or
working on this issue. I am interested in getting GRUB2 to work on
the Mac in an effort to support porting efforts of OpenSolaris on
Apple hardware. Any help on this is greatly appreciated.
Thanks,
Andre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-02 5:00 Broken Build on Mac OS X Andre Smith
@ 2005-12-02 14:34 ` Hollis Blanchard
2005-12-03 4:56 ` Andre Smith
0 siblings, 1 reply; 9+ messages in thread
From: Hollis Blanchard @ 2005-12-02 14:34 UTC (permalink / raw)
To: The development of GRUB 2
On Dec 1, 2005, at 11:00 PM, Andre Smith wrote:
> I would like to report a broken build on Mac OS X using cross compiler
> powerpc-elf version 4.0.2 using binutils 2.16.1 and newlib 1.13.0. I
> get the following error message after running configure
> --host=powerpc-elf followed by a make:
>
> 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
> console:~/opensource/bootcode/source asmith$
You omitted the full gcc invocation, but I suspect that you are not
actually using your powerpc-elf cross-compiler here. Could you verify
that?
-Hollis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
@ 2005-12-02 17:25 andre-smith
0 siblings, 0 replies; 9+ messages in thread
From: andre-smith @ 2005-12-02 17:25 UTC (permalink / raw)
To: The development of GRUB 2, The development of GRUB 2
My apologies, if I'm not doing this right. I set the path from my cross compiler; it points to powerpc-elf-gcc, powerpc-elf-ld, powerpc-elf-*. If I don't do this, configure actually fails since using the darwin version of these compiler tools produce binaries that can not link at absolute address 2000.
Andre
P.S. I can certainly post the complete results from the make; as soon as I get home.
> -----Original Message-----
> From: Hollis Blanchard [mailto:hollis@penguinppc.org]
> Sent: Friday, December 2, 2005 02:34 PM
> To: 'The development of GRUB 2'
> Subject: Re: Broken Build on Mac OS X
>
> On Dec 1, 2005, at 11:00 PM, Andre Smith wrote:
>
> > I would like to report a broken build on Mac OS X using cross compiler
> > powerpc-elf version 4.0.2 using binutils 2.16.1 and newlib 1.13.0. I
> > get the following error message after running configure
> > --host=powerpc-elf followed by a make:
> >
> > 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
> > console:~/opensource/bootcode/source asmith$
>
> You omitted the full gcc invocation, but I suspect that you are not
> actually using your powerpc-elf cross-compiler here. Could you verify
> that?
>
> -Hollis
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-02 14:34 ` Hollis Blanchard
@ 2005-12-03 4:56 ` Andre Smith
2005-12-03 13:00 ` Marco Gerards
0 siblings, 1 reply; 9+ messages in thread
From: Andre Smith @ 2005-12-03 4:56 UTC (permalink / raw)
To: The development of GRUB 2
Here is the full build process; it includes the setting of the PATH
to the cross compiler tools, the configure statement, and finally the
make:
console:~/opensource/bootcode/source asmith$ echo $PATH
/Users/asmith/opensource/crossgcc/bin:/bin:/sbin:/usr/bin:/usr/sbin
console:~/opensource/bootcode/source asmith$ grub2/configure --
host=powerpc-elf
configure: WARNING: If you wanted to set the --build type, don't use
--host.
If a cross compiler is detected then cross compile mode will be
used.
checking build system type... powerpc-apple-darwin8.3.0
checking host system type... powerpc-unknown-elf
checking for powerpc-elf-gcc... powerpc-elf-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-elf-gcc accepts -g... yes
checking for powerpc-elf-gcc option to accept ANSI C... none needed
checking for bison... bison -y
checking for bison -y... (cached) bison -y
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking whether optimization for size works... yes
checking if C symbols get an underscore after compilation... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for powerpc-elf-objcopy... powerpc-elf-objcopy
checking whether powerpc-elf-objcopy works for absolute addresses... yes
checking for powerpc-elf-strip... powerpc-elf-strip
checking for powerpc-elf-nm... powerpc-elf-nm
checking for powerpc-elf-ld... powerpc-elf-ld
checking for ruby... /usr/bin/ruby
checking for gcc... gcc
checking whether byte ordering is bigendian... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for void *... yes
checking size of void *... 4
checking for long... yes
checking size of long... 4
checking for wgetch in -lncurses... yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating stamp-h
config.status: creating config.h
config.status: config.h is unchanged
config.status: linking grub2/include/grub/powerpc to include/grub/cpu
config.status: linking grub2/include/grub/powerpc/ieee1275 to include/
grub/machine
console:~/opensource/bootcode/source asmith$ make
set -e; powerpc-elf-gcc -Icommands/ieee1275 -Igrub2/
commands/ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W -
Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -
Wstrict-prototypes -g -Os -ffreestanding -msoft-float -M grub2/
commands/ieee1275/suspend.c | sed 's,suspend\.o[ :]
*,suspend_mod-commands_ieee1275_suspend.o suspend_mod-
commands_ieee1275_suspend.d : ,g' > suspend_mod-
commands_ieee1275_suspend.d; [ -s suspend_mod-
commands_ieee1275_suspend.d ] || rm -f suspend_mod-
commands_ieee1275_suspend.d
In file included from grub2/commands/ieee1275/suspend.c:25:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Iloader/powerpc/ieee1275 -Igrub2/
loader/powerpc/ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -
W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef
-Wstrict-prototypes -g -Os -ffreestanding -msoft-float -M grub2/
loader/powerpc/ieee1275/linux.c | sed 's,linux\.o[ :]
*,_linux_mod-loader_powerpc_ieee1275_linux.o _linux_mod-
loader_powerpc_ieee1275_linux.d : ,g' > _linux_mod-
loader_powerpc_ieee1275_linux.d; [ -s _linux_mod-
loader_powerpc_ieee1275_linux.d ] || rm -f _linux_mod-
loader_powerpc_ieee1275_linux.d
In file included from grub2/loader/powerpc/ieee1275/linux.c:27:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -I. -Igrub2/. -I. -Iinclude -Igrub2/
include -Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissing-
prototypes -Wundef -Wstrict-prototypes -g -Os -
ffreestanding -msoft-float -M grubof_symlist.c | sed
's,grubof_symlist\.o[ :]*,grubof-grubof_symlist.o grubof-
grubof_symlist.d : ,g' > grubof-grubof_symlist.d; [ -s grubof-
grubof_symlist.d ] || rm -f grubof-grubof_symlist.d
In file included from grubof_symlist.c:44:
./grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Idisk/ieee1275 -Igrub2/disk/
ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W -Wshadow -
Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-
prototypes -g -Os -ffreestanding -msoft-float -M grub2/disk/ieee1275/
ofdisk.c | sed 's,ofdisk\.o[ :]*,grubof-disk_ieee1275_ofdisk.o
grubof-disk_ieee1275_ofdisk.d : ,g' > grubof-
disk_ieee1275_ofdisk.d; [ -s grubof-disk_ieee1275_ofdisk.d ] ||
rm -f grubof-disk_ieee1275_ofdisk.d
In file included from grub2/disk/ieee1275/ofdisk.c:24:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Ikern/powerpc/ieee1275 -Igrub2/
kern/powerpc/ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W
-Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -
Wstrict-prototypes -g -Os -ffreestanding -msoft-float -M grub2/kern/
powerpc/ieee1275/openfw.c | sed 's,openfw\.o[ :]*,grubof-
kern_powerpc_ieee1275_openfw.o grubof-
kern_powerpc_ieee1275_openfw.d : ,g' > grubof-
kern_powerpc_ieee1275_openfw.d; [ -s grubof-
kern_powerpc_ieee1275_openfw.d ] || rm -f grubof-
kern_powerpc_ieee1275_openfw.d
In file included from grub2/kern/powerpc/ieee1275/openfw.c:25:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Iterm/ieee1275 -Igrub2/term/
ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W -Wshadow -
Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-
prototypes -g -Os -ffreestanding -msoft-float -M grub2/term/ieee1275/
ofconsole.c | sed 's,ofconsole\.o[ :]*,grubof-
term_ieee1275_ofconsole.o grubof-term_ieee1275_ofconsole.d : ,g' >
grubof-term_ieee1275_ofconsole.d; [ -s grubof-
term_ieee1275_ofconsole.d ] || rm -f grubof-term_ieee1275_ofconsole.d
In file included from grub2/term/ieee1275/ofconsole.c:26:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Ikern/powerpc/ieee1275 -Igrub2/
kern/powerpc/ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W
-Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -
Wstrict-prototypes -g -Os -ffreestanding -msoft-float -M grub2/kern/
powerpc/ieee1275/init.c | sed 's,init\.o[ :]*,grubof-
kern_powerpc_ieee1275_init.o grubof-
kern_powerpc_ieee1275_init.d : ,g' > grubof-
kern_powerpc_ieee1275_init.d; [ -s grubof-
kern_powerpc_ieee1275_init.d ] || rm -f grubof-
kern_powerpc_ieee1275_init.d
In file included from grub2/kern/powerpc/ieee1275/init.c:35:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Ikern/ieee1275 -Igrub2/kern/
ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W -Wshadow -
Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-
prototypes -g -Os -ffreestanding -msoft-float -M grub2/kern/ieee1275/
ieee1275.c | sed 's,ieee1275\.o[ :]*,grubof-
kern_ieee1275_ieee1275.o grubof-kern_ieee1275_ieee1275.d : ,g' >
grubof-kern_ieee1275_ieee1275.d; [ -s grubof-
kern_ieee1275_ieee1275.d ] || rm -f grubof-kern_ieee1275_ieee1275.d
In file included from grub2/kern/ieee1275/ieee1275.c:21:
grub2/include/grub/ieee1275/ieee1275.h:24:20: error: stdint.h: No
such file or directory
set -e; powerpc-elf-gcc -Ikern/powerpc/ieee1275 -Igrub2/
kern/powerpc/ieee1275 -I. -Iinclude -Igrub2/include -Wall -W -Wall -W
-Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -
Wstrict-prototypes -g -Os -ffreestanding -msoft-float -M grub2/kern/
powerpc/ieee1275/cmain.c | sed 's,cmain\.o[ :]*,grubof-
kern_powerpc_ieee1275_cmain.o grubof-
kern_powerpc_ieee1275_cmain.d : ,g' > grubof-
kern_powerpc_ieee1275_cmain.d; [ -s grubof-
kern_powerpc_ieee1275_cmain.d ] || rm -f grubof-
kern_powerpc_ieee1275_cmain.d
grub2/kern/powerpc/ieee1275/cmain.c:22:20: error: stdint.h: No such
file or directory
set -e; gcc -Iutil -Igrub2/util -I. -Iinclude -Igrub2/
include -Wall -W -DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-
ieee1275\" -g -O2 -DGRUB_UTIL=1 -M grub2/util/misc.c | sed
's,misc\.o[ :]*,grub_emu-util_misc.o grub_emu-util_misc.d : ,g' >
grub_emu-util_misc.d; [ -s grub_emu-util_misc.d ] || rm -f
grub_emu-util_misc.d
grub2/util/misc.c:27:20: error: malloc.h: No such file or directory
set -e; gcc -Iutil -Igrub2/util -I. -Iinclude -Igrub2/
include -Wall -W -DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-
ieee1275\" -g -O2 -DGRUB_UTIL=1 -M grub2/util/grub-emu.c |
sed 's,grub\-emu\.o[ :]*,grub_emu-util_grub_emu.o grub_emu-
util_grub_emu.d : ,g' > grub_emu-util_grub_emu.d; [ -s
grub_emu-util_grub_emu.d ] || rm -f grub_emu-util_grub_emu.d
grub2/util/grub-emu.c:21:20: error: malloc.h: No such file or directory
grub2/util/grub-emu.c:23:18: error: argp.h: No such file or directory
set -e; gcc -Iutil -Igrub2/util -I. -Iinclude -Igrub2/
include -Wall -W -DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-
ieee1275\" -g -O2 -DGRUB_UTIL=1 -M grub2/util/misc.c | sed
's,misc\.o[ :]*,grub_mkimage-util_misc.o grub_mkimage-
util_misc.d : ,g' > grub_mkimage-util_misc.d; [ -s grub_mkimage-
util_misc.d ] || rm -f grub_mkimage-util_misc.d
grub2/util/misc.c:27:20: error: malloc.h: No such file or directory
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
On Dec 2, 2005, at 9:34 AM, Hollis Blanchard wrote:
> On Dec 1, 2005, at 11:00 PM, Andre Smith wrote:
>
>> I would like to report a broken build on Mac OS X using cross
>> compiler powerpc-elf version 4.0.2 using binutils 2.16.1 and
>> newlib 1.13.0. I get the following error message after running
>> configure --host=powerpc-elf followed by a make:
>>
>> 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
>> console:~/opensource/bootcode/source asmith$
>
> You omitted the full gcc invocation, but I suspect that you are not
> actually using your powerpc-elf cross-compiler here. Could you
> verify that?
>
> -Hollis
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-03 4:56 ` Andre Smith
@ 2005-12-03 13:00 ` Marco Gerards
2005-12-03 17:30 ` Andre Smith
0 siblings, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2005-12-03 13:00 UTC (permalink / raw)
To: The development of GRUB 2
Andre Smith <andre-smith@speakeasy.net> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-03 13:00 ` Marco Gerards
@ 2005-12-03 17:30 ` Andre Smith
2005-12-04 2:05 ` Andrei Warkentin
0 siblings, 1 reply; 9+ messages in thread
From: Andre Smith @ 2005-12-03 17:30 UTC (permalink / raw)
To: The development of GRUB 2
Thank you for that information Marco. I will get on the gcc mailing
list to see if there is a known process for re-enabling nested
functions. I swear that really bites, and I wish Apple used some sort
of flag to disable that feature. If I find out something positive,
I'll report back to GRUB2 list.
Andre
On Dec 3, 2005, at 8:00 AM, Marco Gerards wrote:
> Andre Smith <andre-smith@speakeasy.net> 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
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-03 17:30 ` Andre Smith
@ 2005-12-04 2:05 ` Andrei Warkentin
2005-12-04 2:49 ` Andre Smith
0 siblings, 1 reply; 9+ messages in thread
From: Andrei Warkentin @ 2005-12-04 2:05 UTC (permalink / raw)
To: The development of GRUB 2
Hello,
I would suggest building a bootstrap gcc powerpc crosscompiler and
binutils, where the the host is your OS X system and the target is
powerpc-linux. This will allow you to build PowerPC ELF objects,
which you can then boot with OF. It is my understanding that the
GRUB2 PowerPC build pretty much assumes ELF. OpenFirmware is now
capable of running Mach-O executables, but I have never tried that.
Here is the configure
command I passed to configure GCC4 prior to compiling -
../gcc-4.0.2/configure --target=powerpc-linux
--prefix=/Users/andreywarkentin/crossdev/powerpc-linux --disable-
shared --disable-threads
--enable-languages=c,c++ --with-newlib
On Dec 3, 2005, at 11:30 AM, Andre Smith wrote:
> Thank you for that information Marco. I will get on the gcc mailing
> list to see if there is a known process for re-enabling nested
> functions. I swear that really bites, and I wish Apple used some
> sort of flag to disable that feature. If I find out something
> positive, I'll report back to GRUB2 list.
>
> Andre
>
>
> On Dec 3, 2005, at 8:00 AM, Marco Gerards wrote:
>
>> Andre Smith <andre-smith@speakeasy.net> 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
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-04 2:05 ` Andrei Warkentin
@ 2005-12-04 2:49 ` Andre Smith
2005-12-04 3:13 ` Andrei Warkentin
0 siblings, 1 reply; 9+ messages in thread
From: Andre Smith @ 2005-12-04 2:49 UTC (permalink / raw)
To: The development of GRUB 2
Thanks Much! I will build that tool chain and rebuild GRUB2.
On Dec 3, 2005, at 9:05 PM, Andrei Warkentin wrote:
> Hello,
>
> I would suggest building a bootstrap gcc powerpc crosscompiler and
> binutils, where the the host is your OS X system and the target is
> powerpc-linux. This will allow you to build PowerPC ELF objects,
> which you can then boot with OF. It is my understanding that the
> GRUB2 PowerPC build pretty much assumes ELF. OpenFirmware is now
> capable of running Mach-O executables, but I have never tried that.
>
> Here is the configure
> command I passed to configure GCC4 prior to compiling -
>
> ../gcc-4.0.2/configure --target=powerpc-linux
> --prefix=/Users/andreywarkentin/crossdev/powerpc-linux --disable-
> shared --disable-threads
> --enable-languages=c,c++ --with-newlib
>
>
> On Dec 3, 2005, at 11:30 AM, Andre Smith wrote:
>
>> Thank you for that information Marco. I will get on the gcc
>> mailing list to see if there is a known process for re-enabling
>> nested functions. I swear that really bites, and I wish Apple used
>> some sort of flag to disable that feature. If I find out something
>> positive, I'll report back to GRUB2 list.
>>
>> Andre
>>
>>
>> On Dec 3, 2005, at 8:00 AM, Marco Gerards wrote:
>>
>>> Andre Smith <andre-smith@speakeasy.net> 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
>>>
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> Grub-devel@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>>
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Broken Build on Mac OS X
2005-12-04 2:49 ` Andre Smith
@ 2005-12-04 3:13 ` Andrei Warkentin
0 siblings, 0 replies; 9+ messages in thread
From: Andrei Warkentin @ 2005-12-04 3:13 UTC (permalink / raw)
To: The development of GRUB 2
Hello,
I should add a 'caveat emptor'. I've never built GRUB2 on OS X
before, and, although I do not anticipate issues with the method I
mentioned in my previous email, I am not guaranteeing success either.
I've built my kernel both on Linux and OS X this way though, and I
had no issues. My understanding is that you will have to somehow
convince the GRUB2 build to use your gcc versus the system one.
Have a good day.
On Dec 3, 2005, at 8:49 PM, Andre Smith wrote:
> Thanks Much! I will build that tool chain and rebuild GRUB2.
>
>
> On Dec 3, 2005, at 9:05 PM, Andrei Warkentin wrote:
>
>> Hello,
>>
>> I would suggest building a bootstrap gcc powerpc crosscompiler and
>> binutils, where the the host is your OS X system and the target is
>> powerpc-linux. This will allow you to build PowerPC ELF objects,
>> which you can then boot with OF. It is my understanding that the
>> GRUB2 PowerPC build pretty much assumes ELF. OpenFirmware is now
>> capable of running Mach-O executables, but I have never tried that.
>>
>> Here is the configure
>> command I passed to configure GCC4 prior to compiling -
>>
>> ../gcc-4.0.2/configure --target=powerpc-linux
>> --prefix=/Users/andreywarkentin/crossdev/powerpc-linux --disable-
>> shared --disable-threads
>> --enable-languages=c,c++ --with-newlib
>>
>>
>> On Dec 3, 2005, at 11:30 AM, Andre Smith wrote:
>>
>>> Thank you for that information Marco. I will get on the gcc
>>> mailing list to see if there is a known process for re-enabling
>>> nested functions. I swear that really bites, and I wish Apple
>>> used some sort of flag to disable that feature. If I find out
>>> something positive, I'll report back to GRUB2 list.
>>>
>>> Andre
>>>
>>>
>>> On Dec 3, 2005, at 8:00 AM, Marco Gerards wrote:
>>>
>>>> Andre Smith <andre-smith@speakeasy.net> 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
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Grub-devel mailing list
>>>> Grub-devel@gnu.org
>>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> Grub-devel@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-12-04 3:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-02 5:00 Broken Build on Mac OS X Andre Smith
2005-12-02 14:34 ` Hollis Blanchard
2005-12-03 4:56 ` Andre Smith
2005-12-03 13:00 ` Marco Gerards
2005-12-03 17:30 ` Andre Smith
2005-12-04 2:05 ` Andrei Warkentin
2005-12-04 2:49 ` Andre Smith
2005-12-04 3:13 ` Andrei Warkentin
-- strict thread matches above, loose matches on Subject: below --
2005-12-02 17:25 andre-smith
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.