I want to cross-compile GCC. I am using MSYS2 as a shell, and mingw-w64 as the compiler.

I have downloaded binutils-2.25 and I configure with:

```
../binutils/./configure --target=sh3eb-elf --prefix=C:/tempinstall/ --disable-nls

```

I get an error when I try to build `binutils` on `libiberty/pex-unix` file:

> 
> In function 'pex\_wait':
> error: 'F\_GETFD' undeclared (first use in this function)
> error: 'FD\_CLOEXEC' undeclared (first use in this function)
> error: 'F\_SETFD' undeclared (first use in this function)
> error: 'F\_DUPFD' undeclared (first use in this function)
> 
> 
> In function 'restore\_fd':
> error: 'FD\_CLOEXEC' undeclared (first use in this function)
> error: 'F\_SETFD' undeclared (first use in this function)
> 
> 
> In function 'pex\_unix\_fdopenw':
> error: 'F\_SETFD' undeclared (first use in this function)
> error: 'FD\_CLOEXEC' undeclared (first use in this function)
> 
> 
> 

I have built the same compiler few months ago without problems. But I have since changed OS(Windows 7 to W10) and compiler(MinGW-GCC 4.8 to Mingw64-GCC 4.9)

I followed [this tutorial](http://prizm.cemetech.net/index.php?title=PrizmSDK_Setup_Guide#Other_Distributions)