I'm trying to get a cross-compiler working on a Windows 7 host with Cygwin.
I have downloaded binutils into Cygwin's /usr/src directory, and then I ran in BASH:
Code: Select all
echo "============PREPARATION============"
export PREFIX=/usr/local/cross
export TARGET=i586-elf
cd /usr/src
cd /cygdrive/c/dev/cygwin/usr/src
mkdir build-binutils
mkdir build-gcc
echo "============BINUTILS============"
cd /usr/src/build-binutils
../binutils-2.20.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls
make all
make install
The first sign of major trouble is line 752, which reads "../../binutils-2.20.1/libiberty/pex-unix.c:547: error: 'F_SETFD' undeclared (first use in this function)". It continues onward and then fails completely.
After some searches, I guessed that the problem was the binutils version. I have also tried 2.23.1, the latest, but the same problem occurs with similar output.
Thanks,