Problem with OBJDIR building

Discussion about official Mozilla Firefox builds
Post Reply
User avatar
jayfromtaiwan
Posts: 713
Joined: March 4th, 2004, 6:50 pm
Location: Melrose, MA
Contact:

Problem with OBJDIR building

Post by jayfromtaiwan »

I tried to build OBJDIR builds and everytime i get this (or similar, "no rule to make") error:

Code: Select all

make[3]: Entering directory `/cygdrive/c/mozilla/mozilla/Obj/xpcom'
/cygdrive/c/mozilla/mozilla/build/cygwin-wrapper /cygdrive/c/Perl/bin//perl /cyg
drive/c/mozilla/mozilla/build/autoconf/make-makefile -t /cygdrive/c/mozilla/mozi
lla -d .. MoreFiles/Makefile
creating xpcom/MoreFiles/Makefile
make[4]: Entering directory `/cygdrive/c/mozilla/mozilla/Obj/xpcom/MoreFiles'
make[4]: *** No rule to make target `Makefile.in', needed by `Makefile'.  Stop.
make[4]: Leaving directory `/cygdrive/c/mozilla/mozilla/Obj/xpcom/MoreFiles'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla/mozilla/Obj/xpcom'
make[2]: *** [tier_2] Error 2
make[2]: Leaving directory `/cygdrive/c/mozilla/mozilla/Obj'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/mozilla/mozilla/Obj'
make: *** [build] Error 2


my .mozconfig

Code: Select all

. $topsrcdir/browser/config/mozconfig

LDFLAGS="-ltcg"
GLIB_PREFIX=c:/mozilla/w32build/vc7
LIBIDL_PREFIX=c:/mozilla/w32build/vc7

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --disable-debug
ac_add_options --disable-accessibility
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --enable-optimize="-O2 -GAL7 -c -arch:SSE2"
ac_add_options --disable-tests
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --disable-ldap
ac_add_options --disable-profilesharing
ac_add_options --disable-installer
ac_add_options --disable-mailnews
ac_add_options --enable-extensions=cookie,xml-

rpc,xmlextras,p3p,pref,transformiix,universalchardet,typeaheadfind,webservices,inspe

ctor

ac_add_options --disable-dtd-debug
ac_add_options --disable-glibtest
ac_add_options --disable-gtktest
ac_add_options --disable-freetype2
ac_add_options --disable-freetypetest
ac_add_options --disable-libIDLtest
ac_add_options --disable-logging
ac_add_options --disable-toolkit-gtk
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-xprint
ac_add_options --enable-crypto
ac_add_options --disable-composer
ac_add_options --disable-logging
ac_add_options --enable-image-decoders=icon,png,gif,jpeg,bmp
ac_add_options --disable-pedantic 
ac_add_options --disable-auto-deps
ac_add_options --enable-plaintext-editor-only


and mozset.bat

Code: Select all

@echo off
set MOZ_TOOLS=c:\mozilla\moztools
set GLIB_PREFIX=c:\mozilla\w32build\vc7
set LIBIDL_PREFIX=c:\mozilla\w32build\vc7
set MOZ_SRC=c:\mozilla
call c:\"program files"\"Microsoft Visual Studio .NET 2003"\common7\tools\vsvars32.bat
set PATH=%PATH%;c:\mozilla\mingw\bin;c:\mozilla\cygwin\bin;%GLIB_PREFIX%\bin;%LIBIDL_PREFIX%\bin;%MOZ_TOOLS%\bin
set HOME=c:\mozilla
set MOZ_OBJDIR=c:/mozilla/mozilla/Obj
set DOS_OBJDIR=c:\mozilla\mozilla\Obj
set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot


Any ideas?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050410 Firefox/1.0+ (jayfromtaiwan)
Mook
Posts: 1752
Joined: November 7th, 2002, 9:35 pm

Post by Mook »

You don't actually need the DOS_OBJDIR variable - it's just something I use in my script later :)

Does setting MOZ_OBJDIR to /cygdrive/c/mozilla/mozilla/Obj work? (That should be the same as $(TOPSRCDIR)/Obj, if I'm reading your paths right)

Also, can you provide the first few lines (especially the line about VPATH) in c:\mozilla\mozilla\Obj\xpcom\Makefile? And if it exists, the same in ...\mozilla\Obj\xpcom\MoreFiles\Makefile?

(Also try setting the MOZCONFIG environment variable... "SET MOZCONFIG=C:\mozilla\mozilla\.mozconfig" should do)

configure should have ran at the beginning of your compile, creating all the makefiles...
poot.
User avatar
jayfromtaiwan
Posts: 713
Joined: March 4th, 2004, 6:50 pm
Location: Melrose, MA
Contact:

Post by jayfromtaiwan »

C:\mozilla\mozilla\Obj\xpcom\makefile

Code: Select all

VPATH      = /cygdrive/c/mozilla/mozilla/xpcom


C:\mozilla\mozilla\Obj\xpcom\Morefiles\makefile

Code: Select all

VPATH      = c:/mozilla/mozilla/xpcom/Morefiles/makefile


I think i just found the problem :-D ..... it's weird that this happened @@
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050410 Firefox/1.0+ (jayfromtaiwan)
nrthomas
Posts: 1988
Joined: February 9th, 2003, 3:25 pm

Post by nrthomas »

Maybe that's do to with the / instead of \ in the set for MOZ_OBJDIR in mozset.bat.
Nick Thomas - Mozilla Release Engineer
User avatar
jayfromtaiwan
Posts: 713
Joined: March 4th, 2004, 6:50 pm
Location: Melrose, MA
Contact:

Post by jayfromtaiwan »

yeah i tried that ... lol it took me a while to realize that unix doesn't like \'s
still has to edit the files before the building process can continue .... is there a patch or workaround??
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050410 Firefox/1.0+ (jayfromtaiwan)
nrthomas
Posts: 1988
Joined: February 9th, 2003, 3:25 pm

Post by nrthomas »

Not sure exactly what you mean. My guess is that make doesn't like references like c:/ in the cygwin environment. So my suggestion is: zap existing makefiles by deleting the contents of the OBJDIR, fix mozset.bat, rerun mozset to make changes live, rebuild.

If that still doesn't work, then try moving the OBJDIR out of the mozilla source, to something like c:\mozilla\obj. That works for me.

It may also be related to your setting of HOME. The win32 build page <a href="http://www.mozilla.org/build/win32.html">says</a>:
3. Common Problems and Hints
* Make sure your source tree isn't under /home; paths that start with /cygdrive are handled better.
User avatar
jayfromtaiwan
Posts: 713
Joined: March 4th, 2004, 6:50 pm
Location: Melrose, MA
Contact:

Post by jayfromtaiwan »

this happens wherever i put the OBJDIR, weird@@
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050410 Firefox/1.0+ (jayfromtaiwan)
Post Reply