Windows build environment fails to compile crashreporter(mozwer.dll).
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: e12.yukkuri.y, Unassigned)
Details
Attachments
(1 file)
(deleted),
image/png
|
Details |
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.
Comment 1•3 years ago
|
||
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?
Comment 2•3 years ago
|
||
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)
Updated•3 years ago
|
Description
•