User:JoeyArmstrong/build/windows

From MozillaWiki
Jump to: navigation, search

MDN::Docs

ERRORS - cygwin

make -f /c/mozilla/sandbox/sbx/client.mk realbuild

package deps

  • configure: error: zip not found in $PATH
  • gtk+ >= 2.1
    • Install libgtk2.0-devel for access to package headers

atlbase.h

  • Disable unless a copy of msvc 2003 will be installed
    • ac_add_options --disable-accessibility
    • Flag is a nop, comment out check in configure
checking for application to build... browser
checking if app-specific confvars.sh exists... /c/mozilla/sandbox/sbx/browser/confvars.sh
configure: error: System header atlbase.h is not available.
See http://developer.mozilla.org/en/docs/atlbase.h for details on fixing this problem.
\*** Fix above errors and then restart with               "make -f client.mk build"
make[2]: *** [configure] Error 1

[bug669829]

ERRORS - mingw

conftest.exe

Transient problem - permission problem reported periodically while trying to generate conftest.exe. Removing files and re-running configure will usually get the build back on track.


Creating library xul.lib and object xul.exp

   Creating library xul.lib and object xul.exp
NeckoChild.obj : error LNK2019: unresolved external symbol "public: void __thiscall mozilla::net::HttpChannelChild::AddIPDLReference(void)" (?AddIPDLReference@HttpChannelChild@net@mozilla@@QAEXXZ) ref
erenced in function "protected: virtual class mozilla::net::PHttpChannelChild * __thiscall mozilla::net::NeckoChild::AllocPHttpChannel(class mozilla::dom::PBrowserChild *)" (?AllocPHttpChannel@NeckoCh
ild@net@mozilla@@MAEPAVPHttpChannelChild@23@PAVPBrowserChild@dom@3@@Z)
NeckoChild.obj : error LNK2019: unresolved external symbol "public: __thiscall mozilla::net::HttpChannelChild::HttpChannelChild(void)" (??0HttpChannelChild@net@mozilla@@QAE@XZ) referenced in function
"protected: virtual class mozilla::net::PHttpChannelChild * __thiscall mozilla::net::NeckoChild::AllocPHttpChannel(class mozilla::dom::PBrowserChild *)" (?AllocPHttpChannel@NeckoChild@net@mozilla@@MAE
PAVPHttpChannelChild@23@PAVPBrowserChild@dom@3@@Z)
NeckoChild.obj : error LNK2019: unresolved external symbol "public: void __thiscall mozilla::net::HttpChannelChild::ReleaseIPDLReference(void)" (?ReleaseIPDLReference@HttpChannelChild@net@mozilla@@QAE
XXZ) referenced in function "protected: virtual bool __thiscall mozilla::net::NeckoChild::DeallocPHttpChannel(class mozilla::net::PHttpChannelChild *)" (?DeallocPHttpChannel@NeckoChild@net@mozilla@@MA
E_NPAVPHttpChannelChild@23@@Z)

TODO

mozilla-build upgrades

  • hg package can be updated
  • infozip from cygwin

Bugs of interest

Tools of interest

URLs of interest

Overhead?

  • cl.py - loading interpreter, post-processing generated output.
    • make could set CL_INCLUDES_PREFIX for the cl command line, check on removing the extra layer and post-processing output.
    • -showincluds is a cl.exe command line option not cl.py
  • Consolidate os/compiler type flags
    • -DOS_WIN=1
    • -DWIN32
    • -D_WIN32
    • -D_WINDOWS
    • -DWIN32_LEAN_AND_MEAN
    • -DOSTYPE=\"WINNT6.1\" # windows 7
    • -DOSARCH=WINNT
  • cl.exe - consider using
    • /Wall /WX