小编Sta*_*wan的帖子

为什么会出现“arm-linux-gcc:未找到”这样的错误?

为了构建我的主板的 u-boot,我遵循了以下两个命令:

$ sudo make nanopi_h3_defconfig ARCH=arm CROSS_COMPILE=arm-linux-
$ sudo make ARCH=arm CROSS_COMPILE=arm-linux-
Run Code Online (Sandbox Code Playgroud)

我从第一个命令得到结果:配置写入.config 这意味着成功。但从第二个命令得到以下内容:

make: arm-linux-gcc: No such file or directory
/bin/sh: 1: arm-linux-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf  --silentoldconfig Kconfig
./scripts/binutils-version.sh: line 18: arm-linux-as: command not found
  CHK     include/config.h
  CFG     u-boot.cfg
/bin/sh: 1: arm-linux-gcc: not found
make[1]: *** [scripts/Makefile.autoconf:79: u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
Run Code Online (Sandbox Code Playgroud)

似乎来自arm-linux-gcc的麻烦,但我运行了命令“arm-linux-gcc”,它有效。那么,为什么第一个命令可以通过arm-linux-gcc,而第二个命令却失败了呢?

gnu-make

-1
推荐指数
1
解决办法
35
查看次数

标签 统计

gnu-make ×1