firefox - Firefox 构建错误:旧配置失败
问题描述
我正在尝试从源代码构建 Firefox(60.esr)。我按照在 Windows 上构建 Firefox中提到的步骤进行操作。但它失败了。
方法 #1: 我遵循了 Windows 构建说明中提到的所有步骤。构建过程因错误而失败。
0:24.36 ERROR: Could not find LLVM/Clang installation for compiling stylo build-time
0:24.36 bindgen. Please specify the 'LLVM_CONFIG' environment variable
0:24.36 (recommended), pass the '--with-libclang-path' and '--with-clang-path'
0:24.36 options to configure, or put 'llvm-config' in your PATH. Altering your
0:24.36 PATH may expose 'clang' as well, potentially altering your compiler,
0:24.36 which may not be what you intended.
所以,我尝试了方法2。
方法 #2: 因为它需要 LLVM/clang,所以我安装了 LLVM/Clang 6.0 并将 '<em>LLVM_CONFIG' 添加到环境变量中。
然后我执行了mach build
. 添加 LLVM_CONFIG 修复了方法 1 中导致的错误。但构建再次失败并出现错误。
0:16.24 c:/Users/n182s826/mozilla/mozilla-central/old-configure: fork: Resource temporarily unavailable
0:18.59 m.AllocationBase 0x0, m.BaseAddress 0x607A0000, m.RegionSize 0x240000, m.State 0x10000
0:18.59 C:\mozilla-build\msys\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x607A0000 <0xB80000>) in child, Win32 error 0
0:18.59 0 [main] sh 13328 sync_with_child: child 14220(0x3B8) died before initialization with status code 0x1
0:18.59 51 [main] sh 13328 sync_with_child: *** child state waiting for longjmp
0:18.59 c:/Users/n182s826/mozilla/mozilla-central/old-configure: fork: Resource temporarily unavailable
0:18.61 ERROR: old-configure failed
0:18.65 *** Fix above errors and then restart with\
0:18.65 "c:/mozilla-build/mozmake/mozmake.EXE -f client.mk build"
我什至在Bugzilla提出了一个请求。但我还没有找到任何解决方案。
解决方案
推荐阅读
- javascript - 在 React useState 中使用(或 ||)语法进行赋值
- apollo - 避免在执行异步代码期间替换/混合 apollo-server 数据源中的用户上下文
- python - 具有动态字段值的 Django 表单
- php - 在单个查询中过滤多个字段的查询
- c# - 使用 Simple Injector 基于泛型类型将 DbContext 注入存储库
- python - 如何将测试输出打印到pyqt gui中的标签
- java - 在 Android Studio 中使用 GSON 从文件中读取 JSON
- node.js - 将 pm2 与 CircleCI 一起使用
- r - 如何在 R 表中找到组合比例?
- c++ - 如何在 3x3 网格中的空白处输入 2 或 4?