[Android Software Development] AndyFox2011:
I've extracted the toolchain, put it in my bashrc, cloned my kernel config, pulled the config.gz and extracted that using gzip -dc

but i get this error when running spade_defconfig (spade is the board in Desire HD)

$ make spade_defconfig
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: 'ldflags()
/home/Andrew/android/kernel/scripts/kconfig/check.sh: line 15: syntax error: unexpected end of file
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: 'ldflags()
/home/Andrew/android/kernel/scripts/kconfig/check.sh: line 15: syntax error: unexpected end of file
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: 'ldflags()
/home/Andrew/android/kernel/scripts/kconfig/check.sh: line 15: syntax error: unexpected end of file
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
/home/Andrew/android/kernel/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: 'ldflags()
/home/Andrew/android/kernel/scripts/kconfig/check.sh: line 15: syntax error: unexpected end of file
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf.o:conf.c:(.text+0x148): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x1d6): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x1ea): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x1fe): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x23e): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x6a2): more undefined references to `_libintl_gettext' follow
scripts/kconfig/conf.o:conf.c:(.text+0xeb4): undefined reference to `_libintl_setlocale'
scripts/kconfig/conf.o:conf.c:(.text+0xec9): undefined reference to `_libintl_bindtextdomain'
scripts/kconfig/conf.o:conf.c:(.text+0xed5): undefined reference to `_libintl_textdomain'
scripts/kconfig/conf.o:conf.c:(.text+0xf5d): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x10c9): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x1112): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x11d5): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x1275): undefined reference to `_libintl_gettext'
scripts/kconfig/conf.o:conf.c:(.text+0x13a6): more undefined references to `_libintl_gettext' follow
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: scripts/kconfig/conf.o: bad reloc address 0x20 in section `.data'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
scripts/Makefile.host:127: recipe for target `scripts/kconfig/conf' failed
make[1]: *** [scripts/kconfig/conf] Error 1
Makefile:500: recipe for target `spade_defconfig' failed
make: *** [spade_defconfig] Error 2

Edit: I know what I did wrong...