我尝试根据本教程交叉编译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**
在make我得到这些是终端中的最后几行之后:
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