Bug 14022 - Traceback when hosttool is missing on Ubuntu 20 with latest master changes
Summary: Traceback when hosttool is missing on Ubuntu 20 with latest master changes
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 3.2
Hardware: x86 Multiple
: High normal
Target Milestone: 3.2 M3
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-08-25 12:59 UTC by akuster
Modified: 2020-09-02 09:21 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description akuster 2020-08-25 12:59:35 UTC
bitbake core-image-minimal
Traceback (most recent call last):
  File "/home/akuster/poky/bitbake/bin/bitbake", line 35, in <module>
    sys.exit(bitbake_main(BitBakeConfigParameters(sys.argv),
  File "/home/akuster/poky/bitbake/lib/bb/main.py", line 384, in bitbake_main
    return ui_module.main(server_connection.connection, server_connection.events,
  File "/home/akuster/poky/bitbake/lib/bb/ui/knotty.py", line 386, in main
    params.updateToServer(server, os.environ.copy())
  File "/home/akuster/poky/bitbake/lib/bb/cookerdata.py", line 75, in updateToServer
    raise Exception("Unable to update the server configuration with local parameters: %s" % error)
Exception: Unable to update the server configuration with local parameters: Traceback (most recent call last):
  File "/home/akuster/poky/bitbake/lib/bb/cookerdata.py", line 283, in parseBaseConfiguration
    bb.event.fire(bb.event.ConfigParsed(), self.data)
  File "/home/akuster/poky/bitbake/lib/bb/event.py", line 214, in fire
    fire_class_handlers(event, d)
  File "/home/akuster/poky/bitbake/lib/bb/event.py", line 121, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/home/akuster/poky/bitbake/lib/bb/event.py", line 93, in execute_handler
    ret = handler(event)
  File "/home/akuster/poky/meta/classes/base.bbclass", line 242, in base_eventhandler
    setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS', d)
  File "/home/akuster/poky/meta/classes/base.bbclass", line 146, in setup_hosttools_dir
    bb.fatal("The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:\n  %s" % " ".join(notfound))
  File "/home/akuster/poky/bitbake/lib/bb/__init__.py", line 156, in fatal
    raise BBHandledException()
bb.BBHandledException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/akuster/poky/bitbake/lib/bb/command.py", line 81, in runCommand
    result = command_method(self, commandline)
  File "/home/akuster/poky/bitbake/lib/bb/command.py", line 272, in updateConfig
    command.cooker.updateConfigOpts(options, environment, cmdline)
  File "/home/akuster/poky/bitbake/lib/bb/cooker.py", line 478, in updateConfigOpts
    self.reset()
  File "/home/akuster/poky/bitbake/lib/bb/cooker.py", line 1686, in reset
    self.initConfigurationData()
  File "/home/akuster/poky/bitbake/lib/bb/cooker.py", line 358, in initConfigurationData
    self.databuilder.parseBaseConfiguration()
  File "/home/akuster/poky/bitbake/lib/bb/cookerdata.py", line 312, in parseBaseConfiguration
    raise bb.BBHandledException
bb.BBHandledException
Comment 1 akuster 2020-08-25 13:00:11 UTC
Expected:

akuster@Ubuntu-2004-focal-64-minimal:~/poky/build$ bitbake core-image-minimal
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/akuster/poky/build/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 34271 at 2020-08-25 21:53:11.426147 ---
ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
  file
Comment 2 akuster 2020-08-25 13:00:55 UTC
Commit things started working again.

59421f688c (HEAD -> master) bitbake: cooker/cookerdata: Ensure UI event log is updated from commandline