i386-unixware-elf-ar:找不到命令

时间:2019-03-29 06:12:51

标签: gcc

我目前正在尝试在我的Ubunt机器上遵循those couple of steps来编译gcc的源代码。唯一的区别是我接受了官方gcc code from github,但没有做任何事情。 最终目标是能够在另一台32位x86并运行Unix变体的计算机上运行gcc。

使用gcc提供的配置脚本生成makefile效果很好。 但是,在尝试构建时出现以下错误:/bin/bash: i386-unixware-elf-ar: command not found,这使我的构建失败:

$../gcc-master/configure -v --build=x86_64-linux-gnu --host=i386-unixware-elf --target=i386-unixware-elf --prefix=/usr/local/gccPort     --enable-checking=release --enable-languages=c,c++ --disable-multilib --program-suffix=-Port
...
$make -j

...
mkdir -p -- .deps
rm -f libdecnumber.a
i386-unixware-elf-ar cru libdecnumber.a decNumber.o decContext.o decimal32.o decimal64.o decimal128.o 
/bin/bash: i386-unixware-elf-ar: command not found
Makefile:88: recipe for target 'libdecnumber.a' failed
make[2]: *** [libdecnumber.a] Error 127
make[2]: Leaving directory '/home/John/Desktop/gdbport/gccbuild/libdecnumber'
Makefile:8666: recipe for target 'all-libdecnumber' failed
make[1]: *** [all-libdecnumber] Error 2
yes
checking for strtod... yes

...

config.status: linking ../../gcc-master/gmp/mpn/generic/gmp-mparam.h to gmp-mparam.h
config.status: executing libtool commands
configure: summary of build options:

  Version:           GNU MP 6.1.0
  Host type:         none-unixware-elf
  ABI:               standard
  Install prefix:    /usr/local/gccPort
  Compiler:          gcc
  Static libraries:  yes
  Shared libraries:  no

make[1]: Leaving directory '/home/John/Desktop/gdbport/gccbuild'
Makefile:948: recipe for target 'all' failed
make: *** [all] Error 2

我尝试按如下方式将参数更改为配置脚本(删除主机和目标中的elf):

$../gcc-master/configure -v --build=x86_64-linux-gnu --host=i386-unixware --target=i386-unixware
--prefix=/usr/local/gccPort     --enable-checking=release --enable-languages=c,c++ 

-disable-multilib --program-suffix = -Port

但是那几乎给出了相同的错误:/ bin / bash:i386-unixware-ar:找不到命令

有人可以解释这个问题吗?

0 个答案:

没有答案