Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

Exception: python/mozboot/**/*android* did not match anything (I read the previous solved issues, but it seems that it does not work for me) #1471

Closed hitfzyangdianshi closed 2 months ago

hitfzyangdianshi commented 2 months ago

Configuration

Wolvic version: main Wolvic build ID:

Hardware: MSI GP65 Leopard 95E

Steps to Reproduce

  1. I am using Windows 10 with Anaconda Python console for development
  2. follow https://github.com/Igalia/wolvic/wiki/Developer-workflow#building-gecko (Building Gecko)
  3. I read the previous solution of the issue https://github.com/Igalia/wolvic/issues/1419#issuecomment-2117043661 , and download firefox-124.0.1.source.tar.xz
  4. I unzip firefox-124.0.1.source.tar.xz, and Create the mozconfig file https://github.com/Igalia/wolvic/wiki/Developer-workflow#2-create-the-mozconfig-file , and mach.cmd bootstrap

Current Behavior

Exception: python/mozboot/**/*android* did not match anything

Expected Behavior

Possible Solution

The issue https://github.com/Igalia/wolvic/issues/1356#issuecomment-2053636338 and https://github.com/Igalia/wolvic/issues/1419#issuecomment-2117043661 both mention to use version 124.0.1 for mach bootstrap. But I am using 124.0.1, and get the error.

Context

Error Logs and Stack Traces

``` untarring "C:\Users\Dianshi\.mozbuild\clang-tools\clang-tidy.tar.zst" Error running mach: mach artifact toolchain --bootstrap --from-build rustc-dist-toolchain --no-unpack The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You can invoke ``./mach busted`` to check if this issue is already on file. If it isn't, please use ``./mach busted file artifact`` to report it. If ``./mach busted`` is misbehaving, you can also inspect the dependencies of bug 1543241. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: Exception: python/mozboot/**/*android* did not match anything File "D:\git\firefox-124.0.1\python\mozbuild\mozbuild\artifact_commands.py", line 393, in artifact_toolchain tasks = toolchain_task_definitions() File "d:\git\firefox-124.0.1\python\mozbuild\mozbuild\toolchains.py", line 20, in toolchain_task_definitions toolchains = load_tasks_for_kind(params, "toolchain", root_dir=root_dir) File "d:\git\firefox-124.0.1\third_party\python\taskcluster_taskgraph\taskgraph\generator.py", line 449, in load_tasks_for_kind for task in tgg.full_task_set File "d:\git\firefox-124.0.1\third_party\python\taskcluster_taskgraph\taskgraph\generator.py", line 160, in full_task_set return self._run_until("full_task_set") File "d:\git\firefox-124.0.1\third_party\python\taskcluster_taskgraph\taskgraph\generator.py", line 425, in _run_until k, v = next(self._run) File "d:\git\firefox-124.0.1\third_party\python\taskcluster_taskgraph\taskgraph\generator.py", line 311, in _run new_tasks = kind.load_tasks( File "d:\git\firefox-124.0.1\third_party\python\taskcluster_taskgraph\taskgraph\generator.py", line 76, in load_tasks tasks = [ File "d:\git\firefox-124.0.1\third_party\python\taskcluster_taskgraph\taskgraph\generator.py", line 76, in tasks = [ File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 2222, in check_run_task_caches for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 2132, in check_task_dependencies for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 2118, in check_task_identifiers for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 2099, in chain_of_trust for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1902, in build_task for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1875, in set_task_and_artifact_expiry for job in jobs: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1848, in try_task_config_routes for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1835, in try_task_config_chemspill_prio yield from tasks File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1815, in try_task_config_env yield from tasks File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1782, in add_index_routes for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1577, in validate for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1555, in task_name_from_label for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1545, in setup_raptor for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1489, in set_defaults for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\task.py", line 1465, in set_implementation for task in tasks: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\cached_tasks.py", line 65, in cache_task for task in order_tasks(config, tasks): File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\cached_tasks.py", line 20, in order_tasks pending = deque(tasks) File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\__init__.py", line 282, in use_fetches jobs = list(jobs) File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\__init__.py", line 247, in use_system_python for job in jobs: File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\__init__.py", line 228, in make_task_description configure_taskdesc_for_run( File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\__init__.py", line 507, in configure_taskdesc_for_run func(config, job, taskdesc) File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\toolchain.py", line 247, in docker_worker_toolchain common_toolchain(config, job, taskdesc, is_docker=True) File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\toolchain.py", line 170, in common_toolchain digest_data = get_digest_data(config, run, taskdesc) File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\transforms\job\toolchain.py", line 82, in get_digest_data data = [hash_paths(GECKO, files)] File "d:\git\firefox-124.0.1\taskcluster\gecko_taskgraph\util\hash.py", line 57, in hash_paths raise Exception("%s did not match anything" % pattern) Error running mach: mach bootstrap The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You can invoke ``./mach busted`` to check if this issue is already on file. If it isn't, please use ``./mach busted file bootstrap`` to report it. If ``./mach busted`` is misbehaving, you can also inspect the dependencies of bug 1543241. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: subprocess.CalledProcessError: Command '['C:\\Users\\Dianshi\\.mozbuild\\srcdirs\\firefox-124.0.1-4b5b38b34a4e\\_virtualenvs\\mach\\Scripts\\python.exe', 'D:\\git\\firefox-124.0.1\\mach', 'artifact', 'toolchain', '--bootstrap', '--from-build', 'rustc-dist-toolchain', '--no-unpack']' returned non-zero exit status 1. File "D:\git\firefox-124.0.1\python\mozboot\mozboot\mach_commands.py", line 50, in bootstrap bootstrapper.bootstrap(command_context.settings) File "d:\git\firefox-124.0.1\python\mozboot\mozboot\bootstrap.py", line 468, in bootstrap self.maybe_install_private_packages_or_exit(application, checkout_type) File "d:\git\firefox-124.0.1\python\mozboot\mozboot\bootstrap.py", line 337, in maybe_install_private_packages_or_exit self.instance.ensure_sccache_packages() File "d:\git\firefox-124.0.1\python\mozboot\mozboot\mozillabuild.py", line 220, in ensure_sccache_packages self.install_toolchain_artifact(sccache.RUSTC_DIST_TOOLCHAIN, no_unpack=True) File "d:\git\firefox-124.0.1\python\mozboot\mozboot\base.py", line 337, in install_toolchain_artifact return self.install_toolchain_artifact_impl( File "d:\git\firefox-124.0.1\python\mozboot\mozboot\base.py", line 373, in install_toolchain_artifact_impl subprocess.check_call(cmd, cwd=str(install_dir)) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\lib\subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) (common_use) D:\git\firefox-124.0.1> ```
svillar commented 2 months ago

For Gecko build issues please talk to mozillians. Note that Gecko bootstrap is not reliable as it cannot reproduce previous builds. Also we cannot guarantee builds in windows

Please reopen if you still think it does make sense as a Wolvic bug

cyberfoxmeow commented 2 months ago

refer to: https://bugzilla.mozilla.org/show_bug.cgi?id=1906930