Pale Moon and Mozillabuild 1.11.0

General discussion and chat (archived)
squarefractal

Pale Moon and Mozillabuild 1.11.0

Unread post by squarefractal » 2015-05-24, 14:11

I understand the reason behind using an older Mozilla build. However, on viewtopic.php?f=19&t=4166 :
The "latest" package will not work, since Python has been upgraded in 1.11+ that has breaking changes with the build system used in the Pale Moon source tree.
Everything actually compiles fine, till the linking of xul.dll:

Code: Select all

    ..\..\ipc\chromium\file_version_info.obj
    ..\..\ipc\chromium\lock_impl_win.obj
    ..\..\ipc\chromium\idle_timer.obj
    ..\..\ipc\chromium\message_pump_win.obj
    ..\..\ipc\chromium\object_watcher.obj
    ..\..\ipc\chromium\platform_file_win.obj
    ..\..\ipc\chromium\platform_thread_win.obj
    ..\..\ipc\chromium\process_util_win.obj
    ..\..\ipc\chromium\process_win.obj
    ..\..\ipc\chromium\rand_util_win.obj
    ..\..\ipc\chromium\registry.obj
    ..\..\ipc\chromium\shared_memory_win.obj
    ..\..\ipc\chromium\sys_info_win.obj
    ..\..\ipc\chromium\sys_string_conversions_win.obj
    ..\..\ipc\chromium\system_monitor_win.obj
    ..\..\ipc\chromium\thread_local_storage_win.obj
    ..\..\ipc\chromium\thread_local_win.obj
    ..\..\ipc\chromium\time_win.obj
    ..\..\ipc\chromium\waitable_event_watcher_win.obj
    ..\..\ipc\chromium\waitable_event_win.obj
    ..\..\ipc\chromium\win_util.obj
    ..\..\ipc\chromium\chrome_paths_win.obj
    ..\..\ipc\chromium\chrome_constants.obj
    ..\..\ipc\chromium\ipc_channel_win.obj
    ..\..\ipc\chromium\process_watcher_win.obj
    ..\..\ipc\chromium\transport_dib_win.obj
    ..\..\ipc\chromium\debug_on_start.obj
    ..\..\other-licenses\snappy\snappy-c.obj
    ..\..\other-licenses\snappy\snappy-sinksource.obj
    ..\..\other-licenses\snappy\snappy-stubs-internal.obj
    ..\..\other-licenses\snappy\snappy.obj
    ..\..\gfx\thebes\gfxWindowsPlatform.obj
    ..\..\gfx\thebes\gfxWindowsSurface.obj
    ..\..\gfx\thebes\gfxWindowsNativeDrawing.obj
    ..\..\gfx\thebes\nsUnicodeRange.obj
    ..\..\gfx\thebes\gfxGDIFont.obj
    ..\..\gfx\thebes\gfxGDIFontList.obj
    ..\..\gfx\thebes\gfxGDIShaper.obj
    ..\..\gfx\thebes\gfxUniscribeShaper.obj
    ..\..\gfx\thebes\gfxPDFSurface.obj
    ..\..\gfx\thebes\gfxDWriteFonts.obj
    ..\..\gfx\thebes\gfxDWriteShaper.obj
    ..\..\gfx\thebes\gfxDWriteTextAnalysis.obj
    ..\..\gfx\thebes\gfxDWriteCommon.obj
    ..\..\gfx\thebes\gfxD2DSurface.obj
    ..\..\gfx\thebes\gfxDWriteFontList.obj
    ..\..\gfx\thebes\gfxAlphaRecoverySSE2.obj
    ..\..\gfx\thebes\gfx3DMatrix.obj
    ..\..\gfx\thebes\gfxASurface.obj
    ..\..\gfx\thebes\gfxAlphaRecovery.obj
    ..\..\gfx\thebes\gfxBaseSharedMemorySurface.obj
    ..\..\gfx\thebes\gfxBlur.obj
    ..\..\gfx\thebes\gfxCachedTempSurface.obj
    ..\..\gfx\thebes\gfxContext.obj
    ..\..\gfx\thebes\gfxDrawable.obj
    ..\..\gfx\thebes\gfxFont.obj
    ..\..\gfx\thebes\gfxFontFeatures.obj
    ..\..\gfx\thebes\gfxFontMissingGlyphs.obj
    ..\..\gfx\thebes\gfxFontTest.obj
    ..\..\gfx\thebes\gfxFontUtils.obj
    ..\..\gfx\thebes\gfxGraphiteShaper.obj
    ..\..\gfx\thebes\gfxHarfBuzzShaper.obj
    ..\..\gfx\thebes\gfxImageSurface.obj
    ..\..\gfx\thebes\gfxMatrix.obj
    ..\..\gfx\thebes\gfxPath.obj
    ..\..\gfx\thebes\gfxPattern.obj
    ..\..\gfx\thebes\gfxPlatform.obj
    ..\..\gfx\thebes\gfxPlatformFontList.obj
    ..\..\gfx\thebes\gfxRect.obj
    ..\..\gfx\thebes\gfxReusableSurfaceWrapper.obj
    ..\..\gfx\thebes\gfxSVGGlyphs.obj
    ..\..\gfx\thebes\gfxScriptItemizer.obj
    ..\..\gfx\thebes\gfxSkipChars.obj
    ..\..\gfx\thebes\gfxTeeSurface.obj
    ..\..\gfx\thebes\gfxUserFontSet.obj
    ..\..\gfx\thebes\gfxUtils.obj
    ..\..\gfx\thebes\nsSurfaceTexture.obj
    ..\..\gfx\layers\D3D9SurfaceImage.obj
    ..\..\gfx\layers\LayerManagerD3D9.obj
    ..\..\gfx\layers\ThebesLayerD3D9.obj
    ..\..\gfx\layers\ContainerLayerD3D9.obj
    ..\..\gfx\layers\ImageLayerD3D9.obj
    ..\..\gfx\layers\ColorLayerD3D9.obj
    ..\..\gfx\layers\CanvasLayerD3D9.obj
    ..\..\gfx\layers\DeviceManagerD3D9.obj
    ..\..\gfx\layers\CanvasLayerD3D10.obj
    ..\..\gfx\layers\ColorLayerD3D10.obj
    ..\..\gfx\layers\CompositorD3D11.obj
    ..\..\gfx\layers\ContainerLayerD3D10.obj
    ..\..\gfx\layers\ImageLayerD3D10.obj
    ..\..\gfx\layers\LayerManagerD3D10.obj
    ..\..\gfx\layers\ReadbackManagerD3D10.obj
    ..\..\gfx\layers\ShadowLayerUtilsD3D10.obj
    ..\..\gfx\layers\TextureD3D11.obj
    ..\..\gfx\layers\ThebesLayerD3D10.obj
    ..\..\gfx\layers\AsyncCompositionManager.obj
    ..\..\gfx\layers\AsyncPanZoomController.obj
    ..\..\gfx\layers\Axis.obj
    ..\..\gfx\layers\BasicCanvasLayer.obj
    ..\..\gfx\layers\BasicColorLayer.obj
    ..\..\gfx\layers\BasicCompositor.obj
    ..\..\gfx\layers\BasicContainerLayer.obj
    ..\..\gfx\layers\BasicImageLayer.obj
    ..\..\gfx\layers\BasicImages.obj
    ..\..\gfx\layers\BasicLayerManager.obj
    ..\..\gfx\layers\BasicLayersImpl.obj
    ..\..\gfx\layers\BasicThebesLayer.obj
    ..\..\gfx\layers\CanvasClient.obj
    ..\..\gfx\layers\CanvasLayerComposite.obj
    ..\..\gfx\layers\CanvasLayerOGL.obj
    ..\..\gfx\layers\ClientCanvasLayer.obj
    ..\..\gfx\layers\ClientColorLayer.obj
    ..\..\gfx\layers\ClientContainerLayer.obj
    ..\..\gfx\layers\ClientImageLayer.obj
    ..\..\gfx\layers\ClientLayerManager.obj
    ..\..\gfx\layers\ClientThebesLayer.obj
    ..\..\gfx\layers\ClientTiledThebesLayer.obj
    ..\..\gfx\layers\ColorLayerComposite.obj
    ..\..\gfx\layers\ColorLayerOGL.obj
    ..\..\gfx\layers\CompositableClient.obj
    ..\..\gfx\layers\CompositableHost.obj
    ..\..\gfx\layers\CompositableTransactionParent.obj
    ..\..\gfx\layers\Compositor.obj
    ..\..\gfx\layers\CompositorChild.obj
    ..\..\gfx\layers\CompositorCocoaWidgetHelper.obj
    ..\..\gfx\layers\CompositorOGL.obj
    ..\..\gfx\layers\CompositorParent.obj
    ..\..\gfx\layers\ContainerLayerComposite.obj
    ..\..\gfx\layers\ContainerLayerOGL.obj
    ..\..\gfx\layers\ContentClient.obj
    ..\..\gfx\layers\ContentHost.obj
    ..\..\gfx\layers\CopyableCanvasLayer.obj
    ..\..\gfx\layers\Effects.obj
    ..\..\gfx\layers\GestureEventListener.obj
    ..\..\gfx\layers\ISurfaceAllocator.obj
    ..\..\gfx\layers\ImageBridgeChild.obj
    ..\..\gfx\layers\ImageBridgeParent.obj
    ..\..\gfx\layers\ImageClient.obj
    ..\..\gfx\layers\ImageContainer.obj
    ..\..\gfx\layers\ImageHost.obj
    ..\..\gfx\layers\ImageLayerComposite.obj
    ..\..\gfx\layers\ImageLayerOGL.obj
    ..\..\gfx\layers\ImageLayers.obj
    ..\..\gfx\layers\LayerManagerComposite.obj
    ..\..\gfx\layers\LayerManagerOGL.obj
    ..\..\gfx\layers\LayerManagerOGLProgram.obj
    ..\..\gfx\layers\LayerSorter.obj
    ..\..\gfx\layers\LayerTransactionChild.obj
    ..\..\gfx\layers\LayerTransactionParent.obj
    ..\..\gfx\layers\LayerTreeInvalidation.obj
    ..\..\gfx\layers\Layers.obj
    ..\..\gfx\layers\LayersLogging.obj
    ..\..\gfx\layers\ReadbackProcessor.obj
    ..\..\gfx\layers\RenderTrace.obj
    ..\..\gfx\layers\ShadowLayerChild.obj
    ..\..\gfx\layers\ShadowLayerParent.obj
    ..\..\gfx\layers\ShadowLayers.obj
    ..\..\gfx\layers\SharedPlanarYCbCrImage.obj
    ..\..\gfx\layers\SharedRGBImage.obj
    ..\..\gfx\layers\TaskThrottler.obj
    ..\..\gfx\layers\TextureClient.obj
    ..\..\gfx\layers\TextureClientOGL.obj
    ..\..\gfx\layers\TextureHost.obj
    ..\..\gfx\layers\TextureHostOGL.obj
    ..\..\gfx\layers\TexturePoolOGL.obj
    ..\..\gfx\layers\ThebesLayerBuffer.obj
    ..\..\gfx\layers\ThebesLayerComposite.obj
    ..\..\gfx\layers\ThebesLayerOGL.obj
    ..\..\gfx\layers\TiledContentClient.obj
    ..\..\gfx\layers\TiledContentHost.obj
    ..\..\gfx\layers\YCbCrImageDataSerializer.obj
    ..\..\gfx\gl\GLContextProviderEGL.obj
    ..\..\gfx\gl\GLLibraryEGL.obj
    ..\..\gfx\gl\SharedSurfaceANGLE.obj
    ..\..\gfx\gl\GLContextSkia.obj
    ..\..\gfx\gl\GLContextProviderWGL.obj
    ..\..\gfx\gl\GLContext.obj
    ..\..\gfx\gl\GLContextTypes.obj
    ..\..\gfx\gl\GLContextUtils.obj
    ..\..\gfx\gl\GLLibraryLoader.obj
    ..\..\gfx\gl\GLScreenBuffer.obj
    ..\..\gfx\gl\GLTextureImage.obj
    ..\..\gfx\gl\SharedSurface.obj
    ..\..\gfx\gl\SharedSurfaceEGL.obj
    ..\..\gfx\gl\SharedSurfaceGL.obj
    ..\..\gfx\gl\SurfaceFactory.obj
    ..\..\gfx\gl\SurfaceStream.obj
    ..\..\gfx\ycbcr\ycbcr_to_rgb565.obj
    ..\..\gfx\ycbcr\yuv_convert.obj
    ..\..\gfx\ycbcr\yuv_row_c.obj
    ..\..\gfx\ycbcr\yuv_row_table.obj
    ..\..\gfx\ycbcr\yuv_convert_sse2.obj
    ..\..\gfx\ycbcr\yuv_row_win64.obj

nsUnicharUtils.obj : MSIL .netmodule or module compiled with /GL found; restarti
ng link with /LTCG; add /LTCG to the link command line to improve linker perform
ance
   Creating library xul.lib and object xul.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us
e /NODEFAULTLIB:library
Generating code
c:\users\admin\development\pale-moon\other-licenses\snappy\src\snappy-stubs-inte
rnal.h(134) : warning C4722: 'snappy::LogMessageCrash::~LogMessageCrash' : destr
uctor never returns, potential memory leak
c:\Users\Admin\Development\Pale-Moon\content\base\src\nsContentUtils.cpp : fatal
 error C1002: compiler is out of heap space in pass 2
LINK : fatal error LNK1257: code generation failed
c:\Users\Admin\Development\Pale-Moon\config\rules.mk:1000:0: command 'c:/Users/a
dmin/development/pmbuild/_virtualenv/Scripts/python.exe c:/Users/Admin/Developme
nt/Pale-Moon/config/expandlibs_exec.py --depend .deps/.//xul.dll.pp --target xul
.dll --uselist -- link -NOLOGO -DLL -OUT:xul.dll -PDB:xul.pdb -SUBSYSTEM:WINDOWS
 -MACHINE:X64  nsUnicharUtils.obj nsBidiUtils.obj nsSpecialCasingData.obj nsUnic
odeProperties.obj nsRDFResource.obj nsStaticXULComponents.obj nsDllMain.obj dlld
eps-xul.obj nsGFXDeps.obj dlldeps-zlib.obj   ./module.res -LARGEADDRESSAWARE -NX
COMPAT -OPT:REF -OPT:ICF=15 -DYNAMICBASE  -DEBUG -DEBUGTYPE:CV -DEBUG -OPT:REF,I
CF    ../../media/kiss_fft/kiss_fft.lib ../../toolkit/components/osfile/osfile_s
.lib ../../toolkit/xre/xulapp_s.lib  ../../staticlib/components/necko.lib ../../
staticlib/components/uconv.lib ../../staticlib/components/i18n.lib ../../staticl
ib/components/chardet.lib ../../staticlib/components/jar50.lib ../../staticlib/c
omponents/startupcache.lib ../../staticlib/components/pref.lib ../../staticlib/c
omponents/htmlpars.lib ../../staticlib/components/identity.lib ../../staticlib/c
omponents/imglib2.lib ../../staticlib/components/mediasniffer.lib ../../staticli
b/components/gkgfx.lib ../../staticlib/components/gklayout.lib ../../staticlib/c
omponents/docshell.lib ../../staticlib/components/embedcomponents.lib ../../stat
iclib/components/webbrwsr.lib ../../staticlib/components/nsappshell.lib ../../st
aticlib/components/txmgr.lib ../../staticlib/components/commandlines.lib ../../s
taticlib/components/toolkitcomps.lib ../../staticlib/components/pipboot.lib ../.
./staticlib/components/pipnss.lib ../../staticlib/components/appcomps.lib ../../
staticlib/components/jsreflect.lib ../../staticlib/components/composer.lib ../..
/staticlib/components/telemetry.lib ../../staticlib/components/jsinspector.lib .
./../staticlib/components/jsdebugger.lib ../../staticlib/components/storagecomps
.lib ../../staticlib/components/rdf.lib ../../staticlib/components/windowds.lib
../../staticlib/components/diskspacewatcher.lib ../../staticlib/components/jscty
pes.lib ../../staticlib/components/jsperf.lib ../../staticlib/components/gkplugi
n.lib ../../staticlib/components/windowsproxy.lib ../../staticlib/components/jsd
.lib ../../staticlib/components/autoconfig.lib ../../staticlib/components/auth.l
ib ../../staticlib/components/cookie.lib ../../staticlib/components/permissions.
lib ../../staticlib/components/universalchardet.lib ../../staticlib/components/p
laces.lib ../../staticlib/components/tkautocomplete.lib ../../staticlib/componen
ts/satchel.lib ../../staticlib/components/pippki.lib ../../staticlib/components/
imgicon.lib ../../staticlib/components/widget_windows.lib ../../staticlib/compon
ents/spellchecker.lib ../../staticlib/components/zipwriter.lib ../../staticlib/c
omponents/services-crypto.lib ../../staticlib/jsipc_s.lib ../../staticlib/domipc
_s.lib ../../staticlib/domplugins_s.lib ../../staticlib/mozipc_s.lib ../../stati
clib/mozipdlgen_s.lib ../../staticlib/ipcshell_s.lib ../../staticlib/gfxipc_s.li
b ../../staticlib/hal_s.lib ../../staticlib/dombindings_s.lib ../../staticlib/xp
com_core.lib ../../staticlib/ucvutil_s.lib ../../staticlib/chromium_s.lib ../../
staticlib/snappy_s.lib ../../staticlib/thebes.lib ../../staticlib/gl.lib ../../s
taticlib/ycbcr.lib   c:/Users/admin/development/pmbuild/dist/lib/mozjs.lib c:/Us
ers/admin/development/pmbuild/dist/lib/crmf.lib         c:/Users/admin/developme
nt/pmbuild/dist/lib/smime3.lib         c:/Users/admin/development/pmbuild/dist/l
ib/ssl3.lib         c:/Users/admin/development/pmbuild/dist/lib/nss3.lib
 c:/Users/admin/development/pmbuild/dist/lib/nssutil3.lib   ../../dist/lib/mozsq
lite3.lib  ../../dist/lib/gkmedias.lib  c:/Users/admin/development/pmbuild/dist/
lib/nspr4.lib c:/Users/admin/development/pmbuild/dist/lib/plc4.lib c:/Users/admi
n/development/pmbuild/dist/lib/plds4.lib  ../../dist/lib/mozalloc.lib -DELAYLOAD
:psapi.dll -DELAYLOAD:dbghelp.dll -DELAYLOAD:rasapi32.dll -DELAYLOAD:rasdlg.dll
-DELAYLOAD:comdlg32.dll -DELAYLOAD:winspool.drv -DELAYLOAD:secur32.dll -DELAYLOA
D:wininet.dll  -LIBPATH:../../dist/lib -NODEFAULTLIB:msvcrt -NODEFAULTLIB:msvcrt
d -NODEFAULTLIB:msvcprt -NODEFAULTLIB:msvcprtd -DEFAULTLIB:mozcrt kernel32.lib u
ser32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib netapi32.lib
mfuuid.lib wmcodecdspuuid.lib strmiids.lib shell32.lib ole32.lib version.lib win
spool.lib comdlg32.lib imm32.lib msimg32.lib shlwapi.lib psapi.lib ws2_32.lib db
ghelp.lib rasapi32.lib rasdlg.lib iphlpapi.lib uxtheme.lib setupapi.lib secur32.
lib sensorsapi.lib portabledeviceguids.lib windowscodecs.lib wininet.lib delayim
p.lib "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x64/dxguid.l
ib" "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x64/dinput8.li
b"   usp10.lib oleaut32.lib   ' failed, return code 1257
<libs>: Found error
<xul.lib>: Found error
<../../dist/bin/xul.dll>: Found error
<../../dist/bin/dependentlibs.list>: Found error
<libs>: Found error
<../../dist/lib/xul.lib>: Found error
<../../dist/sdk/lib/xul.lib>: Found error
<libs>: Found error
<libs>: Found error
<libs>: Found error
<libs>: Found error
c:\Users\Admin\Development\Pale-Moon\config\makefiles\target_libs.mk:17:0: comma
nd 'c:/mozilla-build-1.11.0/python/python.exe c:/Users/Admin/Development/Pale-Mo
on/build/pymake/pymake/../make.py -C toolkit/library libs' failed, return code 2

evaluation from c:\Users\Admin\Development\Pale-Moon\config\rules.mk:723:24:23:0
: command 'c:/mozilla-build-1.11.0/python/python.exe c:/Users/Admin/Development/
Pale-Moon/build/pymake/pymake/../make.py libs_tier_platform' failed, return code
 2
c:\Users\Admin\Development\Pale-Moon\config\rules.mk:657:0: command 'c:/mozilla-
build-1.11.0/python/python.exe c:/Users/Admin/Development/Pale-Moon/build/pymake
/pymake/../make.py  tier_platform' failed, return code 2
c:\Users\Admin\Development\Pale-Moon\client.mk:372:0: command 'c:/mozilla-build-
1.11.0/python/python.exe c:/Users/Admin/Development/Pale-Moon/build/pymake/pymak
e/../make.py -j4 -C c:/Users/admin/development/pmbuild' failed, return code 2
c:\Users\Admin\Development\Pale-Moon\client.mk:172:0: command 'c:/mozilla-build-
1.11.0/python/python.exe c:/Users/Admin/Development/Pale-Moon/build/pymake/pymak
e/../make.py -f c:/Users/Admin/Development/Pale-Moon/client.mk realbuild' failed
, return code 2
Maybe worth having a look over? I myself couldn't say what's wrong with this particular step.

yash1234

Re: Pale Moon and Mozillabuild 1.11.0

Unread post by yash1234 » 2015-05-26, 04:06

nsContentUtils.cpp : fatal
error C1002: compiler is out of heap space in pass 2
LINK : fatal error LNK1257: code generation failed
link for the error c1002:

https://msdn.microsoft.com/en-us/library/c9e6fs6b.aspx

squarefractal

Re: Pale Moon and Mozillabuild 1.11.0

Unread post by squarefractal » 2015-05-26, 04:50

The catch here is that it builds fine with Mozillabuild 1.10.0, but not with 1.11.0.

I'll just give it another try (due to the memory issue pointed out) but I'm not hopeful. I wonder what changed in these two versions?

squarefractal

Re: Pale Moon and Mozillabuild 1.11.0

Unread post by squarefractal » 2015-06-03, 06:38

Okay, as far as this issue is concerned: the requirements for compiling Pale Moon seem to have greatly increased, and I'm no longer able to compile the Pale Moon source on Windows, even with Mozillabuild 1.10.0.

However, I don't see any reason not to use Mozillabuild 1.11.0, since, unlike what has been speculated, Python actually doesn't cause any problems.

New Tobin Paradigm

Re: Pale Moon and Mozillabuild 1.11.0

Unread post by New Tobin Paradigm » 2015-06-03, 07:23

The reason is our tool-chain dependencies are for older versions of some items mostly python. Stick to the 1.8 or 1.9 range.

I personally stick to 1.8 since that is the toolchain version native to our codebase.
Off-topic:
Let me quote Federation President Red Forman.. (That is two references in one!)
Image

"Let us redefine progress to mean that just because we can do a thing, it does not necessarily mean we must do that thing."

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35651
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Pale Moon and Mozillabuild 1.11.0

Unread post by Moonchild » 2015-06-03, 15:13

Supported mozillabuild versions are 1.8.* to 1.10.*

If you insist on trying to build with 1.11 or later, the you are really on your own.
Please do not come to us with build errors when not using the supported versions of the toolchain.
squarefractal wrote:I'm no longer able to compile the Pale Moon source on Windows, even with Mozillabuild 1.10.0.
Pale Moon, just like Firefox, will at all times use very close to the limit of the available address space for a maximum optimized build. If you run out of memory, you will have to reduce your optimization levels for the linker, specifically: try to build without /GL to code generation is done at compile-time, not link-time.

Code: Select all

c:\Users\Admin\Development\Pale-Moon\content\base\src\nsContentUtils.cpp : fatal
 error C1002: compiler is out of heap space in pass 2
LINK : fatal error LNK1257: code generation failed
You have simply run out of free memory.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite