Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

firefox 13 compile error

371 views
Skip to first unread message

wenew zhang

unread,
Jun 5, 2012, 8:59:48 AM6/5/12
to
i download firefox 13 source and run command below,
./configure
make
It's works on firefox 12 source,but compile firefox 13 i get error
below:
What's happend
Thanks

make[6]: *** No rule to make target `../../../xpcom/idl-parser/
xpidl.py', needed
by `libs'. Stop.
make[6]: Leaving directory `/z/mozilla-release/xpcom/typelib/xpidl'

make[5]: *** [export] Error 2
make[5]: Leaving directory `/z/mozilla-release/xpcom/typelib/xpidl'

make[4]: *** [export] Error 2
make[4]: Leaving directory `/z/mozilla-release/xpcom/typelib'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/z/mozilla-release/xpcom'
make[2]: *** [export_tier_platform] Error 2
make[2]: Leaving directory `/z/mozilla-release'
make[1]: *** [tier_platform] Error 2
make[1]: Leaving directory `/z/mozilla-release'
make: *** [default] Error 2

xunxun

unread,
Jun 5, 2012, 11:38:32 AM6/5/12
to wenew zhang, dev-apps...@lists.mozilla.org
> _______________________________________________
> dev-apps-firefox mailing list
> dev-apps...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-apps-firefox
You can see the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=723861


ps: You should email to dev-b...@lists.mozilla.org list.



--
Best Regards,
xunxun

Martin Stransky

unread,
Jun 6, 2012, 2:15:44 AM6/6/12
to wenew zhang, dev-apps...@lists.mozilla.org
You have to set objdir, like:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir

ma.

oldpink

unread,
Jun 7, 2012, 6:27:16 AM6/7/12
to
When someone finds the fix for this, please let me know.
I've been scouring the web for an answer, all to no avail.
:(

Daniel Holbert

unread,
Jun 7, 2012, 1:29:04 PM6/7/12
to oldpink, dev-apps...@lists.mozilla.org
On 06/07/2012 03:27 AM, oldpink wrote:
>> make[6]: *** No rule to make target `../../../xpcom/idl-parser/
>> xpidl.py', needed
>> by `libs'. Stop.
>
> When someone finds the fix for this, please let me know.
> I've been scouring the web for an answer, all to no avail.
> :(

This bug comment has the fix:
https://bugzilla.mozilla.org/sho_bug.cgi?id=723861#c17

Basically: Delete xpcom/idl-parser/*.pyc in your source directory.

Cheers,
~Daniel

Daniel Holbert

unread,
Jun 7, 2012, 1:30:24 PM6/7/12
to oldpink, dev-apps...@lists.mozilla.org
On 06/07/2012 10:29 AM, Daniel Holbert wrote:
> On 06/07/2012 03:27 AM, oldpink wrote:
>>> make[6]: *** No rule to make target `../../../xpcom/idl-parser/
>>> xpidl.py', needed
>>> by `libs'. Stop.
>>
>> When someone finds the fix for this, please let me know.
>> I've been scouring the web for an answer, all to no avail.
>> :(
>
Er, s/sho/show/ in that URL (must've accidentally backspaced the "w"
without noticing):

Should be:
https://bugzilla.mozilla.org/show_bug.cgi?id=723861#c17

oldpink

unread,
Jun 7, 2012, 7:47:58 PM6/7/12
to
I appreciate it; I really do, and I found that thread earlier today,
but...

shell> ls xpcom/idl-parser
shell> header.py Makefile.in runtests.py typelib.py xpidl.py

I have NO *.pyc files in that directory, so I have no clue how the fix
linked above can possibly help me.
I even tried by just deleting the *.py files there.
It didn't help one bit.
:(

Martin Stransky

unread,
Jun 8, 2012, 2:55:11 AM6/8/12
to oldpink, dev-apps...@lists.mozilla.org
It's https://bugzilla.mozilla.org/show_bug.cgi?id=736961 but generally
you want to set up objdir in your mozconfig like:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir

ma.

oldpink

unread,
Jun 8, 2012, 4:43:07 AM6/8/12
to
On Jun 8, 2:55 am, Martin Stransky <stran...@redhat.com> wrote:
> It'shttps://bugzilla.mozilla.org/show_bug.cgi?id=736961but generally
> > dev-apps-fire...@lists.mozilla.org
> >https://lists.mozilla.org/listinfo/dev-apps-firefox

Once again, I appreciate you trying, but -- for the life of me -- I
couldn't figure out exactly which file I needed to edit.
There are several "mozconfig" files, all of which I edited, but
nothing worked.
I then tried to put that line in:

browser/config/mozconfigs/linux64/release
browser/config/mozconfigs/linux64/l10n-mozconfig
build/unix/mozconfig.linux

...none of which made a bit of a difference.
What in the world is the deal with this?
Did the Mozilla team just goof up on it, or is something really weird
happen with my Linux system that made Firefox-12 build just fine, but
caused Firefox-13 build to fail every time with the exact same stupid
error?
I get the exact same error when trying to build both Thunderbird and
Seamonkey.
This is getting very frustrating.
:(

Martin Stransky

unread,
Jun 8, 2012, 5:53:53 AM6/8/12
to dev-apps...@lists.mozilla.org
it's ".mozconfig" file in your directory with mozilla sources. If you
don't have any just create it. see
https://developer.mozilla.org/en/Configuring_Build_Options

ma.

oldpink

unread,
Jun 11, 2012, 10:29:22 AM6/11/12
to
I created that file, adding the suggested line to it, and it still
fails.
Whiskey Tango Foxtrot?
Mozilla really dropped the ball on this one.
:(

oldpink

unread,
Jun 13, 2012, 10:13:38 AM6/13/12
to
I finally found the patch file to once and for all resolve the build
problem with Firefox 13.

diff -Naur mozilla-release.orig/config/rules.mk mozilla-release/config/
rules.mk
--- mozilla-release.orig/config/rules.mk 2012-06-01 14:03:50.000000000
+0200
+++ mozilla-release/config/rules.mk 2012-06-06 15:10:27.338999957
+0200
@@ -1479,7 +1479,7 @@
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
- $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@
@if test -n "$(findstring $*.h, $(EXPORTS))"; \
then echo "*** WARNING: file $*.h generated from $*.idl overrides $
(srcdir)/$*.h"; else true; fi

@@ -1492,7 +1492,7 @@
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
-I$(topsrcdir)/xpcom/typelib/xpt/tools \
- $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@

# no need to link together if XPIDLSRCS contains only XPIDL_MODULE
ifneq ($(XPIDL_MODULE).idl,$(strip $(XPIDLSRCS)))
diff -Naur mozilla-release.orig/js/src/config/rules.mk mozilla-release/
js/src/config/rules.mk
--- mozilla-release.orig/js/src/config/rules.mk 2012-06-01
14:04:02.000000000 +0200
+++ mozilla-release/js/src/config/rules.mk 2012-06-06
15:10:27.611999997 +0200
@@ -1479,7 +1479,7 @@
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
- $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@
@if test -n "$(findstring $*.h, $(EXPORTS))"; \
then echo "*** WARNING: file $*.h generated from $*.idl overrides $
(srcdir)/$*.h"; else true; fi

@@ -1492,7 +1492,7 @@
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
-I$(topsrcdir)/xpcom/typelib/xpt/tools \
- $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@

# no need to link together if XPIDLSRCS contains only XPIDL_MODULE
ifneq ($(XPIDL_MODULE).idl,$(strip $(XPIDLSRCS)))
diff -Naur mozilla-release.orig/js/xpconnect/src/Makefile.in mozilla-
release/js/xpconnect/src/Makefile.in
--- mozilla-release.orig/js/xpconnect/src/Makefile.in 2012-06-01
14:04:05.000000000 +0200
+++ mozilla-release/js/xpconnect/src/Makefile.in 2012-06-06
15:10:52.296002158 +0200
@@ -151,7 +151,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/qsgen.py \
--idlpath=$(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output dom_quickstubs.h \
--stub-output dom_quickstubs.cpp \
--makedepend-output $(MDDEPDIR)/dom_qsgen.pp \
@@ -172,7 +172,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dombindingsgen.py \
--idlpath=$(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output dombindings_gen.h \
$(srcdir)/dombindings.conf

@@ -189,7 +189,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dombindingsgen.py \
--idlpath=$(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--stub-output dombindings_gen.cpp \
--makedepend-output $(MDDEPDIR)/dombindingsgen.pp \
$(srcdir)/dombindings.conf
@@ -208,7 +208,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dictionary_helper_gen.py \
-I $(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output DictionaryHelpers.h \
$(srcdir)/dictionary_helper_gen.conf

@@ -223,7 +223,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dictionary_helper_gen.py \
-I $(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output DictionaryHelpers.h \
--stub-output DictionaryHelpers.cpp \
--makedepend-output $(MDDEPDIR)/dictionary_helper_gen.pp \
diff -Naur mozilla-release.orig/xpcom/idl-parser/Makefile.in mozilla-
release/xpcom/idl-parser/Makefile.in
--- mozilla-release.orig/xpcom/idl-parser/Makefile.in 2012-06-01
14:04:22.000000000 +0200
+++ mozilla-release/xpcom/idl-parser/Makefile.in 2012-06-06
15:10:27.949000148 +0200
@@ -61,7 +61,7 @@
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
- $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=. --regen
+ $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache --regen

check::
$(PYTHON_PATH) \
diff -Naur mozilla-release.orig/xpcom/typelib/xpidl/Makefile.in
mozilla-release/xpcom/typelib/xpidl/Makefile.in
--- mozilla-release.orig/xpcom/typelib/xpidl/Makefile.in 2012-06-01
14:04:22.000000000 +0200
+++ mozilla-release/xpcom/typelib/xpidl/Makefile.in 2012-06-06
15:10:27.976000009 +0200
@@ -48,8 +48,8 @@
$(topsrcdir)/xpcom/idl-parser/xpidl.py \
$(topsrcdir)/xpcom/idl-parser/header.py \
$(topsrcdir)/xpcom/idl-parser/typelib.py \
- $(DEPTH)/xpcom/idl-parser/xpidllex.py \
- $(DEPTH)/xpcom/idl-parser/xpidlyacc.py \
+ $(DEPTH)/xpcom/idl-parser/cache/xpidllex.py \
+ $(DEPTH)/xpcom/idl-parser/cache/xpidlyacc.py \
$(NULL)

ifndef MOZ_SYSTEM_PLY
0 new messages