eospss 2019-11-01 13:02 采纳率: 0%
浏览 951

编译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条回答 默认 最新

  • zqbnqsdsmd 2019-11-02 11:19
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 计算二重积分∫∫e^(x+y)dxdy,其中0≤x≤1,0≤y≤1,试分别用复合辛普森公式(取n=4)以及高斯求积公式(取n=4)计算积分 给出matlab程序
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的