Cannot complete `./mach bootstrap` on Windows due to "cannot import name 'IndexSearch' from 'gecko_taskgraph.optimize.strategies'"
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox-esr102 unaffected, firefox-esr115 unaffected, firefox117 unaffected, firefox118 unaffected, firefox119 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox-esr115 | --- | unaffected |
| firefox117 | --- | unaffected |
| firefox118 | --- | unaffected |
| firefox119 | --- | fixed |
People
(Reporter: masayuki, Assigned: jcristau)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
I ran ./mach bootstrap to update my build environment on Windows. However, I got this error:
Error running mach:
mach artifact toolchain --bootstrap --from-build rustc-dist-toolchain --no-unpack
ImportError: cannot import name 'IndexSearch' from 'gecko_taskgraph.optimize.strategies' (m:\src\taskcluster\gecko_taskgraph\optimize\strategies.py)
File "M:\src\python\mozbuild\mozbuild\artifact_commands.py", line 389, in artifact_toolchain
from gecko_taskgraph.optimize.strategies import IndexSearch
The mozilla-central revision is 39747a728e31.
| Reporter | ||
Comment 1•2 years ago
•
|
||
FYI: I need to run it for solving this error:
0:19.63 checking for nasm... not found
0:19.63 ERROR: Nasm is required to build with AV1, FFVPX, JPEG and VPX, but it was not found.
*** Fix above errors and then restart with "./mach build"
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Bootstrap Configuration' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•2 years ago
•
|
||
I'm also affected by this. It seems bug 1850749 has removed IndexSearch from gecko_taskgraph.optimize.strategies in favor of taskgraph.optimize.strategies, but mozbuild still references the old one. [:jcristau], do we need to update mozbuild maybe? Thank you.
| Assignee | ||
Comment 4•2 years ago
|
||
Yes, https://phabricator.services.mozilla.com/D187361 does that.
| Assignee | ||
Comment 5•2 years ago
|
||
Fixes mach bootstrap, among others.
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Set release status flags based on info from the regressing bug 1850749
Comment 7•2 years ago
|
||
patch works on my mac, just for your info :)
Comment 9•2 years ago
|
||
| bugherder | ||
Description
•