Je souhaite effectuer une compilation croisée de GCC. J'utilise MSYS2 comme shell, et mingw-w64 comme compilateur.La génération de binutils échoue à cause du fichier pex-unix
J'ai téléchargé Binutils-2.25 et je configurer avec:
../binutils/./configure --target=sh3eb-elf --prefix=C:/tempinstall/ --disable-nls
Je reçois une erreur lorsque je tente de construire binutils
sur fichier libiberty/pex-unix
:
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)
J'ai construit le même compilateur quelques il y a des mois sans problèmes. Mais j'ai changé depuis OS (Windows 7 à W10) et le compilateur (MinGW-GCC 4.8 à Mingw64-GCC 4.9)
Je suivais this tutorial
Je trouve une ligne étrange sur libiberty/config.log 'pexecute =" pex-unix "'. Peut-être configurer ne pas détecter Windows 10. Pensez-vous que c'est possible? – Intelligide