Problems with Cygwin Cross-Compiler
Posted: Fri Sep 10, 2010 4:41 am
Hello, today i tried to create a Cygwin cross-compiler following the instructions on GCC Cross-Compiler.
I downloaded binutils and put it in /usr/src/binutils-2.9.1, ran all the cmds on the wiki, but at:
gave me an error:
How can i solve this? I use Windows XP SP3, if can help
I downloaded binutils and put it in /usr/src/binutils-2.9.1, ran all the cmds on the wiki, but at:
Code: Select all
cd /usr/src/build-binutils
../binutils-2.9.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls
make all <--
Code: Select all
make[1]: Entering directory `/usr/src/build-binutils/libiberty'
if [ -n "" ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
echo "# !Automatically generated from ../../binutils-2.9.1/libiberty/functions.d
ef"\
"- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ../../binutils-2.9.1/libiberty/functions.def \
| sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\
n#define NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
grep '^DEFFUNC(' < ../../binutils-2.9.1/libiberty/functions.def \
| sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1
\\n#define NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
gcc -c -g -O2 -I. -I../../binutils-2.9.1/libiberty/../include -DNEED_sys_siglist
-DNEED_basename -DNEED_strsignal ../../binutils-2.9.1/libiberty/dummy.c 2>/dev/
null
make[1]: *** [dummy.o] Error 1
make[1]: Leaving directory `/usr/src/build-binutils/libiberty'
make: *** [all-libiberty] Error 2
How can i solve this? I use Windows XP SP3, if can help