[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken Build on Mac OS X
From: |
Andre Smith |
Subject: |
Re: Broken Build on Mac OS X |
Date: |
Fri, 2 Dec 2005 23:56:21 -0500 |
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
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel
- Broken Build on Mac OS X, Andre Smith, 2005/12/01
- Re: Broken Build on Mac OS X, Hollis Blanchard, 2005/12/02
- Re: Broken Build on Mac OS X,
Andre Smith <=
- Re: Broken Build on Mac OS X, Marco Gerards, 2005/12/03
- Re: Broken Build on Mac OS X, Andre Smith, 2005/12/03
- Re: Broken Build on Mac OS X, Andrei Warkentin, 2005/12/03
- Re: Broken Build on Mac OS X, Andre Smith, 2005/12/03
- Re: Broken Build on Mac OS X, Andrei Warkentin, 2005/12/03