jimu 发表于 2016-2-18 00:14:17

下载编译

hg clone http://hg.mozilla.org/releases/mozilla-release% hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"
正在请求全部修改
remote: this server supports the experimental "clone bundles" feature that should enable faster and more reliable cloning
remote: help test it by setting the "experimental.clonebundles" config flag to "true"
正在增加修改集
正在增加清单
正在增加文件改变
已增加 306115 个修改集,包含 1596257 个改变,修改了 226014 个文件 (+264 heads)
updating to branch default
正在解析清单
正在检出 .clang-format
正在检出 .clang-format-ignore
正在检出 modules/freetype2/docs/VERSION.DLL
中止: E:\hg\modules/freetype2/docs/VERSION.DLL:
[命令返回代码255 Fri Feb 19 01:30:33 2016]
111hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"

*** 加载扩展 'bzpost',自 'c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bzpost': No module named Cookie
% hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"
(mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
(but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
applying clone bundle from https://hg.cdn.mozilla.net/releases/mozilla-release/b0856b1326474c0d3deb7002fff78f7ad326876e.gzip.hg
正在增加修改集
正在增加清单
正在增加文件改变
已增加 306115 个修改集,包含 1596257 个改变,修改了 226014 个文件 (+264 heads)
finished applying clone bundle
正在搜索修改
没有发现修改
updating to branch default
正在解析清单
正在检出 .clang-format
.....
正在检出 xulrunner/tools/redit/moz.build
正在检出 xulrunner/tools/redit/redit.cpp
129249 files updated, 0 files merged, 0 files removed, 0 files unresolved
[命令成功完成 Thu Feb 18 21:43:41 2016]

hechengjin 发表于 2016-2-18 20:57:44

*** 加载扩展 'bzpost',自 'c:\Users\admin\.mozbuild\version-control-tools\hgext\bzpost': No module named Cookie
% hg clone --verbose http://hg.mozilla.org/releases/mozilla-release "E:\hg"
(mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
(but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
applying clone bundle from https://hg.cdn.mozilla.net/releases/mozilla-release/b0856b1326474c0d3deb7002fff78f7ad326876e.gzip.hg
正在增加修改集

jimu 发表于 2016-2-19 01:02:15

hg init mozilla-release
cd mozilla-release
hg unbundle E:\hgBundle\b0856b1326474c0d3deb7002fff78f7ad326876e.gzip.hg

hechengjin 发表于 2016-2-19 20:27:01

本帖最后由 hechengjin 于 2016-2-19 20:40 编辑

echo 'ac_add_options --enable-application=mail' > .mozconfig

echo 'ac_add_options --enable-calendar' >> .mozconfig

./mach buildHECHENGJIN@hechengjin /e/hg
$ ./mach build
*** MERCURIAL CONFIGURATION POTENTIALLY OUT OF DATE ***

mach has detected that it has been a while since you have run
`./mach mercurial-setup`.

Having the latest Mercurial tools and configuration should lead to a better,
more productive experience when working on Mozilla projects.

Please run `./mach mercurial-setup` now.

Reminder: `./mach mercurial-setup` does not make any changes without
prompting you first.

To avoid this message in the future, run `./mach mercurial-setup` once a month.
Or, schedule `./mach mercurial-setup --update-only` to run automatically in
the background at least once a month.

./mach mercurial-setup$ ./mach mercurial-setup
================================================================================

Ensuring version-control-tools is up to date...
pulling from https://hg.mozilla.org/hgcustom/version-control-tools
abort: error: TLS/SSL connection has been closed (EOF) (_ssl.c:590)
================================================================================


Error running mach:

    ['mercurial-setup']

The error occurred 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
message.

The details of the failure are as follows:

CalledProcessError: Command '[u'c:\\mozilla-build\\python\\Scripts\\hg.exe', u'-
-config', u'hostfingerprints.bitbucket.org=46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:b
c:f4:1a:5e:38:d7:ac:24', u'--config', u'hostfingerprints.bugzilla.mozilla.org=f9
:7e:62:42:4e:38:79:96:ca:87:71:2a:f8:51:38:c8:16:92:5c:a7', u'--config', u'hostf
ingerprints.hg.mozilla.org=af:27:b9:34:47:4e:e5:98:01:f6:83:2b:51:c9:aa:d8:df:fb
:1a:27', u'pull', u'https://hg.mozilla.org/hgcustom/version-control-tools']' ret
urned non-zero exit status 255

File "e:\hg\tools/mercurial/mach_commands.py", line 68, in mercurial_setup
    result = wizard.run(map(os.path.expanduser, config_paths))
File "e:\hg\tools/mercurial\hgsetup\wizard.py", line 282, in run
    self.updater.update_all()
File "e:\hg\tools/mercurial\hgsetup\update.py", line 36, in update_all
    'Ensuring version-control-tools is up to date...')
File "e:\hg\tools/mercurial\hgsetup\update.py", line 46, in update_mercurial_r
epo
    update_mercurial_repo, hostfingerprints=HOST_FINGERPRINTS)
File "e:\hg\tools/mercurial\hgsetup\update.py", line 52, in _update_repo
    fn(binary, url, dest, branch, *args, **kwargs)
File "e:\hg\python/mozversioncontrol\mozversioncontrol\repoupdate.py", line 24
, in update_mercurial_repo
    subprocess.check_call(args + ['pull', repo], cwd=path)
File "c:\mozilla-build\python\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
上面问题为网络问题,切换一个网络,如翻墙一下。
然后更新成功后,提示进行相关配置$ ./mach mercurial-setup
================================================================================

Ensuring version-control-tools is up to date...
pulling from https://hg.mozilla.org/hgcustom/version-control-tools
searching for changes
adding changesets
adding manifests
adding file changes
added 492 changesets with 1500 changes to 472 files
updating bookmark @
(run 'hg update' to get a working copy)
462 files updated, 0 files merged, 50 files removed, 0 files unresolved
================================================================================


Your Mercurial recommended extensions are now up to date!

I'm going to help you ensure your Mercurial is configured for optimal
development on Mozilla projects.

If your environment is missing some recommended settings, I'm going to prompt
you whether you want me to make changes: I won't change anything you might not
want me changing without your permission!

If your config is up-to-date, I'm just going to ensure all 3rd party extensions
are up to date and you won't have to do anything.

To begin, press the enter/return key.

bzexport
========

If you plan on uploading patches to Mozilla, there is an extension called
bzexport that makes it easy to upload patches from the command line via the
|hg bzexport| command. More info is available at
https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hgext/bzexpor
t/README

(Relevant config option: extensions.bzexport)

Would you like to activate bzexport?
n

Activated bzpost extension.

firefoxtree
===========

The firefoxtree extension makes interacting with the multiple Firefox
repositories easier:

* Aliases for common trees are pre-defined. e.g. `hg pull central`
* Pulling from known Firefox trees will create "remote refs" appearing as
tags. e.g. pulling from fx-team will produce a "fx-team" tag.
* The `hg fxheads` command will list the heads of all pulled Firefox repos
for easy reference.
* `hg push` will limit itself to pushing a single head when pushing to
Firefox repos.
* A pre-push hook will prevent you from pushing multiple heads to known
Firefox repos. This acts quicker than a server-side hook.

The firefoxtree extension is *strongly* recommended if you:

a) aggregate multiple Firefox repositories into a single local repo
b) perform head/bookmark-based development (as opposed to mq)

(Relevant config option: extensions.firefoxtree)

Would you like to activate firefoxtree?
n

Activated bundleclone extension.

Activated push-to-try extension.

Activated mqext extension.

Would you like to configure mqext to automatically commit changes as you modify
patches?
n
Activated qimportbz extension.

Your Mercurial config file needs updating. I can do this for you if you like!
Would you like to see a diff of the changes first?
n
Would you like me to update your hgrc file?
n
hgrc changes not written to file. I would have written the following:


username = wyyt <wyyt@outlook.com>

git = 1
showfunc = 1
unified = 8

progress =
color =
rebase =
histedit =
mq =
reviewboard = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\reviewbo
ard\client.py
bzpost = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bzpost
bundleclone = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\bundlecl
one
push-to-try = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\push-to-
try
mqext = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\mqext
qimportbz = c:\Users\hechengjin\.mozbuild\version-control-tools\hgext\qimportbz

qnew = -U

username = wyyt@outlook.com
apikey = 2

bugzilla.mozilla.org = f9:7e:62:42:4e:38:79:96:ca:87:71:2a:f8:51:38:c8:16:92:5c:
a7
bitbucket.org = 46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:bc:f4:1a:5e:38:d7:ac:24
hg.mozilla.org = af:27:b9:34:47:4e:e5:98:01:f6:83:2b:51:c9:aa:d8:df:fb:1a:27
(despite the failure, mach will not nag you to run `mach mercurial-setup`)
./mach build

hechengjin 发表于 2016-2-22 20:03:34

本帖最后由 hechengjin 于 2016-2-23 20:02 编辑

mozilla-esr38% hg clone --verbose http://hg.mozilla.org/releases/mozilla-esr38/ "E:\hg38\comm-esr38\mozilla-esr38"
(mercurial client has built-in support for bundle clone features; the "bundleclone" extension can likely safely be removed)
(but the experimental.clonebundles config flag is not enabled: enable it before disabling bundleclone or cloning from pre-generated bundles may not work)
applying clone bundle from https://hg.cdn.mozilla.net/releases/mozilla-esr38/1160bd4070e55b2c3accb29d8e833a2d3a066f55.gzip.hg
正在增加修改集
正在增加清单
正在增加文件改变
已增加 260951 个修改集,包含 1351421 个改变,修改了 196144 个文件 (+97 heads)
finished applying clone bundle
正在搜索修改
正在增加修改集
正在增加清单
正在增加文件改变
已增加 3 个修改集,包含 10 个改变,修改了 10 个文件
updating to branch default
正在解析清单
正在检出 .clang-format
正在检出 .clang-format-ignore
......
正在检出 xulrunner/tools/redit/redit.cpp
117982 files updated, 0 files merged, 0 files removed, 0 files unresolved
[命令成功完成 Tue Feb 23 00:11:49 2016]
缺少目录:e:/hg38/comm-esr38/ldap/sdks 1:06.83 ldap\sdks\c-sdk> configuring
1:06.83 ldap\sdks\c-sdk> running C:/mozilla-build/msys/bin/sh e:/hg38/comm-esr3
8/ldap/sdks/c-sdk/configure --enable-application=mail --enable-calendar --with-e
xternal-source-dir=e:/hg38/comm-esr38 --prefix=e:/hg38/comm-esr38/obj-i686-pc-mi
ngw32/dist --with-dist-prefix=e:/hg38/comm-esr38/obj-i686-pc-mingw32/dist --with
out-nss --with-mozilla --disable-debug-rtl --cache-file=e:/hg38/comm-esr38/obj-i
686-pc-mingw32/ldap/sdks/c-sdk/config.cache
1:06.87 ldap\sdks\c-sdk> /usr/bin/sh: e:/hg38/comm-esr38/ldap/sdks/c-sdk/config
ure: No such file or directory
1:06.87
1:06.92 *** Fix above errors and then restart with\
1:06.92                "c:/mozilla-build/mozmake/mozmake.EXE -f client.mk build
"
1:06.97 e:/hg38/comm-esr38/client.mk:361: recipe for target 'configure' failed
1:06.97 mozmake.EXE: *** Error 1
1:06.97 client.mk:375: recipe for target 'e:/hg38/comm-esr38/obj-i686-pc-mingw3
2/Makefile' failed
1:06.97 mozmake.EXE: *** Erro
r 2
1:06.98 0 compiler warnings present.
2
页: [1]
查看完整版本: 下载编译