Closed Bug 1746765 Opened 3 years ago Closed 3 years ago

Windows build environment fails to compile crashreporter(mozwer.dll).

Categories

(Firefox Build System :: General, defect)

Firefox 95
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1736486

People

(Reporter: e12.yukkuri.y, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.57

Steps to reproduce:

Download the source code for Firefox 95.0.2 by running "python3 bootstrap.py --vcs=git".
Then run ". /mach build".

Actual results:

618:00.47 lld-link: error: undefined symbol: __declspec(dllimport) BCryptGenRandom
618:00.47 >>> referenced by /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library\std\src\thread\local.rs:609
618:00.47 >>> mozwer_s.lib(mozwer_s-0ec725f4c81615de.uuid-357d286f7c3c3223.uuid.7044c3a0-cgu.0.rcgu.o.rcgu.o):(std::thread::local::fast::Key$LT$T$GT$::try_initialize::h6f0eaa92973cfc73)
618:00.47 mozmake[4]: *** [c:/mozilla-source/mozilla-unified/config/rules.mk;530: mozwer.dll] Error 1
618:00.47 mozmake[3]: *** [c:/mozilla-source/unified/config/recurse.mk;72: toolkit/crashreporter/mozwer/target] Error 2

The above error occurs.

Expected results:

The build should be successful.

I didn't get this error on Linux. Looking at the error log I have the same problem.
If you follow the logs, you'll see that it's his link error in the dll.
``` lld-link: error: undefined symbol: __declspec (dllimport) BCryptGenRandom 229: 01.27 >>> referenced by /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c \ / library \ std \ src \ thread \ local.rs: 609 229: 01.27 >>> mozwer_s.lib (mozwer_s-0ec725f4c81615de.uuid-357d286f7c3c3223.uuid.7044c3a0-cgu.0.rcgu.o.rcgu.o) :( std :: thread :: local :: fast :: Key $ LT $ T $ GT $ :: try_initialize :: h6f0eaa92973cfc73) ```
Is this the cause?

lld-link: error: undefined symbol: __declspec(dllimport) BCryptGenRandom
229:01.27 >>> referenced by /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c\/library\std\src\thread\local.rs:609
229:01.27 >>>               mozwer_s.lib(mozwer_s-0ec725f4c81615de.uuid-357d286f7c3c3223.uuid.7044c3a0-cgu.0.rcgu.o.rcgu.o):(std::thread::local::fast::Key$LT$T$GT$::try_initialize::h6f0eaa92973cfc73)

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: