Building komodo from source and failing

I am trying to build komodo from source but it is failing at pyxpcom step.
the problem is >

$ python build.py pyxpcom

… snip …

    ErrorUtils.cpp
    /usr/bin/g++ -o ErrorUtils.o -c  -DOSTYPE=\"Linux3.15\" -DOSARCH=Linux -I/home/v3ss/KomodoEdit/mozilla/prebuilt/python2.7/linux-x86_64/include/python2.7 -I/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src -I. -I../../dist/include -I../../dist/include/nsprpub -I/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include -I/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/nsprpub `/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/sdk/bin/nspr-config --prefix=/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist --includedir=/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/nspr --cflags`          -fPIC   -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing -pipe -std=gnu++0x  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -DPYTHON_SO=\"libpython2.7.so\" -g   -DMOZILLA_CLIENT -include /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla-config.h -Wp,-MD,.deps/ErrorUtils.pp /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp
    In file included from /home/v3ss/KomodoEdit/mozilla/prebuilt/python2.7/linux-x86_64/include/python2.7/Python.h:8:0,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM.h:90,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM_std.h:74,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp:48:
    /home/v3ss/KomodoEdit/mozilla/prebuilt/python2.7/linux-x86_64/include/python2.7/pyconfig.h:1195:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
    In file included from /usr/include/stdlib.h:24:0,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla/mozalloc.h:15,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM.h:52,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM_std.h:74,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp:48:
    /usr/include/features.h:170:0: note: this is the location of the previous definition
    In file included from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM.h:52:0,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM_std.h:74,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp:48:
    /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla/mozalloc.h: In function ‘void* operator new(size_t)’:
    /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla/mozalloc.h:199:33: error: declaration of ‘void* operator new(size_t) throw (std::bad_alloc)’ has a different exception specifier
    In file included from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla/mozalloc.h:18:0,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM.h:52,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM_std.h:74,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp:48:
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/new:93:7: error: from previous declaration ‘void* operator new(std::size_t)’
    In file included from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM.h:52:0,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM_std.h:74,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp:48:
    /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla/mozalloc.h:211:35: error: declaration of ‘void* operator new [](size_t) throw (std::bad_alloc)’ has a different exception specifier
    In file included from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist/include/mozilla/mozalloc.h:18:0,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM.h:52,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/PyXPCOM_std.h:74,
                     from /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/xpcom/src/ErrorUtils.cpp:48:
    make[3]: *** [ErrorUtils.o] Error 1
    make[3]: Leaving directory `/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/extensions/python/xpcom/src'
    make[2]: *** [libs] Error 2
    make[2]: Leaving directory `/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/extensions/python/xpcom'
    make[1]: *** [libs] Error 2
    make[1]: Leaving directory `/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/extensions/python'
    make: *** [default] Error 2
    Traceback (most recent call last):
      File "build.py", line 3017, in <module>
        sys.exit( main(sys.argv) )
      File "build.py", line 3013, in main
        return build(args)
      File "build.py", line 2837, in build
        newArgv = targetFunc(argv)
      File "build.py", line 2011, in target_pyxpcom
        _run_in_dir(" && ".join(cmds), pyxpcom_obj_dir, log.info)
      File "build.py", line 249, in _run_in_dir
        _run(cmd, logstream=None)
      File "build.py", line 231, in _run
        raise OSError("error running '%s': %r" % (cmd, status))
    OSError: error running 'PYTHON="/home/v3ss/KomodoEdit/mozilla/prebuilt/python2.7/linux-x86_64/bin/python" ac_cv_visibility_pragma=no CC=/usr/bin/gcc CXX=/usr/bin/g++ LDFLAGS=" -Wl,-rpath=\\$\$ORIGIN:\\$\$ORIGIN/../python/lib" /home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/extensions/python/configure --with-libxul-sdk=/home/v3ss/KomodoEdit/mozilla/build/moz3100-ko9.10/mozilla/ko-rel/dist  && make': 2

Forgot to mention i am using linux (sabayon.org , gentoo variant linux) to build it.
Mozilla built fine , just pyxpcom refusing to build.

Please check my response here - http://komodoide.com/blog/2014-07/building-komodo-with-docker/#comment-1508324364