Need some help building komodo on Windows

I’m currently trying to build Komodo, I came pretty far but running in some errors.
I installed all the prerequisites, but when I run the python build.py configure -k 11.10 command. I get a error on this line.

The error I’m getting:

Traceback (most recent call last):
  File "build.py", line 2961, in <module>
    sys.exit( main(sys.argv) )
  File "build.py", line 2956, in main
    _validateEnv()
  File "build.py", line 271, in _validateEnv
    cygpath_path = which.which("cygpath")
  File "..\util\which.py", line 253, in which
    match = whichgen(command, path, verbose, exts).next()
  File "..\util\which.py", line 224, in whichgen
    match = _getRegisteredExecutable(command)
  File "..\util\which.py", line 102, in _getRegisteredExecutable
    if registered and not os.path.exists(registered[0]):
  File "C:\Python27\lib\genericpath.py", line 26, in exists
    os.stat(path)
TypeError: stat() argument 1 must be encoded string without null bytes, not str

how can I fix this?

This is just a guess, but perhaps cygpath contains some strange characters. Can you modify your %PATH% environment variable in your Komodo build environment to exclude Cygwin’s path?

Did you run the setenv script?

With this you mean my system variables? I looked at my %PATH% variable, but it does not contains a Cygwin path. At first I tought it was missing the program, so I installed it from here, but later on removed it, when I noticed I don’t need it.

Ah I found it!
I was running cmd inside of Komodo, but when I run it in the visual studio command prompt I’m not getting any errors (yet).

I’m a bit further with building, but I ran in to the following error:

create 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\.mozconfig' and point MOZCONFIG to it
Placing non-msys perl first on path: C:\Perl64\bin\perl.exe
running 'sh -c /c/mozilla-build/msys/local/bin/autoconf-2.13' in 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla'
target: mozilla
build: warning: Could not find msys perl
client.mk:201: c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/.mozconfig.mk: No such file or directory
running 'python mach mach-commands' in 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla'
update-uuids
robocop
mochitest
mdn
rbt
bagheera-server
webidl-parser-test
buildsymbols
reftest-remote
webapprt-test-chrome
pastebin
google
python-test
web-platform-tests-reduce
mozbuild-reference
mercurial-setup
crashtest
mochitest-remote
clang-format
reftest-ipc
build-backend
clang-complete
talos-test
mochitest-metro
mochitest-plain
environment
crashtest-ipc
gtest
storage-server
empty-makefiles
build
webapprt-test-content
test
jstestbrowser
mochitest-devtools
run
configure
valgrind-test
python
marionette-webapi
mach-debug-commands
mxr
search
cppunittest
dxr
mochitest-browser
mach-commands
mochitest-b2g-desktop
jetpack-package
check-spidermonkey
mochitest-a11y
build-docs
web-platform-tests
uuid
resource-usage
web-platform-tests-update
jetpack-addon
crashtest-remote
warnings-list
package
reftest
marionette-test
bootstrap
webidl-example
clobber
reftest-b2g-desktop
xpcshell-test
mochitest-chrome
install
warnings-summary
jetpack-test
generate-addon-sdk-moz-build
running 'python mach --log-file c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\mach.log build ' in 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla'
 0:02.94 C:\mozilla-build\mozmake\mozmake.EXE -f client.mk -s
 0:13.63 Adding client.mk options from c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/.mozconfig:
 0:13.63     MOZ_OBJDIR=c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel
 0:13.63     OBJDIR=c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel
 0:13.63     FOUND_MOZCONFIG=c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/.mozconfig
 0:14.20 Generating c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/js/src/configure using autoconf
 0:20.10 cd c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel
 0:20.16 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/configure
 0:22.16 Adding configure options from c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/.mozconfig
 0:22.16   --enable-help-viewer
 0:22.16   --disable-tests
 0:22.16   --enable-optimize
 0:22.17   --disable-debug
 0:22.17   --enable-application=komodo
 0:22.17   --enable-extensions=
 0:25.00 creating cache ./config.cache
 0:27.21 checking host system type... i686-pc-mingw32
 0:28.21 checking target system type... i686-pc-mingw32
 0:29.06 checking build system type... i686-pc-mingw32
 0:29.13 checking for mawk... no
 0:29.16 checking for gawk... gawk
 0:29.36 checking for python2.7... /c/Python27//python2.7
 0:29.52 Creating Python environment
 0:36.02 New python executable in c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/_virtualenv\Scripts\python2.7.exe
 0:36.02 Also creating executable in c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/_virtualenv\Scripts\python.exe
 0:58.30 Installing setuptools, pip...done.
 1:03.14 running build_ext
 1:03.14
 1:03.14 building '_psutil_mswindows' extension
 1:03.14
 1:03.14 creating build
 1:03.14
 1:03.14 creating build\temp.win-amd64-2.7
 1:03.14
 1:03.14 creating build\temp.win-amd64-2.7\Release
 1:03.14
 1:03.14 creating build\temp.win-amd64-2.7\Release\psutil
 1:03.14
 1:03.14 creating build\temp.win-amd64-2.7\Release\psutil\arch
 1:03.14
 1:03.14 creating build\temp.win-amd64-2.7\Release\psutil\arch\mswindows
 1:03.14
 1:03.14 c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D_WIN32_WINNT=0x0602 -D_AVAIL_WINVER_=0x0602 -Ic:\Python27\include -Ic:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\ko-rel\_virtualenv\PC /Tcpsutil/_psutil_mswindows.c /Fobuild\temp.win-amd64-2.7\Release\psutil/_psutil_mswindows.obj
 1:03.14
 1:03.14 _psutil_mswindows.c
 1:03.14
 1:03.14 psutil/_psutil_mswindows.c(14) : fatal error C1083: Cannot open include file: 'Psapi.h': No such file or directory
 1:03.14
 1:03.16 error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\BIN\\cl.exe' failed with exit status 2
 1:03.16
 1:03.16
 1:03.16 Error processing command. Ignoring because optional. (optional:setup.py:python/psutil:build_ext:--inplace)
 1:03.16 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/python/mozbuild/mozbuild/virtualenv.py:318: UserWarning: Hacking environment to allow binary Python extensions to build. You can make this warning go away by installing Visual Studio 2008. You can download the Express Edition installer from http://go.microsoft.com/?linkid=7729279
 1:03.16   warnings.warn('Hacking environment to allow binary Python '
 1:03.43 checking Python environment is Mozilla virtualenv... yes
 1:03.61 checking for C:/mozilla-build/msys/bin/perl.exe... C:/mozilla-build/msys/bin/perl.exe
 1:03.89 checking for gcc... cl
 1:05.64 checking whether the C compiler (cl  ) works... yes
 1:05.64 checking whether the C compiler (cl  ) is a cross-compiler... no
 1:06.02 checking whether we are using GNU C... no
 1:06.25 checking whether cl accepts -g... no
 1:08.41 checking for c++... cl
 1:09.21 checking whether the C++ compiler (cl  ) works... yes
 1:09.21 checking whether the C++ compiler (cl  ) is a cross-compiler... no
 1:09.52 checking whether we are using GNU C++... no
 1:09.91 checking whether cl accepts -g... no
 1:09.96 checking for ranlib... :
 1:10.08 checking for ml... /c/Program Files (x86)/Microsoft Visual Studio 11.0/VC/BIN/ml
 1:10.27 checking for ar... no
 1:10.30 checking for ld... link
 1:10.35 checking for strip... no
 1:10.39 checking for windres... no
 1:11.50 checking for midl... midl
 1:14.19 checking for std::_Throw... no
 1:15.24 checking for overridable _RAISE... yes
 1:16.00 checking for winsdkver.h... no
 1:16.00 configure: error: Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.
 1:16.00 ------ config.log ------
 1:16.13 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\stdexcept(271) : error C3861: 'externallyDefinedFunction': identifier not found
 1:16.13 configure: failed program was:
 1:16.13 #line 4342 "configure"
 1:16.13 #include "confdefs.h"
 1:16.13 #include <xstddef>
 1:16.13                                     #undef _RAISE
 1:16.13                                     #define _RAISE(x) externallyDefinedFunction((x).what())
 1:16.13                                     #include <vector>
 1:16.13
 1:16.13 int main() {
 1:16.13 std::vector<int> v; return v.at(1);
 1:16.13 ; return 0; }
 1:16.13 configure:4401: checking for winsdkver.h
 1:16.13 configure:4414: cl -c  -TC -nologo -D_HAS_EXCEPTIONS=0  conftest.c 1>&5
 1:16.13 conftest.c
 1:16.13 configure(4408) : fatal error C1083: Cannot open include file: 'winsdkver.h': No such file or directory
 1:16.13 configure: failed program was:
 1:16.13 #line 4406 "configure"
 1:16.13 #include "confdefs.h"
 1:16.13
 1:16.13 #include <winsdkver.h>
 1:16.14 int main() {
 1:16.14
 1:16.14 ; return 0; }
 1:16.14 configure: error: Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.
 1:16.16 *** Fix above errors and then restart with\
 1:16.16                "C:/mozilla-build/mozmake/mozmake.EXE -f client.mk build"
 1:16.19 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/client.mk:361: recipe for target 'configure' failed
 1:16.19 mozmake.EXE[2]: *** [configure] Error 1
 1:16.19 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/client.mk:375: recipe for target 'c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/Makefile' failed
 1:16.19 mozmake.EXE[1]: *** [c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/Makefile] Error 2
 1:16.19 client.mk:171: recipe for target 'build' failed
 1:16.19 mozmake.EXE: *** [build] Error 2
 1:16.22 0 compiler warnings present.
Traceback (most recent call last):
  File "build.py", line 2961, in <module>
    sys.exit( main(sys.argv) )
  File "build.py", line 2957, in main
    return build(args)
  File "build.py", line 2781, in build
    newArgv = targetFunc(argv)
  File "build.py", line 2468, in target_all
    target_mozilla()
  File "build.py", line 2373, in target_mozilla
    buildDir, log.info)
  File "build.py", line 250, in _run_in_dir
    _run(cmd, logstream=None)
  File "build.py", line 232, in _run
    raise OSError("error running '%s': %r" % (cmd, status))
OSError: error running 'python mach --log-file c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\mach.log build ': 2

Any idea what is going wrong here?
I have perl installed and in my path.

I see made a reading mistake :frowning:, copied the wget from 2.0.0 and not 2.2.0.

Note that the README.md says “1.9.0” for the Moz build tools. If 2.0.0 works though, do let us know.

  • Carey

Thanks will do.

I’m currently hitting the same issue as above with 1.9.0 with wget from 2.2.0.

target: configure_mozilla
create 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\.mozconfig' and point MOZCONFIG to it
Placing non-msys perl first on path: C:\Perl64\bin\perl.exe
running 'sh -c /c/mozilla-build/msys/local/bin/autoconf-2.13' in 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla'
target: mozilla
build: warning: Could not find msys perl
client.mk:201: c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/.mozconfig.mk: No such file or directory
running 'python mach mach-commands' in 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla'
update-uuids
robocop
mochitest
mdn
rbt
bagheera-server
webidl-parser-test
buildsymbols
reftest-remote
webapprt-test-chrome
pastebin
google
python-test
web-platform-tests-reduce
mozbuild-reference
mercurial-setup
crashtest
mochitest-remote
clang-format
reftest-ipc
build-backend
clang-complete
talos-test
mochitest-metro
mochitest-plain
environment
crashtest-ipc
gtest
storage-server
empty-makefiles
build
webapprt-test-content
test
jstestbrowser
mochitest-devtools
run
configure
valgrind-test
python
marionette-webapi
mach-debug-commands
mxr
search
cppunittest
dxr
mochitest-browser
mach-commands
mochitest-b2g-desktop
jetpack-package
check-spidermonkey
mochitest-a11y
build-docs
web-platform-tests
uuid
resource-usage
web-platform-tests-update
jetpack-addon
crashtest-remote
warnings-list
package
reftest
marionette-test
bootstrap
webidl-example
clobber
reftest-b2g-desktop
xpcshell-test
mochitest-chrome
install
warnings-summary
jetpack-test
generate-addon-sdk-moz-build
running 'python mach --log-file c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\mach.log build ' in 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla'
 0:03.05 C:\mozilla-build\mozmake\mozmake.EXE -f client.mk -s
 0:14.27 Adding client.mk options from c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/.mozconfig:
 0:14.27     MOZ_OBJDIR=c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel
 0:14.27     OBJDIR=c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel
 0:14.27     FOUND_MOZCONFIG=c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/.mozconfig
 0:14.95 Generating c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/js/src/configure using autoconf
 0:21.42 cd c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel
 0:21.47 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/configure
 0:23.38 Adding configure options from c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/.mozconfig
 0:23.38   --enable-help-viewer
 0:23.38   --disable-tests
 0:23.38   --enable-optimize
 0:23.38   --disable-debug
 0:23.38   --enable-application=komodo
 0:23.38   --enable-extensions=
 0:26.16 creating cache ./config.cache
 0:28.50 checking host system type... i686-pc-mingw32
 0:29.45 checking target system type... i686-pc-mingw32
 0:30.44 checking build system type... i686-pc-mingw32
 0:30.50 checking for mawk... no
 0:30.53 checking for gawk... gawk
 0:30.74 checking for python2.7... /c/Python27//python2.7
 0:30.92 Creating Python environment
 0:38.24 New python executable in c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/_virtualenv\Scripts\python2.7.exe
 0:38.24 Also creating executable in c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/_virtualenv\Scripts\python.exe
 0:57.39 Installing setuptools, pip...done.
 1:01.05 running build_ext
 1:01.05
 1:01.05 building '_psutil_mswindows' extension
 1:01.05
 1:01.05 creating build
 1:01.05
 1:01.07 creating build\temp.win-amd64-2.7
 1:01.07
 1:01.07 creating build\temp.win-amd64-2.7\Release
 1:01.07
 1:01.07 creating build\temp.win-amd64-2.7\Release\psutil
 1:01.07
 1:01.07 creating build\temp.win-amd64-2.7\Release\psutil\arch
 1:01.07
 1:01.07 creating build\temp.win-amd64-2.7\Release\psutil\arch\mswindows
 1:01.07
 1:01.07 c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D_WIN32_WINNT=0x0602 -D_AVAIL_WINVER_=0x0602 -Ic:\Python27\include -Ic:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\ko-rel\_virtualenv\PC /Tcpsutil/_psutil_mswindows.c /Fobuild\temp.win-amd64-2.7\Release\psutil/_psutil_mswindows.obj
 1:01.07
 1:01.07 _psutil_mswindows.c
 1:01.07
 1:01.07 psutil/_psutil_mswindows.c(14) : fatal error C1083: Cannot open include file: 'Psapi.h': No such file or directory
 1:01.07
 1:01.07 error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\BIN\\cl.exe' failed with exit status 2
 1:01.07
 1:01.07
 1:01.07 Error processing command. Ignoring because optional. (optional:setup.py:python/psutil:build_ext:--inplace)
 1:01.07 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/python/mozbuild/mozbuild/virtualenv.py:318: UserWarning: Hacking environment to allow binary Python extensions to build. You can make this warning go away by installing Visual Studio 2008. You can download the Express Edition installer from http://go.microsoft.com/?linkid=7729279
 1:01.07   warnings.warn('Hacking environment to allow binary Python '
 1:01.35 checking Python environment is Mozilla virtualenv... yes
 1:01.55 checking for C:/mozilla-build/msys/bin/perl.exe... C:/mozilla-build/msys/bin/perl.exe
 1:01.83 checking for gcc... cl
 1:03.13 checking whether the C compiler (cl  ) works... yes
 1:03.13 checking whether the C compiler (cl  ) is a cross-compiler... no
 1:03.43 checking whether we are using GNU C... no
 1:03.61 checking whether cl accepts -g... no
 1:05.74 checking for c++... cl
 1:06.52 checking whether the C++ compiler (cl  ) works... yes
 1:06.52 checking whether the C++ compiler (cl  ) is a cross-compiler... no
 1:06.86 checking whether we are using GNU C++... no
 1:07.16 checking whether cl accepts -g... no
 1:07.21 checking for ranlib... :
 1:07.24 checking for ml... /c/Program Files (x86)/Microsoft Visual Studio 11.0/VC/BIN/ml
 1:07.44 checking for ar... no
 1:07.47 checking for ld... link
 1:07.52 checking for strip... no
 1:07.57 checking for windres... no
 1:08.50 checking for midl... midl
 1:11.02 checking for std::_Throw... no
 1:12.02 checking for overridable _RAISE... yes
 1:12.75 checking for winsdkver.h... no
 1:12.75 configure: error: Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.
 1:12.75 ------ config.log ------
 1:12.88 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\stdexcept(271) : error C3861: 'externallyDefinedFunction': identifier not found
 1:12.88 configure: failed program was:
 1:12.88 #line 4342 "configure"
 1:12.88 #include "confdefs.h"
 1:12.88 #include <xstddef>
 1:12.88                                     #undef _RAISE
 1:12.89                                     #define _RAISE(x) externallyDefinedFunction((x).what())
 1:12.89                                     #include <vector>
 1:12.89
 1:12.89 int main() {
 1:12.89 std::vector<int> v; return v.at(1);
 1:12.89 ; return 0; }
 1:12.89 configure:4401: checking for winsdkver.h
 1:12.89 configure:4414: cl -c  -TC -nologo -D_HAS_EXCEPTIONS=0  conftest.c 1>&5
 1:12.89 conftest.c
 1:12.89 configure(4408) : fatal error C1083: Cannot open include file: 'winsdkver.h': No such file or directory
 1:12.89 configure: failed program was:
 1:12.89 #line 4406 "configure"
 1:12.89 #include "confdefs.h"
 1:12.89
 1:12.89 #include <winsdkver.h>
 1:12.89 int main() {
 1:12.89
 1:12.89 ; return 0; }
 1:12.89 configure: error: Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.
 1:12.91 *** Fix above errors and then restart with\
 1:12.91                "C:/mozilla-build/mozmake/mozmake.EXE -f client.mk build"
 1:12.96 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/client.mk:361: recipe for target 'configure' failed
 1:12.96 mozmake.EXE[2]: *** [configure] Error 1
 1:12.96 c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/client.mk:375: recipe for target 'c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/Makefile' failed
 1:12.96 mozmake.EXE[1]: *** [c:/Users/wie_w/Documents/Github/KomodoEdit/mozilla/build/moz3500-ko11.10/mozilla/ko-rel/Makefile] Error 2
 1:12.96 client.mk:171: recipe for target 'build' failed
 1:12.96 mozmake.EXE: *** [build] Error 2
 1:13.00 0 compiler warnings present.
Traceback (most recent call last):
  File "build.py", line 2961, in <module>
    sys.exit( main(sys.argv) )
  File "build.py", line 2957, in main
    return build(args)
  File "build.py", line 2781, in build
    newArgv = targetFunc(argv)
  File "build.py", line 2468, in target_all
    target_mozilla()
  File "build.py", line 2373, in target_mozilla
    buildDir, log.info)
  File "build.py", line 250, in _run_in_dir
    _run(cmd, logstream=None)
  File "build.py", line 232, in _run
    raise OSError("error running '%s': %r" % (cmd, status))
OSError: error running 'python mach --log-file c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10\mozilla\mach.log build ': 2

But I will try it with the 2.0.0, will see if that will work.

It’s been a while since I wrote that part of the README but make sure you follow the steps properly:

Install version 1.9.0 of “MozillaBuild-$ver.exe” package into the default dir (i.e. “C:\mozilla-build”).

  • Once installed remove the wget and hg directories
  • Download version 2.2.0 and install it to a temp directory, then copy the wget directory from 2.2 to the 1.9 install directory

Will try again with 1.9.0 only with a clean start.
Tried building it with 2.0.0 but then I will get the following error.

C:\Users\wie_w\Documents\Github\KomodoEdit\mozilla>setenv-moz-msvc11.bat
================ setup Mozilla/MSVC11 build env ===================
Mozilla tools directory: C:\mozilla-build
'"C:\mozilla-build\guess-msvc.bat"' is not recognized as an internal or external command,
operable program or batch file.
5 was unexpected at this time.

EDIT: THIS COMMENT IS WRONG.

Nono, you need to move hg and wget FROM 1.9 TO 2.20. I don’t remember why but apparently everything in 2.2 is needed but 1.9 versions of hg and wget are needed.

Unless you’re saying you’ve already done that. It’s unclear to me exactly what you’ve done.

Ah ok, I will try that.
The instructions are the opposite, was running 1.9.0 removed the wget and hg directories and first copied wget from 2.0.0 but later from the 2.2.0.

Oh god, no you’re right. i’m doing too many things at once. You’re correct. The README is the opposite of what I said.

SO you followed those steps and it’s not working?

I followed those steps and are getting the above error.
This is happening while the “Firefox” part is running, it is almost there but it fails.

K thanks for confirming and sorry for the confusion.

Try adding this to your configure command:

--options=disable-webrtc

Oh np, will try it now.
Will be back…

I’m a bit further, with building komodo. Made the mistake to install the express version of visual studio.
After installing the correct version, everyting is running smoother, but I’m still unable tu build Komodo.
I’m getting stuck at the inside_activestate_network function. I’m getting the following error:

C:\Users\wie_w\Documents\Github\KomodoEdit\mozilla>python build.py distclean all
target: distclean
removing 'c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10'...
target: all
target: src
mkdir `c:\Users\wie_w\Documents\Github\KomodoEdit\mozilla\build\moz3500-ko11.10'
Failed to reach ActiveState internal mercurial mirror, using Mozilla canonical server
Traceback (most recent call last):
  File "build.py", line 2961, in <module>
    sys.exit( main(sys.argv) )
  File "build.py", line 2957, in main
    return build(args)
  File "build.py", line 2781, in build
    newArgv = targetFunc(argv)
  File "build.py", line 2462, in target_all
    target_src()
  File "build.py", line 2112, in target_src
    _run("wget -t 5 -T 30 --progress=dot:mega -O %s %s" % (bundleFile, bundleURL), log.info)
UnboundLocalError: local variable 'bundleURL' referenced before assignment

If I comment out the activestate stuff and only use the “else”, it is getting pretty far building. But after more than a hour it still fails. I’m seeing a lo 405 and 409 errors.
Any idea how to proceed?

I actually ran into that one myself, had not committed the fix yet. Here it is:

diff --git a/mozilla/build.py b/mozilla/build.py
index 00124aec85..cd570ac364 100644
--- a/mozilla/build.py
+++ b/mozilla/build.py
@@ -2033,6 +2033,7 @@ def target_src(argv=["src"]):
         repoURL = getRepoFromTree(treeName)
         hgRepo = os.path.join(buildDir, "mozilla")
         bundleFile = os.path.abspath("%s.hg" % (treeName,))
+        bundleURL = ""
         def inside_activestate_network():
             import socket
             hostname = "nas1.activestate.com"
@@ -2053,7 +2054,7 @@ def target_src(argv=["src"]):
                 # access to the local mirror; use the canonical mozilla.org server
                 log.info("Failed to reach ActiveState internal mercurial mirror, "
                          "using Mozilla canonical server")
-        else:
+        if not bundleURL:
             log.info("retrieving available bundles from hg.cdn.mozilla.net")

Thanks!, applied the fix and currently building, will come back if I hit any more issues.

I’m getting pretty far, it’s been busy for a while.
But it is still running in some errors, created a gist with the log and error at the end.

Any idea what is going on here?