编译firefox windows版时出现错误不知怎么解决

编译环境是 vs 2019 选择的是 c++ 桌面开发和c++游戏开发。
windows sdk 是 10.0.18362.0版本。
LLVM是9.0的32位版本。
rust使用的是rustup-init自动安装的最新版(使用网上的msi安装包安装后编译时报错python有问题)。
安装了nasm-2.14rc16的64位版本
firefox使用的是官网提供的firefox-69.0.3
MozillaBuild使用的是3.2版本
编译了大约20分钟后系统报错,最后错误如下

 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/UnifiedProtocols9.cpp:2:
 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/PChildToParentStreamChild.cpp:7:
 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders\mozilla/ipc/PChildToParentStreamChild.h:9:
 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders\mozilla/ipc/PChildToParentStream.h:11:
 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/ipc/IPCMessageUtils.h:36:
 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/nsIWidget.h:21:
 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include\nsStyleConsts.h:17:
 5:59.19 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h:9929:
 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(117,3): warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
 5:59.19   count.load(std::memory_order_acquire);
 5:59.19   ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(199,22): note: in instantiation of member function 'mozilla::StyleArcInner<mozilla::StyleTemplateAreas>::DecrementRef' requested here
 5:59.19   if (MOZ_LIKELY(!p->DecrementRef())) {
 5:59.20                      ^
 5:59.20 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(224,3): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::Release' requested here
 5:59.21   Release();
 5:59.21   ^
 5:59.21 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h(8098,10): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::~StyleArc' requested here
 5:59.21   struct StyleAreas_Body {
 5:59.21          ^
 6:00.88 2 warnings generated.
 6:02.54 2 warnings generated.
 6:03.26 2 warnings generated.
 6:05.10 2 warnings generated.
 6:10.54 2 warnings generated.
 6:10.61 mozmake.EXE[2]: *** [e:/firefox-69.0.3/config/recurse.mk:34: compile] Error 2
 6:10.61 mozmake.EXE[1]: *** [e:/firefox-69.0.3/config/rules.mk:391: default] Error 2
 6:10.61 mozmake.EXE: *** [client.mk:125: build] Error 2
 6:10.63 147 compiler warnings present.

其中大量的警告重复出现

e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(117,3): warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
 5:59.19   count.load(std::memory_order_acquire);
 5:59.19   ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(199,22): note: in instantiation of member function 'mozilla::StyleArcInner<mozilla::StyleTemplateAreas>::DecrementRef' requested here
 5:59.19   if (MOZ_LIKELY(!p->DecrementRef())) {
 5:59.20                      ^
 5:59.20 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(224,3): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::Release' requested here
 5:59.21   Release();
 5:59.21   ^
 5:59.21 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h(8098,10): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::~StyleArc' requested here
 5:59.21   struct StyleAreas_Body {
 5:59.21          ^
 6:00.88 2 warnings generated.
 6:02.54 2 warnings generated.

请问这种问题怎么处理呢?

1个回答

eospss
eospss 我按照官网的方法配置。缺的东西更多。以上的配置是综合各种线索搞得。至少在检查过程中没有报错。同时我的windows的sdk发是符合官网的说法的,是目前最新的
7 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐