我尝试根据this教程交叉编译 GCC 4.7.1 。唯一的区别是,我设置为目标架构 arm-elf ,因为我想编译一些 fortran 代码,以便在我们的 iOS 中使用它应用。但编译不起作用。有没有人有任何建议?
../configure --prefix=/usr/gcc-4.7.1 --enable-checking=release --with-gmp=/usr/gcc-4.7.1 --with-mpfr=/usr/gcc-4.7.1 --with-mpc=/usr/gcc-4.7.1 --with-ppl=/usr/gcc-4.7.1 --with-cloog=/usr/gcc-4.7.1 --enable-languages=c,c++,fortran --program-suffix=-4.7 **--target=arm-elf**
在制作之后,我得到这些是终端中的最后一行:
checking for arm-elf-gcc... /Users/xyz/Downloads/gcc-4.7.2/build/./gcc/xgcc -B/Users/xyz/Downloads/gcc-4.7.2/build/./gcc/ -B/usr/gcc-4.7.1/arm-elf/bin/ -B/usr/gcc-4.7.1/arm-elf/lib/ -isystem /usr/gcc-4.7.1/arm-elf/include -isystem /usr/gcc-4.7.1/arm-elf/sys-include
checking for suffix of object files... configure: error: in `/Users/xyz/Downloads/gcc-4.7.2/build/arm-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile