Closed Bug 1809493 Opened 2 years ago Closed 2 years ago

lld-link: error: undefined symbol

Categories

(Firefox Build System :: General, defect)

Firefox 110
Desktop
Windows 11
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ibmrig16, Unassigned)

Details

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

Steps to reproduce:

mach build

Actual results:

0:01.75 C:/Users/hasan/.mozbuild/mozmake/mozmake.exe -f client.mk -j4 -s
0:05.08 Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
0:05.09 Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
0:05.17 Elapsed: 0.08s; From dist/xpi-stage: Kept 89 existing; Added/updated 0; Removed 0 files and 0 directories.
0:06.06 Elapsed: 0.67s; From _tests: Kept 0 existing; Added/updated 1310; Removed 0 files and 0 directories.
0:06.80 Elapsed: 1.40s; From dist/bin: Kept 0 existing; Added/updated 2725; Removed 0 files and 0 directories.
0:08.50 Elapsed: 3.43s; From dist/include: Kept 0 existing; Added/updated 6961; Removed 0 files and 0 directories.
0:08.74 ./buildid.h.stub
0:08.74 ./source-repo.h.stub
0:09.93 ./application.ini.stub
0:09.94 ./IsCombiningDiacritic.h.stub
0:10.48 ./application.ini.h.stub
0:11.55 toolkit/library/rust/force-cargo-library-build
0:12.24 browser/app
0:19.89 Finished release [optimized] target(s) in 8.32s
0:19.89 warning: the following packages contain code that will be rejected by a future version of Rust: ntapi v0.3.7
0:20.14 note: to see what the problems were, use the option --future-incompat-report, or run cargo report future-incompatibilities --id 7
0:24.78 browser/app/firefox.exe
0:25.71 netwerk/test/http3server/force-cargo-program-build
0:26.00 toolkit/library/build/xul.dll
0:27.72 lld-link: error: undefined symbol: public: virtual enum nsresult __cdecl mozilla::dom::WebTransportParent::OnDatagramReceived(class nsTArray<unsigned char> const &)
0:27.72 >>> referenced by ......\ipc\glue\BackgroundParentImpl.obj:(const mozilla::dom::WebTransportParent::vftable'{forWebTransportSessionEventListener'})
0:27.72 >>> referenced by ......\dom\webtransport\parent\Unified_cpp_webtransport_parent0.obj
0:27.72 lld-link: error: undefined symbol: public: virtual enum nsresult __cdecl mozilla::dom::WebTransportParent::OnDatagramReceivedInternal(class nsTArray<unsigned char> &&)
0:27.72 >>> referenced by ......\ipc\glue\BackgroundParentImpl.obj:(const mozilla::dom::WebTransportParent::vftable'{forWebTransportSessionEventListener'})
0:27.72 >>> referenced by ......\dom\webtransport\parent\Unified_cpp_webtransport_parent0.obj
0:27.72 lld-link: error: undefined symbol: public: virtual enum nsresult __cdecl mozilla::dom::WebTransportParent::OnMaxDatagramSize(unsigned __int64)
0:27.72 >>> referenced by ......\ipc\glue\BackgroundParentImpl.obj:(const mozilla::dom::WebTransportParent::vftable'{forWebTransportSessionEventListener'})
0:27.73 >>> referenced by ......\dom\webtransport\parent\Unified_cpp_webtransport_parent0.obj
0:27.73 lld-link: error: undefined symbol: public: virtual enum nsresult __cdecl mozilla::dom::WebTransportParent::OnOutgoingDatagramOutCome(unsigned __int64, enum WebTransportSessionEventListener::DatagramOutcome)
0:27.73 >>> referenced by ......\ipc\glue\BackgroundParentImpl.obj:(const mozilla::dom::WebTransportParent::vftable'{forWebTransportSessionEventListener'})
0:27.73 >>> referenced by ......\dom\webtransport\parent\Unified_cpp_webtransport_parent0.obj
0:27.95 mozmake[4]: *** [C:/mz/mozilla-unified/config/rules.mk:540: xul.dll] Error 1
0:27.95 mozmake[3]: *** [C:/mz/mozilla-unified/config/recurse.mk:72: toolkit/library/build/target] Error 2
0:27.95 mozmake[3]: *** Waiting for unfinished jobs....
0:31.81 Finished release [optimized] target(s) in 6.09s
0:32.02 mozmake[2]: *** [C:/mz/mozilla-unified/config/recurse.mk:34: compile] Error 2
0:32.03 mozmake[1]: *** [C:/mz/mozilla-unified/config/rules.mk:361: default] Error 2
0:32.03 mozmake: *** [client.mk:60: build] Error 2
0:32.03 548 compiler warnings present.

Component: Untriaged → General
Product: Firefox → Firefox Build System
OS: Unspecified → Windows 11
Hardware: Unspecified → Desktop

I'm not able to reproduce. Could you do the following?

1.) Update to the latest mozilla-central by running hg pull && hg up central.
2.) ./mach clobber --full
3.) Manually delete the mozconfig file if it exists in the root dir of your source repo.
4.) ./mach bootstrap
5.) ./mach configure
6.) ./mach build 2>&1 | tee log.txt
7.) If the error still occurs, upload that log.txt here.

Flags: needinfo?(ibmrig16)

Can you also confirm that the following individual components for Visual Studio are installed: (As per https://firefox-source-docs.mozilla.org/setup/windows_build.html)

In the Workloads tab:
- Desktop development with C++.

In the Individual components tab:
- MSVC v143 - VS 2022 C++ x64/x86 build tools.
- Windows 10 SDK (at least 10.0.19041.0).
- C++ ATL for v143 build tools (x86 and x64).

If I'm not mistaken, this is a user who happened to end up building a broken autoland revision, and that was solved on Matrix (by switching to central). Please reopen if I'm wrong.

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