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

Error while building Gecko 120.0.1 #1356

Closed vladivanciu closed 5 months ago

vladivanciu commented 5 months ago

Configuration

Wolvic version: 1.6.0

Steps to Reproduce

Follow the instructions: https://github.com/Igalia/wolvic/wiki/Developer-workflow#building-gecko

Running "./mach bootstrap" returns the following error

I've also tried the Dockerfile from here: https://github.com/Igalia/wolvic/issues/1270 but the result is the same.

I've tried to use the 122.0.1 version, it builds successfully but the app crashes after a few seconds.

Error Logs and Stack Traces

``` Your version of Rust (1.77.2) is new enough. Rust supports aarch64-linux-android, i686-linux-android, thumbv7neon-linux-androideabi, x86_64-linux-android, x86_64-unknown-linux-gnu targets. Error running mach: mach --log-no-times artifact toolchain --from-build toolchain-linux64-clang 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 "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/python/mozbuild/mozbuild/artifact_commands.py", line 393, in artifact_toolchain tasks = toolchain_task_definitions() File "/media/vlad/softclaire/android/gecko-dev/firefox-121.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 "/media/vlad/softclaire/android/gecko-dev/firefox-121.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 "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 160, in full_task_set return self._run_until("full_task_set") File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 425, in _run_until k, v = next(self._run) File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 311, in _run new_tasks = kind.load_tasks( File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 76, in load_tasks tasks = [ File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 76, in tasks = [ File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 2219, in check_run_task_caches for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 2129, in check_task_dependencies for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 2115, in check_task_identifiers for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 2096, in chain_of_trust for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1899, in build_task for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1872, in set_task_and_artifact_expiry for job in jobs: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1845, in try_task_config_routes for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1832, in try_task_config_chemspill_prio yield from tasks File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1812, in try_task_config_env yield from tasks File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1779, in add_index_routes for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1574, in validate for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1552, in task_name_from_label for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1542, in setup_raptor for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1486, in set_defaults for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/task.py", line 1462, in set_implementation for task in tasks: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/cached_tasks.py", line 65, in cache_task for task in order_tasks(config, tasks): File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/cached_tasks.py", line 20, in order_tasks pending = deque(tasks) File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/__init__.py", line 282, in use_fetches jobs = list(jobs) File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/__init__.py", line 247, in use_system_python for job in jobs: File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/__init__.py", line 228, in make_task_description configure_taskdesc_for_run( File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/__init__.py", line 507, in configure_taskdesc_for_run func(config, job, taskdesc) File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/toolchain.py", line 247, in docker_worker_toolchain common_toolchain(config, job, taskdesc, is_docker=True) File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/toolchain.py", line 170, in common_toolchain digest_data = get_digest_data(config, run, taskdesc) File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/transforms/job/toolchain.py", line 82, in get_digest_data data = [hash_paths(GECKO, files)] File "/media/vlad/softclaire/android/gecko-dev/firefox-121.0.1/taskcluster/gecko_taskgraph/util/hash.py", line 57, in hash_paths raise Exception("%s did not match anything" % pattern) ```
vladivanciu commented 5 months ago

Solved by running ./mach bootstrap on the 124.0.1 version then ./mach build on 121.0.1

svillar commented 5 months ago

Issues building gecko should be reported to mozilla. That said gecko's build system is not very reliable. It generally depends on very specific versions of some tools. As soon as your distro get some updates, it's very likely that you wouldn't be able to build some previous verison of gecko even if it's fairly recent. Glad that you're able to solve it!

cyberfoxmeow commented 2 months ago

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