Closed Bug 1810999 Opened 2 years ago Closed 2 years ago

Firefox build fails with: ModuleNotFoundError: No module named 'winreg'

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

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

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.

Component: Untriaged → General
Product: Firefox → Firefox Build System

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)?

Attached file # This file specifie
(In reply to Mike Hommey [:glandium] from comment #2) > 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)? I build with the latest code tree and use the following mozconfig
Attached file .mozconfig
Attachment #9313007 - Attachment mime type: application/octet-stream → text/plain

You're missing WINSYSROOT.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID

@Mike Is there any documentation on WINSYSROOT?

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?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: