New issue
Advanced search Search tips

Issue 673237 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 13
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

setup_board fails without an interactive console

Project Member Reported by uekawa@chromium.org, Dec 12 2016

Issue description

Hi,

I am using emacs shell which is not an interactive console, and cros_setup_toolchains fails starting unless it has access to interactive console (pty?)



~/trunk/src/scripts $ ./setup_board --board=veyron_minnie-cheets --force
INFO    : Elapsed time (run_chroot_version_hooks): 0m0s
INFO    : Updating chroot
INFO    : Clearing shadow utils lockfiles under /
INFO    : Updating cross-compilers
15:55:32: INFO: The following targets need to be re-initialized:
15:55:32: INFO: {'armv7a-cros-linux-gnueabi': {'default': True, 'crossdev': '', 'sdk': True}}
cros_setup_toolchains: Unhandled exception:
Traceback (most recent call last):
  File "/mnt/host/source/chromite/bin/cros_setup_toolchains", line 168, in <module>
    DoMain()
  File "/mnt/host/source/chromite/bin/cros_setup_toolchains", line 164, in DoMain
    commandline.ScriptWrapperMain(FindTarget)
  File "/mnt/host/source/chromite/lib/commandline.py", line 834, in ScriptWrapperMain
    ret = target(argv[1:])
  File "/mnt/host/source/chromite/scripts/cros_setup_toolchains.py", line 1200, in main
    root=root)
  File "/mnt/host/source/chromite/scripts/cros_setup_toolchains.py", line 653, in UpdateToolchains
    Crossdev.UpdateTargets(crossdev_targets, usepkg)
  File "/mnt/host/source/chromite/scripts/cros_setup_toolchains.py", line 174, in UpdateTargets
    for pkg in GetTargetPackages(target):
  File "/mnt/host/source/chromite/scripts/cros_setup_toolchains.py", line 232, in GetTargetPackages
    conf = Crossdev.GetConfig(target)
  File "/mnt/host/source/chromite/scripts/cros_setup_toolchains.py", line 128, in GetConfig
    redirect_stdout=True).output.splitlines()
  File "/mnt/host/source/chromite/lib/cros_build_lib.py", line 625, in RunCommand
    raise RunCommandError(msg, cmd_result)
chromite.lib.cros_build_lib.RunCommandError: return code: 1; command: crossdev --show-target-cfg --ex-gdb --ex-pkg dev-lang/go -t armv7a-cros-linux-gnueabi
cmd=['crossdev', '--show-target-cfg', '--ex-gdb', '--ex-pkg', 'dev-lang/go', '-t', 'armv7a-cros-linux-gnueabi']
ERROR   : Mon Dec 12 15:55:32 JST 2016
ERROR   :  PGID  PPID   PID     ELAPSED     TIME %CPU COMMAND
ERROR   :    10     6    10       21:24 00:00:00  0.0 -bash
ERROR   :  6292    10  6292       00:02 00:00:00  5.0  \_ /bin/bash ./setup_board --board=veyron_minnie-cheets --force
ERROR   :  6292  6292  6514       00:02 00:00:00  3.0      \_ /bin/bash /mnt/host/source/src/scripts/update_chroot --toolchain_boards=veyron --usepkg
ERROR   :  6292  6514  6805       00:00 00:00:00  0.0          \_ /bin/bash /mnt/host/source/src/scripts/update_chroot --toolchain_boards=veyron --usepkg
ERROR   :  6292  6805  6806       00:00 00:00:00  0.0              \_ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR   : Arguments of 6514:  '--toolchain_boards=veyron' '--usepkg'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :  update_chroot:83:main(), called: die_err_trap  
ERROR   : 
ERROR   : Command failed:
ERROR   :   Command 'sudo -E $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}"' exited with nonzero code: 1
ERROR   : Mon Dec 12 15:55:32 JST 2016
ERROR   :  PGID  PPID   PID     ELAPSED     TIME %CPU COMMAND
ERROR   :    10     6    10       21:25 00:00:00  0.0 -bash
ERROR   :  6292    10  6292       00:03 00:00:00  3.3  \_ /bin/bash ./setup_board --board=veyron_minnie-cheets --force
ERROR   :  6292  6292  6819       00:01 00:00:00  0.0      \_ /bin/bash ./setup_board --board=veyron_minnie-cheets --force
ERROR   :  6292  6819  6820       00:01 00:00:00  0.0          \_ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR   : Arguments of 6292: ./setup_board '--board=veyron_minnie-cheets' '--force'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :  setup_board:108: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)
 

Comment 1 by vapier@chromium.org, Jun 13 2018

Components: Infra>Client>ChromeOS>Build
Labels: OS-Chrome
is this still an issue ?
Status: Archived (was: Untriaged)

Sign in to add a comment