Closed Bug 1342617 Opened 8 years ago Closed 8 years ago

Thunderbird x86 Build fails due to huge memory usage when linking

Categories

(Thunderbird :: Build Config, defect)

54 Branch
x86_64
Windows 10
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1340395

People

(Reporter: alice0775, Unassigned)

Details

When build on my local PC, huge memory usage when linking. Whole virtual memory(24GB) eating up. 0:04.31 c:\mozilla-build2_2_0\mozmake\mozmake.EXE -f client.mk MOZ_PARALLEL_BUILD=3 -s 0:09.83 Adding client.mk options from d:/src-comm/.mozconfig: 0:09.83 MOZ_MAKE_FLAGS=-j3 0:09.83 FOUND_MOZCONFIG := d:/src-comm/.mozconfig 0:24.92 mozmake.EXE[2]: Circular d:/src-comm/mozilla/CLOBBER <- d:/src-comm/mozilla/CLOBBER dependency dropped. 0:25.92 mozmake.EXE[3]: Circular d:/src-comm/mozilla/CLOBBER <- d:/src-comm/mozilla/CLOBBER dependency dropped. 0:26.81 Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories. 0:27.34 Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories. 0:28.86 Elapsed: 0.89s; From dist/xpi-stage: Kept 0 existing; Added/updated 123; Removed 2 files and 0 directories. 0:28.94 Elapsed: 2.05s; From dist/idl: Kept 0 existing; Added/updated 1383; Removed 0 files and 0 directories. 0:33.80 Elapsed: 4.34s; From _tests: Kept 0 existing; Added/updated 637; Removed 0 files and 0 directories. 0:34.45 Elapsed: 7.62s; From dist/include: Kept 0 existing; Added/updated 5622; Removed 53 files and 0 directories. 0:37.03 Elapsed: 7.53s; From dist/bin: Kept 0 existing; Added/updated 2173; Removed 44 files and 2 directories. 0:38.03 buildid.h 0:38.05 source-repo.h 0:38.06 mozmake.EXE[2]: Circular d:/src-comm/mozilla/CLOBBER <- d:/src-comm/mozilla/CLOBBER dependency dropped. 0:40.34 application.ini 0:41.00 application.ini.h 0:51.74 Elapsed: 1.52s; From ../../dist/idl: Kept 0 existing; Added/updated 1383; Removed 0 files and 0 directories. 0:55.58 mozmake.EXE[2]: Circular d:/src-comm/mozilla/CLOBBER <- d:/src-comm/mozilla/CLOBBER dependency dropped. 1:01.09 force-cargo-library-build 1:05.97 Finished release [optimized + debuginfo] target(s) in 0.0 secs 1:37.55 force-cargo-library-build 1:38.86 Finished release [optimized + debuginfo] target(s) in 0.0 secs 1:44.72 module.res 1:44.80 Creating Resource file: module.res 1:48.78 nsMailApp.cpp 1:48.81 thunderbird.exe 1:49.45 xul.dll 2:09.00 Creating library thunderbird.lib and object thunderbird.exp 2:09.00 2:09.09 Embedding manifest from d:/src-comm/mail/app/thunderbird.exe.manifest 22:32.11 Still linking, 20 minutes passed... 24:49.66 Creating library xul.lib and object xul.exp 24:49.66 24:49.66 LINK : warning LNK4199: /DELAYLOAD:dbghelp.dll ignored; no imports found from dbghelp.dll 24:49.66 24:49.66 LINK : warning LNK4199: /DELAYLOAD:PowrProf.dll ignored; no imports found from PowrProf.dll 24:49.66 24:49.66 LINK : warning LNK4199: /DELAYLOAD:rasapi32.dll ignored; no imports found from rasapi32.dll 24:49.68 24:49.68 LINK : warning LNK4199: /DELAYLOAD:rasdlg.dll ignored; no imports found from rasdlg.dll 24:49.68 24:53.93 0 [main] xargs 7112 fork_copy: linked dll data/bss pass 0 failed, 0x65A000..0x65A020, done 0, windows pid 8324, Win32 error 998 24:53.96 xargs: cannot fork: Resource temporarily unavailable 24:53.96 NSModules are not ordered appropriately 24:54.03 d:/src-comm/mozilla/config/rules.mk:787: recipe for target 'xul.dll' failed 24:54.03 mozmake.EXE[4]: *** [xul.dll] Error 1 24:54.03 mozmake.EXE[4]: *** Deleting file 'xul.dll' 24:54.10 d:/src-comm/mozilla/config/recurse.mk:71: recipe for target 'toolkit/library/target' failed 24:54.10 mozmake.EXE[3]: *** [toolkit/library/target] Error 2 24:54.13 d:/src-comm/mozilla/config/recurse.mk:32: recipe for target 'compile' failed 24:54.13 mozmake.EXE[2]: *** [compile] Error 2 24:54.21 d:/src-comm/mozilla/config/rules.mk:510: recipe for target 'default' failed 24:54.21 mozmake.EXE[1]: *** [default] Error 2 24:54.22 client.mk:397: recipe for target 'build' failed 24:54.24 mozmake.EXE: *** [build] Error 2 24:54.36 253 compiler warnings present. .mozconfig : mk_add_options MOZ_MAKE_FLAGS="-j3" ac_add_options --enable-application=mail ac_add_options --enable-jemalloc ac_add_options --enable-calendar ac_add_options --enable-optimize ac_add_options --disable-warnings-as-errors ac_add_options --disable-tests
Hi, can you try with the fix mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1340395#c21 ?
Flags: needinfo?(alice0775)
(In reply to Ian Neal from comment #1) > Hi, can you try with the fix mentioned in > https://bugzilla.mozilla.org/show_bug.cgi?id=1340395#c21 ? I will try. And I will report the results later.
Flags: needinfo?(alice0775)
(In reply to Alice0775 White from comment #2) > (In reply to Ian Neal from comment #1) > > Hi, can you try with the fix mentioned in > > https://bugzilla.mozilla.org/show_bug.cgi?id=1340395#c21 ? > > I will try. And I will report the results later. The WORKAROUND fixed the problem. The build finished successfully. Peak memory usage is 9.1GB/24GB.(incl. system and other running application(3.6GB))
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.