./mach build doesn't work on windows with the latest mozilla-build



Firefox Build System
Mach Core
6 years ago
2 months ago


(Reporter: Ehsan, Unassigned)


Mac OS X

Firefox Tracking Flags

(Not tracked)




6 years ago
$ ./mach build
0.77 C:/mozilla-build/msys/bin/sh.exe -c c:/Users/ehsan/moz/mozgit/build/pymake/make.py -f client.mk -s
2.65 Adding client.mk options from c:/Users/ehsan/moz/mozgit/.mozconfig:
2.65     MOZ_OBJDIR=$(TOPSRCDIR)/objdir-ff-debug
2.65     MOZ_MAKE_FLAGS=-s -j12
3.44 cd c:/Users/ehsan/moz/mozgit/objdir-ff-debug
3.46 c:/Users/ehsan/moz/mozgit/configure
3.85 Adding configure options from c:/Users/ehsan/moz/mozgit/.mozconfig:
3.85   --enable-application=browser
3.85   --enable-debug
3.85   --enable-trace-malloc
3.85   --disable-optimize
4.52 loading cache ./config.cache
5.24 checking host system type... i686-pc-mingw32
5.48 checking target system type... i686-pc-mingw32
5.72 checking build system type... i686-pc-mingw32
5.77 checking for mawk... (cached) gawk
5.82 checking for python2.7... (cached) /c/mozilla-build/python/python2.6
5.93 Creating Python environment
6.42 'import site' failed; use -v for traceback
6.42 Traceback (most recent call last):
6.42   File "c:/Users/ehsan/moz/mozgit/build/virtualenv/populate_virtualenv.py", line 10, in <module>
6.42     import distutils.sysconfig
6.42   File "c:\mozilla-build\python\lib\distutils\sysconfig.py", line 14, in <module>
6.42     import os
6.42   File "c:\mozilla-build\python\lib\os.py", line 398, in <module>
6.42     import UserDict
6.43   File "c:\mozilla-build\python\lib\UserDict.py", line 84, in <module>
6.43     _abcoll.MutableMapping.register(IterableUserDict)
6.43   File "c:\mozilla-build\python\lib\abc.py", line 109, in register
6.43     if issubclass(subclass, cls):
6.43   File "c:\mozilla-build\python\lib\abc.py", line 184, in __subclasscheck__
6.43     cls._abc_negative_cache.add(subclass)
6.43   File "c:\mozilla-build\python\lib\_weakrefset.py", line 84, in add
6.43     self.data.add(ref(item, self._remove))
6.43 TypeError: cannot create weak reference to 'classobj' object
6.44 *** Fix above errors and then restart with               "c:/mozilla-build/python/python.exe c:/Users/ehsan/moz/mozgit/build/pymake/pym
ake/../make.py -f client.mk build"
6.44 c:\Users\ehsan\moz\mozgit\client.mk:310:0: command 'cd c:/Users/ehsan/moz/mozgit/objdir-ff-debug &&  MAKE="c:/mozilla-build/python/pyth
on.exe c:/Users/ehsan/moz/mozgit/build/pymake/pymake/../make.py"  c:/Users/ehsan/moz/mozgit/configure  \
6.44   || ( echo "*** Fix above errors and then restart with\
6.44                \"c:/mozilla-build/python/python.exe c:/Users/ehsan/moz/mozgit/build/pymake/pymake/../make.py -f client.mk build\"" && e
xit 1 )' failed, return code 1
6.44 c:\Users\ehsan\moz\mozgit\client.mk:322:0: command 'c:/mozilla-build/python/python.exe c:/Users/ehsan/moz/mozgit/build/pymake/pymake/..
/make.py -f c:/Users/ehsan/moz/mozgit/client.mk configure' failed, return code 2
6.44 c:\Users\ehsan\moz\mozgit\client.mk:152:0: command 'c:/mozilla-build/python/python.exe c:/Users/ehsan/moz/mozgit/build/pymake/pymake/..
/make.py -f c:/Users/ehsan/moz/mozgit/client.mk realbuild' failed, return code 2
Error running mach:


The error occured in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error

The details of the failure are as follows:

Exception: Process executed with non-0 exit code: [u'C:/mozilla-build/msys/bin/sh.exe', u'-c', u'c:/Users/ehsan/moz/mozgit/build/pymake/make
.py -f client.mk -s']

  File "c:\Users\ehsan\moz\mozgit\python/mozbuild\mach\commands\build.py", line 48, in build
    log=False, print_directory=False)
  File "c:\Users\ehsan\moz\mozgit\python/mozbuild\mozbuild\base.py", line 242, in _run_make
  File "c:\Users\ehsan\moz\mozgit\python/mozbuild\mozbuild\base.py", line 265, in _run_command_in_srcdir
    self.run_process(cwd=self.topsrcdir, **args)
  File "c:\Users\ehsan\moz\mozgit\python/mach\mach\mixin\process.py", line 100, in run_process
    raise Exception('Process executed with non-0 exit code: %s' % args)

Comment 1

6 years ago
I clobbered myself out of this...
Last Resolved: 6 years ago
Resolution: --- → INVALID

Comment 2

6 years ago
Your log in the original comment indicates you are running Python 2.6. The latest MozillaBuild ships with Python 2.7.2. You should probably upgrade MozillaBuild.

Comment 3

6 years ago
(In reply to comment #2)
> Your log in the original comment indicates you are running Python 2.6. The
> latest MozillaBuild ships with Python 2.7.2. You should probably upgrade
> MozillaBuild.

Well, what happened was that I had an objdir built with python 2.6 and then I upgraded mozillabuild, and that broke the build because the change in the python version was not recognized by the build system.  You _could_ morph this to be a bug about that, but that's the sort of thing which will never get fixed, which is why I didn't bother.  ;-)


2 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.