New issue
Advanced search Search tips

Issue 618729 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

~/trunk/src/scripts/setup_board gives unhelpful error for unknown board

Project Member Reported by wyszynski@google.com, Jun 9 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Steps to reproduce the problem:
Try to run:

$ ./setup_board --board=veyron_minnie_cheets

within chroot. 

I get the following:

ERROR   :   Command 'cros_sysroot_utils generate-config --sysroot="${BOARD_ROOT}" --board="${FLAGS_board}" --out-file="${BOARD_SETUP}"' exited with nonzero code: 1

Among other things (python stack trace etc.)

What is the expected behavior?
Would be nice if the script recognized that the board doesn't exist (should be veyron_minnie-cheets instead of veyron_minnie_cheets)

What went wrong?
Bad error message, see above.

Did this work before? N/A 

Chrome version:   Channel: stable
OS Version: 
Flash Version:
 
Cc: semenzato@chromium.org
Components: Build
Labels: -Pri-2 Pri-3

Comment 2 Deleted

Status: Available (was: Unconfirmed)
Actually the error message is in there, but it's buried in the middle.  Can we do better?


(cr) ((7fbc313...)) semenzato@luigi ~/trunk/src/scripts $ ./setup_board --board=cyan_cheets
INFO    : Elapsed time (run_chroot_version_hooks): 0m0s
INFO    : Updating chroot
INFO    : Clearing shadow utils lockfiles under /
INFO    : Updating cross-compilers
Determining required toolchain updates...
Nothing to update!
INFO    : Updating the SDK

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.

Local copy of remote index is up-to-date and will be used.
Starting fast-emerge.
 Building package virtual/target-sdk world on root
Calculating deps...
Deps calculated in 0m36.3s

Total: 0 packages, Size of downloads: 0 KiB
Done
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
INFO    : Elapsed time (update_chroot): 0m45s
cros_sysroot_utils: Unhandled exception:
Traceback (most recent call last):
  File "/mnt/host/source/chromite/bin/cros_sysroot_utils", line 164, in <module>
    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_sysroot_utils.py", line 85, in main
    config = sysroot.GenerateBoardConfig(opts.board)
  File "/mnt/host/source/chromite/lib/sysroot_lib.py", line 308, in GenerateBoardConfig
    toolchains = toolchain.GetToolchainsForBoard(board)
  File "/mnt/host/source/chromite/lib/toolchain.py", line 59, in GetToolchainsForBoard
    buildroot=buildroot)
  File "/mnt/host/source/chromite/lib/portage_util.py", line 187, in FindOverlays
    overlays = _ListOverlays(board=board, buildroot=buildroot)
  File "/mnt/host/source/chromite/lib/portage_util.py", line 169, in _ListOverlays
    raise MissingOverlayException('board overlay not found: %s' % board)
chromite.lib.portage_util.MissingOverlayException: board overlay not found: cyan_cheets
cros_sysroot_utils: Unhandled exception:
Traceback (most recent call last):
  File "/mnt/host/source/chromite/bin/cros_sysroot_utils", line 164, in <module>
    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_sysroot_utils.py", line 74, in main
    cros_build_lib.SudoRunCommand(sys.argv, print_cmd=False)
  File "/mnt/host/source/chromite/lib/cros_build_lib.py", line 301, in SudoRunCommand
    return RunCommand(sudo_cmd, **kwargs)
  File "/mnt/host/source/chromite/lib/cros_build_lib.py", line 619, in RunCommand
    raise RunCommandError(msg, cmd_result)
chromite.lib.cros_build_lib.RunCommandError: return code: 1; command: sudo -- /mnt/host/source/chromite/bin/cros_sysroot_utils generate-config '--sysroot=/build/cyan_cheets' '--board=cyan_cheets' '--out-file=/build/cyan_cheets/etc/make.conf.board_setup'
cwd=None
ERROR   : Fri Jun 17 13:37:09 PDT 2016
ERROR   :  PGID  PPID   PID     ELAPSED     TIME %CPU COMMAND
ERROR   :    12     6    12  2-22:32:14 00:00:00  0.0 -bash
ERROR   :  7321    12  7321       00:50 00:00:00  0.1  \_ /bin/bash ./setup_board --board=cyan_cheets
ERROR   :  7321  7321  9329       00:00 00:00:00  0.0      \_ /bin/bash ./setup_board --board=cyan_cheets
ERROR   :  7321  9329  9330       00:00 00:00:00  0.0          \_ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR   : Arguments of 7321: ./setup_board '--board=cyan_cheets'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :  setup_board:189:main(), called: die_err_trap  
ERROR   : 
ERROR   : Command failed:
ERROR   :   Command 'cros_sysroot_utils generate-config --sysroot="${BOARD_ROOT}" --board="${FLAGS_board}" --out-file="${BOARD_SETUP}"' exited with nonzero code: 1



Comment 4 Deleted

Components: -Build Infra>Client>ChromeOS>Build
Labels: Hotlist-GoodFirstBug
Status: Available (was: Untriaged)

Sign in to add a comment