Further GCC Cross compiler errors
Posted: Sun Sep 09, 2012 5:47 am
I, too, am having difficulties building a cross-compiler.
I've followed the article in the wiki to the letter, but when I try to compile binutils, I get these errors:
I'm building this using Cygwin, on a 32-bit Windows 7 machine.
I've followed the article in the wiki to the letter, but when I try to compile binutils, I get these errors:
Code: Select all
cp ../../binutils-2.22/ld/emultempl/astring.sed stringify.sed
LIB_PATH='' /bin/sh ../../binutils-2.22/ld/genscripts.sh "../../binutils-2.22/ld
" "/usr/local/cross/lib" "/usr/local/cross" "/usr/local/cross" i686-pc-cygwin i5
86-pc-elf i586-elf "elf_i386" "/usr/local/lib /lib /usr/lib" no no elf_i386 "i58
6-elf"
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
sed: kan bestand stringify.sed niet openen: Permission denied
source='eelf_i386.c' object='eelf_i386.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../binutils-2.22/ld/../depcomp \
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.22/ld -I. -I../../binutils-2.22/ld -
I../bfd -I../../binutils-2.22/ld/../bfd -I../../binutils-2.22/ld/../include -g
-O2 -DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/cross/share/locale\"" -W -Wal
l -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c eelf_i386.c
../../binutils-2.22/ld/emultempl/elf32.em: In function `gldelf_i386_get_script':
../../binutils-2.22/ld/emultempl/elf32.em:1995: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:1996: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:1997: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:1998: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2001: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2002: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2003: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2006: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2007: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2008: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2010: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2011: let op: `return' with no value,in function returning non-void
../../binutils-2.22/ld/emultempl/elf32.em:2012: let op: `return' with no value,in function returning non-void
Makefile:1419: recipe for target `eelf_i386.o' failed
make[4]: *** [eelf_i386.o] Error 1
make[4]: Map '/usr/src/build-binutils/ld' wordt verlaten
Makefile:1642: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Map '/usr/src/build-binutils/ld' wordt verlaten
Makefile:910: recipe for target `all' failed
make[2]: *** [all] Error 2
make[2]: Map '/usr/src/build-binutils/ld' wordt verlaten
Makefile:7015: recipe for target `all-ld' failed
make[1]: *** [all-ld] Error 2
make[1]: Map '/usr/src/build-binutils' wordt verlaten
Makefile:842: recipe for target `all' failed
make: *** [all] Error 2