Eclipse Posted August 11, 2005 Share Posted August 11, 2005 This is my first time building Firefox from the Mozilla source repository, so I'm really in the dark when it comes to errors like this. I was building Firefox using the Visual C++ 2003 Toolkit, and about 10 minutes into the process, this error occurred: I have no idea what this is, and I already googled for this issue with no result. Any help would be greatly appreciated. I'll briefly describe my build setup: Compiler/Linker: Visual C++ 2003 Toolkit I have installed everything that this guide (for the MSVC Toolkit) reccomended, with a few modifications suggested by comment #4. Environment variables are set up with this batch file: @ECHO OFF SET MOZ_TOOLS=C:\mozilla\moztools SET PATH=%PATH%;C:\mozilla\vc71;C:\mozilla\vc71\bin;C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;C:\Program Files\Microsoft Platform SDK\Bin;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin;%MOZ_TOOLS%\bin;C:\Perl\bin;C:\cygwin\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Platform SDK\Bin\Win64;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215;C:\masm32\BIN SET LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;C:\Program Files\Microsoft Platform SDK\Lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Lib;C:\Program Files\Microsoft Visual Studio 8\VC\lib;C:\masm32\LIB;C:\Program Files\Microsoft Platform SDK\Lib\IA64 SET INCLUDE=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;C:\Program Files\Microsoft Platform SDK\include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;C:\Program Files\Microsoft Visual Studio 8\VC\include;C:\Program Files\Microsoft Platform SDK\Include\crt;C:\masm32\INCLUDE;C:\Program Files\Microsoft Platform SDK\Include\atl SET GLIB_PREFIX=C:\mozilla\vc71 SET LIBIDL_PREFIX=C:\mozilla\vc71 SET CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot SET HOME=C:\cygwin\home SET CVS_RSH=ssh SET MOZILLA_OFFICIAL=1 SET BUILD_OFFICIAL=1 SET NO_MFC=1 ECHO Installation environment variables set! @ECHO ON Here's my .mozconfig (it's a modified version of bangbang023's that he uses for his optimized builds): . $topsrcdir/browser/config/mozconfig GLIB_PREFIX=C:/mozilla/vc71 LIBIDL_PREFIX=C:/mozilla/vc71 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir export MOZ_PHOENIX=1 export MOZ_OPTIMIZE_LDFLAGS="-opt:ref,icf,nowin98" mk_add_options MOZ_PHOENIX=1 mk_add_options MOZ_OPTIMIZE_LDFLAGS="-opt:ref,icf,nowin98" export BUILD_OFFICIAL=1 export MOZILLA_OFFICIAL=1 mk_add_options BUILD_OFFICIAL=1 mk_add_options MOZILLA_OFFICIAL=1 ac_add_options --enable-static ac_add_options --enable-strip ac_add_options --enable-single-profile ac_add_options --enable-optimize="-O2 -GAL7 -arch:SSE2" ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,negotiateauth,inspector,reporter ac_add_options --disable-activex ac_add_options --disable-activex-scripting ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --disable-mailnews ac_add_options --disable-composer ac_add_options --disable-ldap ac_add_options --disable-profilesharing ac_add_options --disable-shared ac_add_options --disable-accessibility PS: Mods - if this is the wrong forum for this, feel free to move it. I wasn't quite sure where to post this. :wacko: Link to comment Share on other sites More sharing options...
bangbang023 Veteran Posted August 11, 2005 Veteran Share Posted August 11, 2005 Try a vanilla mozconfig before going with a more customized one like you currently have. Link to comment Share on other sites More sharing options...
Eclipse Posted August 11, 2005 Author Share Posted August 11, 2005 (edited) Try a vanilla mozconfig before going with a more customized one like you currently have. 586362833[/snapback] I tried this one, but still got the same error. . $topsrcdir/browser/config/mozconfig GLIB_PREFIX=C:/mozilla/vc71 LIBIDL_PREFIX=C:/mozilla/vc71 ac_add_options --disable-activex ac_add_options --disable-activex-scripting EDIT: Updated .mozconfig. Edited August 11, 2005 by Eclipse Link to comment Share on other sites More sharing options...
bangbang023 Veteran Posted August 11, 2005 Veteran Share Posted August 11, 2005 That's far from being vanilla. I wish I could help more, but I've only built with gcc and vs .net. If a truely vanilla mozconfig doesn't work, you may need to ask at mozillazine. Also, be aware that using -GL will require you to edit a file so you may want to stick to g7 until you work out your other problems and then I can show you wish file to edit to make sure GL works. Link to comment Share on other sites More sharing options...
Eclipse Posted August 13, 2005 Author Share Posted August 13, 2005 I asked at MozillaZine, and someone told me to move my source directory out of my cygwin directory, and it seemed to work. The build went a little bit past where it had failed before, but now I am getting this: fatal error C1048: unknown option '7' in 'G7' Is this error due to the file you said I need to edit? Link to comment Share on other sites More sharing options...
Recommended Posts