Firefox build fails with: ModuleNotFoundError: No module named 'winreg'
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: gzyfqh, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Steps to reproduce:
After pulling the latest code and running the ./mach build command
I use Debian 11 to cross compile firefox for windows
Actual results:
it prompts ModuleNotFoundError: No module named 'winreg' error, unable to compile firefox normally
Expected results:
No errors, able to compile normally
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
That suggests you're missing some things in your mozconfig. What are the contents of your mozconfig, and what specific revision are you building (there have been changes recently to make things easier)?
Comment 5•2 years ago
|
||
You're missing WINSYSROOT.
Updated•2 years ago
|
Comment 7•2 years ago
|
||
https://searchfox.org/mozilla-central/source/build/moz.configure/toolchain.configure#558-561 (it's in the output of ./mach configure -- --help
)
In a few weeks time, you won't need to set WINSYSROOT at all, one will be bootstrapped for you.
@Mike
How to set up WINSYSROOT on the Debian system, and whether msvc and sdk files should be included in WINSYSROOT?
Description
•