Closed Bug 1836742 Opened 2 years ago Closed 2 years ago

lld-link: error: undefined symbol: __declspec(dllimport) NtWriteFile

Categories

(Firefox Build System :: MozillaBuild, defect)

Firefox 113
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1836723

People

(Reporter: linxin19812012, Unassigned)

Details

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

Steps to reproduce:

I run "./mach build" on tag FIREFOX_113_0_2_RELEASE.

Actual results:

6:36.28 lld-link: error: undefined symbol: __declspec(dllimport) NtWriteFile
6:36.28 >>> referenced by /rustc/90c541806f23a127002de5b4038be731ba1458ca/library\std\src\sys\windows\stdio.rs:99
6:36.28 >>> builtins_static.lib(builtins_static-147ba1f76cfe220b.smallvec-1b1f93064a56bee5.smallvec.0aa898c2-cgu.0.rcgu.o.rcgu.o):(std::sys::windows::stdio::write::h3c0a0f8c7c3063c9)
6:36.28 lld-link: error: undefined symbol: __declspec(dllimport) RtlNtStatusToDosError
6:36.28 >>> referenced by /rustc/90c541806f23a127002de5b4038be731ba1458ca/library\std\src\sys\windows\stdio.rs:99
6:36.28 >>> builtins_static.lib(builtins_static-147ba1f76cfe220b.smallvec-1b1f93064a56bee5.smallvec.0aa898c2-cgu.0.rcgu.o.rcgu.o):(std::sys::windows::stdio::write::h3c0a0f8c7c3063c9)

Expected results:

Compilation completed normally

I'm not able to reproduce. Could you try running the following sequence of commands and seeing if you still get the same problem?

./mach clobber
./mach bootstrap
./mach configure
./mach build

For bootstrap, make sure to select option 2 (2. Firefox for Desktop).

Flags: needinfo?(linxin19812012)
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1836723
Resolution: --- → DUPLICATE
Flags: needinfo?(linxin19812012)
You need to log in before you can comment on or make changes to this bug.