构建Chromium失败(ensure_bootstrap:未找到命令)

时间:2018-12-05 03:18:25

标签: chromium-os

我试图获取chromos的源代码,并希望构建chromeos。

export BOARD=coral
./setup_board --board=${BOARD} --force
./build_packages --board=${BOARD}

但是在命令完成后,我收到一些错误消息,并且我也尝试更新depot_tools,但是似乎受到权限拒绝的限制...我该如何解决? 谢谢!

----消息

(cr) ((8c78090...)) ft@ft-Swift-SF315-51 ~/trunk/src/scripts $ ./setup_board --board=${BOARD} --force
INFO    : Updating chroot
INFO    : Clearing shadow utils lockfiles under /
INFO    : Updating cross-compilers
10:34:40: INFO: Determining required toolchain updates...
10:34:41: INFO: Nothing to update!
INFO    : Bootstrapping depot_tools
/mnt/host/source/src/scripts/update_chroot: line 90: ensure_bootstrap: command not found
ERROR   :    5 10:34:41 CST 2018
ERROR   :  PGID  PPID   PID     ELAPSED     TIME %CPU COMMAND
ERROR   :     8     4     8  1-20:51:43 00:00:00  0.0 -bash
ERROR   : 27470     8 27470       00:01 00:00:00  4.0  \_ /bin/bash ./setup_board --board=coral --force
ERROR   : 27470 27470 27656       00:01 00:00:00  2.0      \_ /bin/bash /mnt/host/source/src/scripts/update_chroot --toolchain_boards=coral --usepkg
ERROR   : 27470 27656 27786       00:00 00:00:00  0.0          \_ /bin/bash /mnt/host/source/src/scripts/update_chroot --toolchain_boards=coral --usepkg
ERROR   : 27470 27786 27787       00:00 00:00:00  0.0              \_ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR   : Arguments of 27656:  '--toolchain_boards=coral' '--usepkg'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :  update_chroot:90:main(), called: die_err_trap  
ERROR   : 
ERROR   : Command failed:
ERROR   :   Command 'ensure_bootstrap' exited with nonzero code: 127
ERROR   :    5 10:34:41 CST 2018
ERROR   :  PGID  PPID   PID     ELAPSED     TIME %CPU COMMAND
ERROR   :     8     4     8  1-20:51:43 00:00:00  0.0 -bash
ERROR   : 27470     8 27470       00:01 00:00:00  4.0  \_ /bin/bash ./setup_board --board=coral --force
ERROR   : 27470 27470 27800       00:00 00:00:00  0.0      \_ /bin/bash ./setup_board --board=coral --force
ERROR   : 27470 27800 27801       00:00 00:00:00  0.0          \_ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR   : Arguments of 27470: ./setup_board '--board=coral' '--force'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :  setup_board:93:main(), called: die_err_trap  
ERROR   : 
ERROR   : Command failed:
ERROR   :   Command '"${SRC_ROOT}/scripts"/update_chroot ${UPDATE_ARGS}' exited with nonzero code: 1
ERROR   :   (Note bash sometimes misreports "command not found" as exit code 1 instead of 127)

1 个答案:

答案 0 :(得分:0)

您需要始终确保depot_tools处于$ PATH中,包括使用Pandas输入sdk之前

一旦在SDK中,depot_tools就会安装在cros_sdk上,该位置也应该在您的$ PATH中